|
|
|
@ -80,7 +80,9 @@
|
|
|
|
|
<div id="comments" style="margin-bottom:16px;">
|
|
|
|
|
|
|
|
|
|
<div style="margin:15px">
|
|
|
|
|
<span class="font_description"> <%= textilizable(@news, :description) %> </span>
|
|
|
|
|
<span class="font_description">
|
|
|
|
|
<%= textilizable(@news, :description) %>
|
|
|
|
|
</span>
|
|
|
|
|
<br/>
|
|
|
|
|
<%= link_to_attachments @news %>
|
|
|
|
|
<br/>
|
|
|
|
@ -115,22 +117,35 @@
|
|
|
|
|
<% next if comment.new_record? %>
|
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(comment.author), :class => "avatar")%></td>
|
|
|
|
|
<td colspan="2" valign="top" width="50" >
|
|
|
|
|
<%= image_tag(url_to_avatar(comment.author), :class => "avatar")%>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table width="580px" border="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" valign="top"><strong><%= link_to_user(comment.author) if comment.respond_to?(:author) %> </strong><span class="font_lighter"><%= l(:label_project_newadd) %></span><%= l(:label_comment_plural) %></td>
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
<strong><%= link_to_user(comment.author) if comment.respond_to?(:author) %> </strong>
|
|
|
|
|
<span class="font_lighter"><%= l(:label_project_newadd) %></span>
|
|
|
|
|
<%= l(:label_comment_plural) %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" width="580px" >
|
|
|
|
|
<p class="font_description">
|
|
|
|
|
<span class="font_description">
|
|
|
|
|
<%= textilizable(comment.comments) %>
|
|
|
|
|
</p></td>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="left"><span class="font_lighter"> <%= format_time(comment.created_on) %></span></td>
|
|
|
|
|
<td width="200" align="right" class="a"><%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %></td>
|
|
|
|
|
<td align="left">
|
|
|
|
|
<span class="font_lighter"> <%= format_time(comment.created_on) %></span>
|
|
|
|
|
</td>
|
|
|
|
|
<td width="200" align="right" class="a">
|
|
|
|
|
<%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:method => :delete,
|
|
|
|
|
:title => l(:button_delete) %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|