Redmine/redmine/app/views/news/show.rhtml

22 lines
714 B
Plaintext

<h2><%= @news.title %></h2>
<p>
<b><%=l(:field_summary)%></b>: <%= @news.summary %><br />
<b><%=l(:field_author)%></b>: <%= @news.author.display_name %><br />
<b><%=l(:field_created_on)%></b>: <%= format_time(@news.created_on) %>
</p>
<%= textilizable auto_link @news.description %>
<% if authorize_for('news', 'edit') %>
<%= start_form_tag ({:controller => 'news', :action => 'edit', :id => @news}, :method => 'get' ) %>
<%= submit_tag l(:button_edit) %>
<%= end_form_tag %>
<% end %>
<% if authorize_for('news', 'destroy') %>
<%= start_form_tag ({:controller => 'news', :action => 'destroy', :id => @news}) %>
<%= submit_tag l(:button_delete) %>
<%= end_form_tag %>
<% end %>