Patch #18565 ยป 0001-html-improvements-on-project-landing-page.patch
app/views/news/_news.html.erb | ||
---|---|---|
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> |
app/views/projects/_members_box.html.erb | ||
---|---|---|
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 %> |
app/views/projects/show.html.erb | ||
---|---|---|
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> |