2006-06-28 22:11:03 +04:00
|
|
|
<h2><%= @news.title %></h2>
|
|
|
|
|
|
|
|
<p>
|
2006-07-29 23:54:22 +04:00
|
|
|
<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) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</p>
|
|
|
|
|
2006-11-12 21:50:30 +03:00
|
|
|
<%= textilizable auto_link @news.description %>
|
2006-09-02 17:33:23 +04:00
|
|
|
|
|
|
|
<% 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 %>
|