summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-13 18:24:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-13 18:24:10 +0000
commitc27e917843a6cfca04986bc3c6981e8744ef6e38 (patch)
treeba2a0bc32dc86f48d37d1d2b9da046a101566826 /app
parentd17b8dcc97f1509d4b4be99b0499862b2b0b3758 (diff)
downloadredmine-c27e917843a6cfca04986bc3c6981e8744ef6e38.tar.gz
redmine-c27e917843a6cfca04986bc3c6981e8744ef6e38.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/views/news/_news.html.erb2
-rw-r--r--app/views/projects/_members_box.html.erb6
-rw-r--r--app/views/projects/show.html.erb6
3 files changed, 7 insertions, 7 deletions
diff --git a/app/views/news/_news.html.erb b/app/views/news/_news.html.erb
index ddbaecabf..cc83d2a9e 100644
--- a/app/views/news/_news.html.erb
+++ b/app/views/news/_news.html.erb
@@ -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>
diff --git a/app/views/projects/_members_box.html.erb b/app/views/projects/_members_box.html.erb
index 4e3a1cb9f..e8c8114c4 100644
--- a/app/views/projects/_members_box.html.erb
+++ b/app/views/projects/_members_box.html.erb
@@ -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 %>
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index 716df016f..b4b563a37 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -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>