summaryrefslogtreecommitdiffstats
path: root/app/views/news/show.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/news/show.rhtml')
-rw-r--r--app/views/news/show.rhtml16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml
new file mode 100644
index 000000000..91df09f0f
--- /dev/null
+++ b/app/views/news/show.rhtml
@@ -0,0 +1,16 @@
+<h2><%= @news.title %></h2>
+
+<p><em><%= @news.summary %><br />
+<%= @news.author.display_name %>, <%= format_time(@news.created_on) %></em></p>
+<br />
+<%= textilizable auto_link @news.description %>
+
+<div style="float:right;">
+<% if authorize_for('news', 'destroy') %>
+ <%= start_form_tag ({:controller => 'news', :action => 'destroy', :id => @news}) %>
+ <%= submit_tag l(:button_delete) %>
+ <%= end_form_tag %>
+<% end %>
+</div>
+
+<%= link_to_if_authorized l(:button_edit), :controller => 'news', :action => 'edit', :id => @news %>