summaryrefslogtreecommitdiffstats
path: root/redmine/app/views/news/show.rhtml
blob: bea9af4fb55539fea96edde3f8f4c470cbaf8948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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>

<%= simple_format 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 %>