summaryrefslogtreecommitdiffstats
path: root/app/views/news/_news.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/news/_news.rhtml')
-rw-r--r--app/views/news/_news.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/news/_news.rhtml b/app/views/news/_news.rhtml
index 7a065ba4e..17a410102 100644
--- a/app/views/news/_news.rhtml
+++ b/app/views/news/_news.rhtml
@@ -1,5 +1,5 @@
<p><%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless @project %>
<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %><br />
<% unless news.summary.blank? %><%=h news.summary %><br /><% end %>
-<em><%= news.author.name %>, <%= format_time(news.created_on) %></em><br />
-<%= news.comments_count %> <%= lwr(:label_comment, news.comments_count).downcase %><br /></p>
+<span class="author"><%= authoring news.created_on, news.author %>
+<%= "<br />#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase}" if news.comments_count > 0 %></span></p>