Chris@909:
Chris@909: <%= watcher_tag(@news, User.current) %> Chris@909: <%= link_to(l(:button_edit), Chris@909: edit_news_path(@news), Chris@909: :class => 'icon icon-edit', Chris@909: :accesskey => accesskey(:edit), Chris@909: :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %> Chris@909: <%= link_to(l(:button_delete), Chris@909: news_path(@news), Chris@909: :confirm => l(:text_are_you_sure), Chris@909: :method => :delete, Chris@909: :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %> Chris@909:
Chris@909: Chris@909:

<%= avatar(@news.author, :size => "24") %><%=h @news.title %>

Chris@909: Chris@909: <% if authorize_for('news', 'edit') %> Chris@909: Chris@909: <% end %> Chris@909: Chris@909:

<% unless @news.summary.blank? %><%=h @news.summary %>
<% end %> Chris@909: <%= authoring @news.created_on, @news.author %>

Chris@909:
Chris@909: <%= textilizable(@news.description) %> Chris@909:
Chris@909:
Chris@909: Chris@909:
Chris@909:

<%= l(:label_comment_plural) %>

Chris@909: <% @comments.each do |comment| %> Chris@909: <% next if comment.new_record? %> Chris@909:
Chris@909: <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, Chris@909: :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> Chris@909:
Chris@909:

<%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %>

Chris@909: <%= textilizable(comment.comments) %> Chris@909: <% end if @comments.any? %> Chris@909:
Chris@909: Chris@909: <% if authorize_for 'comments', 'create' %> Chris@909:

<%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %>

Chris@909: <% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> Chris@909:
Chris@909: <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %> Chris@909: <%= wikitoolbar_for 'comment_comments' %> Chris@909:
Chris@909:

<%= submit_tag l(:button_add) %>

Chris@909: <% end %> Chris@909: <% end %> Chris@909: Chris@909: <% html_title @news.title -%> Chris@909: Chris@909: <% content_for :header_tags do %> Chris@909: <%= stylesheet_link_tag 'scm' %> Chris@909: <% end %>