From 2dc3850798448e3698ae9f7c4c23033827d7cd64 2007-01-02 15:27:10 From: Jean-Philippe Lang Date: 2007-01-02 15:27:10 Subject: [PATCH] added an icon on news comments git-svn-id: http://redmine.rubyforge.org/svn/trunk@142 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml index 374bf72..bffefa7 100644 --- a/app/views/news/show.rhtml +++ b/app/views/news/show.rhtml @@ -5,14 +5,14 @@

<%=h @news.title %>

-

<%=h @news.summary %>
+

<% unless @news.summary.empty? %><%=h @news.summary %>
<% end %> <%= @news.author.display_name %>, <%= format_time(@news.created_on) %>


<%= textilizable auto_link @news.description %>
-

<%= l(:label_comment_plural) %>

+

<%= l(:label_comment_plural) %>

<% @news.comments.each do |comment| %> <% next if comment.new_record? %>

<%= format_time(comment.created_on) %> - <%= comment.author.name %>

diff --git a/public/images/comment.png b/public/images/comment.png new file mode 100644 index 0000000000000000000000000000000000000000..a67d5d4221b8e9e9f9c299448990f6833cb61a6e GIT binary patch literal 985 zc%17D@N?(olHy`uVBq!ia0vp^d?3uh3?wzC-F*zC*h@TpUD>ZQGVx0o{FdlA0uJasB`Qe_vnU`}gnn?c4X@ z!GnAE?p?il^}>Y<|B=AIfB){^zklP#jVo8K0J(SX-bI$x9R;Ic$b$Z)yS~7@!B`UH z7tG-B>_!@p7*cVow%1*#!GMQ3w^b}kFVdQ&MBb@08IM*FaQ7m literal 0 Hc$@bnWCl=>CEd~2k%3`jKlh(RRt5%Uh5(-s*Z=?jr=_KxIdf*_%$a-k z?Af(z*T#(-*Q{Cd?%lg*&z?Pb^5p5$r+4n$*}Z%BmMvR0Y}f!)zjNo#moHyFeE9J0 z-MjDKzh@W)qhQE_lh2CR0V&3kAirP+hi5m^fSf2#7srr_Td93F#TpbiTv%^qTwe3< zf4H%T_ul*%wsR7fA8;6b;bNLD`1!24vdcp86-tFkGe3mS{Gb@{*TKfc$3}lo+t+Q; s6XYabwg=AUoNMOWVDqOtE3fqv!_})S`g0EnE&*BX>FVdQ&MBb@0L*}V)c^nh diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 3ad2ced..2b1c537 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -151,6 +151,7 @@ background-color: #80b0da; .folder { background-image: url(../images/folder.png); } .file { background-image: url(../images/file.png); } .attachment { background-image: url(../images/attachment.png); } +.comment { background-image: url(../images/comment.png); } /**************** Content styles ****************/