From 1de97a5ac6f4621f8013d6f73c6c9edfae445b70 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 15 Nov 2009 14:31:52 +0100 Subject: removed date and author from the standard template and introduced a dedicated update template which will get auto assigned if a node is created under updates// Added tests and convenient method --- .../custom/page_templates/public/standard_template.html.erb | 1 - app/views/custom/page_templates/public/update.html.erb | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/views/custom/page_templates/public/update.html.erb (limited to 'app/views') diff --git a/app/views/custom/page_templates/public/standard_template.html.erb b/app/views/custom/page_templates/public/standard_template.html.erb index 5ea277a..8000af5 100644 --- a/app/views/custom/page_templates/public/standard_template.html.erb +++ b/app/views/custom/page_templates/public/standard_template.html.erb @@ -1,6 +1,5 @@

<%= @page.title %>

-
<%= date_for_page @page %>, <%= @page.user.try(:login) %>

<%= sanitize( @page.abstract )%>

<%= headline_image %>
<%= aggregate?(@page.body) %>
diff --git a/app/views/custom/page_templates/public/update.html.erb b/app/views/custom/page_templates/public/update.html.erb new file mode 100644 index 0000000..5ea277a --- /dev/null +++ b/app/views/custom/page_templates/public/update.html.erb @@ -0,0 +1,9 @@ +
+

<%= @page.title %>

+
<%= date_for_page @page %>, <%= @page.user.try(:login) %>
+

<%= sanitize( @page.abstract )%>

+
<%= headline_image %>
+
<%= aggregate?(@page.body) %>
+
+ +<%= will_paginate(@content_collection) if @content_collection %> \ No newline at end of file -- cgit v1.3