mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 18:31:14 +00:00
HTML improvements on project landing page (#18565).
Patch by Tobias Fischer. git-svn-id: http://svn.redmine.org/redmine/trunk@13753 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d17b8dcc97
commit
c27e917843
@ -1,6 +1,6 @@
|
||||
<p><%= link_to_project(news.project) + ': ' unless @project %>
|
||||
<%= link_to h(news.title), news_path(news) %>
|
||||
<%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>
|
||||
<% if news.comments_count > 0 %><span class="comments">(<%= l(:label_x_comments, :count => news.comments_count) %>)</span><% end %>
|
||||
<br />
|
||||
<% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
|
||||
<span class="author"><%= authoring news.created_on, news.author %></span></p>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<% if @users_by_role.any? %>
|
||||
<div class="members box">
|
||||
<h3><%=l(:label_member_plural)%></h3>
|
||||
<p><% @users_by_role.keys.sort.each do |role| %>
|
||||
<%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %><br />
|
||||
<% end %></p>
|
||||
<% @users_by_role.keys.sort.each do |role| %>
|
||||
<p><span class="label"><%=h role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@ -25,15 +25,15 @@
|
||||
<% end %>
|
||||
<ul>
|
||||
<% unless @project.homepage.blank? %>
|
||||
<li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
|
||||
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to h(@project.homepage), @project.homepage %></li>
|
||||
<% end %>
|
||||
<% if @subprojects.any? %>
|
||||
<li><%=l(:label_subproject_plural)%>:
|
||||
<li><span class="label"><%=l(:label_subproject_plural)%>:</span>
|
||||
<%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
|
||||
<% end %>
|
||||
<% @project.visible_custom_field_values.each do |custom_value| %>
|
||||
<% if !custom_value.value.blank? %>
|
||||
<li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
|
||||
<li><span class="label"><%=h custom_value.custom_field.name %>:</span> <%=h show_value(custom_value) %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user