##// END OF EJS Templates
Removed a line break on news/show...
Jean-Philippe Lang -
r591:6edfcd83c197
parent child
Show More
@@ -1,32 +1,31
1 1 <div class="contextual">
2 2 <%= link_to_if_authorized l(:button_edit), {:controller => 'news', :action => 'edit', :id => @news}, :class => 'icon icon-edit' %>
3 3 <%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy', :id => @news}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
4 4 </div>
5 5
6 6 <h2><%=h @news.title %></h2>
7 7
8 8 <p><em><% unless @news.summary.empty? %><%=h @news.summary %><br /><% end %>
9 9 <%= @news.author.name %>, <%= format_time(@news.created_on) %></em></p>
10 <br />
11 10 <%= textilizable(@news.description) %>
12 11 <br />
13 12
14 13 <div id="comments" style="margin-bottom:16px;">
15 14 <h3 class="icon22 icon22-comment"><%= l(:label_comment_plural) %></h3>
16 15 <% @news.comments.each do |comment| %>
17 16 <% next if comment.new_record? %>
18 17 <h4><%= format_time(comment.created_on) %> - <%= comment.author.name %></h4>
19 18 <div class="contextual">
20 19 <%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
21 20 </div>
22 21 <%= simple_format(auto_link(h comment.comments))%>
23 22 <% end if @news.comments_count > 0 %>
24 23 </div>
25 24
26 25 <% if authorize_for 'news', 'add_comment' %>
27 26 <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
28 27 <% form_tag({:action => 'add_comment', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
29 28 <%= text_area 'comment', 'comments', :cols => 60, :rows => 6 %>
30 29 <p><%= submit_tag l(:button_add) %></p>
31 30 <% end %>
32 31 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now