##// END OF EJS Templates
HTML improvements on project landing page (#18565)....
Jean-Philippe Lang -
r13371:c27e917843a6
parent child
Show More
@@ -1,6 +1,6
1 1 <p><%= link_to_project(news.project) + ': ' unless @project %>
2 2 <%= link_to h(news.title), news_path(news) %>
3 <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>
3 <% if news.comments_count > 0 %><span class="comments">(<%= l(:label_x_comments, :count => news.comments_count) %>)</span><% end %>
4 4 <br />
5 5 <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
6 6 <span class="author"><%= authoring news.created_on, news.author %></span></p>
@@ -1,8 +1,8
1 1 <% if @users_by_role.any? %>
2 2 <div class="members box">
3 3 <h3><%=l(:label_member_plural)%></h3>
4 <p><% @users_by_role.keys.sort.each do |role| %>
5 <%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %><br />
6 <% end %></p>
4 <% @users_by_role.keys.sort.each do |role| %>
5 <p><span class="label"><%=h role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
6 <% end %>
7 7 </div>
8 8 <% end %>
@@ -1,87 +1,87
1 1 <div class="contextual">
2 2 <% if User.current.allowed_to?(:add_subprojects, @project) %>
3 3 <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
4 4 <% end %>
5 5 <% if User.current.allowed_to?(:close_project, @project) %>
6 6 <% if @project.active? %>
7 7 <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
8 8 <% else %>
9 9 <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
10 10 <% end %>
11 11 <% end %>
12 12 </div>
13 13
14 14 <h2><%=l(:label_overview)%></h2>
15 15
16 16 <% unless @project.active? %>
17 17 <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
18 18 <% end %>
19 19
20 20 <div class="splitcontentleft">
21 21 <% if @project.description.present? %>
22 22 <div class="wiki">
23 23 <%= textilizable @project.description %>
24 24 </div>
25 25 <% end %>
26 26 <ul>
27 27 <% unless @project.homepage.blank? %>
28 <li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
28 <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to h(@project.homepage), @project.homepage %></li>
29 29 <% end %>
30 30 <% if @subprojects.any? %>
31 <li><%=l(:label_subproject_plural)%>:
31 <li><span class="label"><%=l(:label_subproject_plural)%>:</span>
32 32 <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
33 33 <% end %>
34 34 <% @project.visible_custom_field_values.each do |custom_value| %>
35 35 <% if !custom_value.value.blank? %>
36 <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
36 <li><span class="label"><%=h custom_value.custom_field.name %>:</span> <%=h show_value(custom_value) %></li>
37 37 <% end %>
38 38 <% end %>
39 39 </ul>
40 40
41 41 <% if User.current.allowed_to?(:view_issues, @project) %>
42 42 <div class="issues box">
43 43 <h3><%=l(:label_issue_tracking)%></h3>
44 44 <ul>
45 45 <% for tracker in @trackers %>
46 46 <li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
47 47 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
48 48 :total => @total_issues_by_tracker[tracker].to_i) %>
49 49 </li>
50 50 <% end %>
51 51 </ul>
52 52 <p>
53 53 <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
54 54 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
55 55 | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
56 56 <% end %>
57 57 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
58 58 | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
59 59 <% end %>
60 60 </p>
61 61 </div>
62 62 <% end %>
63 63 <%= call_hook(:view_projects_show_left, :project => @project) %>
64 64 </div>
65 65
66 66 <div class="splitcontentright">
67 67 <%= render :partial => 'members_box' %>
68 68
69 69 <% if @news.any? && authorize_for('news', 'index') %>
70 70 <div class="news box">
71 71 <h3><%=l(:label_news_latest)%></h3>
72 72 <%= render :partial => 'news/news', :collection => @news %>
73 73 <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
74 74 </div>
75 75 <% end %>
76 76 <%= call_hook(:view_projects_show_right, :project => @project) %>
77 77 </div>
78 78
79 79 <% content_for :sidebar do %>
80 80 <%= render :partial => 'projects/sidebar' %>
81 81 <% end %>
82 82
83 83 <% content_for :header_tags do %>
84 84 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
85 85 <% end %>
86 86
87 87 <% html_title(l(:label_overview)) -%>
General Comments 0
You need to be logged in to leave comments. Login now