]> source.dussan.org Git - redmine.git/commitdiff
added an icon on news comments
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 2 Jan 2007 15:27:10 +0000 (15:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 2 Jan 2007 15:27:10 +0000 (15:27 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@142 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/news/show.rhtml
public/images/comment.png [new file with mode: 0644]
public/images/notes.png [deleted file]
public/stylesheets/application.css

index 374bf72af54956f4883a5b0fb1f8ee5aba62882a..bffefa7691079c51c1124080a3a1a8e9742619f7 100644 (file)
@@ -5,14 +5,14 @@
 \r
 <h2><%=h @news.title %></h2>\r
 \r
-<p><em><%=h @news.summary %><br />\r
+<p><em><% unless @news.summary.empty? %><%=h @news.summary %><br /><% end %>\r
 <%= @news.author.display_name %>, <%= format_time(@news.created_on) %></em></p>\r
 <br />\r
 <%= textilizable auto_link @news.description %>
 <br />\r
 \r
 <div id="comments" style="margin-bottom:16px;">\r
-<h3><%= l(:label_comment_plural) %></h3>\r
+<h3 class="icon comment"><%= l(:label_comment_plural) %></h3>\r
 <% @news.comments.each do |comment| %>\r
     <% next if comment.new_record? %>\r
     <h4><%= format_time(comment.created_on) %> - <%= comment.author.name %></h4>\r
diff --git a/public/images/comment.png b/public/images/comment.png
new file mode 100644 (file)
index 0000000..a67d5d4
Binary files /dev/null and b/public/images/comment.png differ
diff --git a/public/images/notes.png b/public/images/notes.png
deleted file mode 100644 (file)
index d26b1d5..0000000
Binary files a/public/images/notes.png and /dev/null differ
index 3ad2ced3f518d65e102bff8afefe50e8cffc2307..2b1c53794d0d5c1b22ba8919623f7b5ecceaa91c 100644 (file)
@@ -151,6 +151,7 @@ background-color: #80b0da;
 .folder   { background-image: url(../images/folder.png); }\r
 .file     { background-image: url(../images/file.png); }\r
 .attachment  { background-image: url(../images/attachment.png); }\r
+.comment  { background-image: url(../images/comment.png); }\r
 \r
 /**************** Content styles ****************/\r
 \r