##// 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 <div class="contextual">
1 <div class="contextual">
2 <%= link_to_if_authorized l(:button_edit), {:controller => 'news', :action => 'edit', :id => @news}, :class => 'icon icon-edit' %>
2 <%= link_to_if_authorized l(:button_edit), {:controller => 'news', :action => 'edit', :id => @news}, :class => 'icon icon-edit' %>
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' %>
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 </div>
4 </div>
5
5
6 <h2><%=h @news.title %></h2>
6 <h2><%=h @news.title %></h2>
7
7
8 <p><em><% unless @news.summary.empty? %><%=h @news.summary %><br /><% end %>
8 <p><em><% unless @news.summary.empty? %><%=h @news.summary %><br /><% end %>
9 <%= @news.author.name %>, <%= format_time(@news.created_on) %></em></p>
9 <%= @news.author.name %>, <%= format_time(@news.created_on) %></em></p>
10 <br />
11 <%= textilizable(@news.description) %>
10 <%= textilizable(@news.description) %>
12 <br />
11 <br />
13
12
14 <div id="comments" style="margin-bottom:16px;">
13 <div id="comments" style="margin-bottom:16px;">
15 <h3 class="icon22 icon22-comment"><%= l(:label_comment_plural) %></h3>
14 <h3 class="icon22 icon22-comment"><%= l(:label_comment_plural) %></h3>
16 <% @news.comments.each do |comment| %>
15 <% @news.comments.each do |comment| %>
17 <% next if comment.new_record? %>
16 <% next if comment.new_record? %>
18 <h4><%= format_time(comment.created_on) %> - <%= comment.author.name %></h4>
17 <h4><%= format_time(comment.created_on) %> - <%= comment.author.name %></h4>
19 <div class="contextual">
18 <div class="contextual">
20 <%= 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' %>
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 </div>
20 </div>
22 <%= simple_format(auto_link(h comment.comments))%>
21 <%= simple_format(auto_link(h comment.comments))%>
23 <% end if @news.comments_count > 0 %>
22 <% end if @news.comments_count > 0 %>
24 </div>
23 </div>
25
24
26 <% if authorize_for 'news', 'add_comment' %>
25 <% if authorize_for 'news', 'add_comment' %>
27 <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
26 <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
28 <% form_tag({:action => 'add_comment', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
27 <% form_tag({:action => 'add_comment', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
29 <%= text_area 'comment', 'comments', :cols => 60, :rows => 6 %>
28 <%= text_area 'comment', 'comments', :cols => 60, :rows => 6 %>
30 <p><%= submit_tag l(:button_add) %></p>
29 <p><%= submit_tag l(:button_add) %></p>
31 <% end %>
30 <% end %>
32 <% end %>
31 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now