From 3af611abb212052351f0979b85027adafce87a69 Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 1 Dec 2009 23:02:39 +0100 Subject: dramatically reduced instanciated AR objects for tags --- app/views/custom/partials/_no_date_and_author.html.erb | 4 ++++ app/views/tags/show.html.erb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 app/views/custom/partials/_no_date_and_author.html.erb (limited to 'app/views') diff --git a/app/views/custom/partials/_no_date_and_author.html.erb b/app/views/custom/partials/_no_date_and_author.html.erb new file mode 100644 index 00000000..61d6aacf --- /dev/null +++ b/app/views/custom/partials/_no_date_and_author.html.erb @@ -0,0 +1,4 @@ +
+

<%= link_to page.title, content_path(page.node.unique_path) %>

+

<%= page.abstract %>

+
\ No newline at end of file diff --git a/app/views/tags/show.html.erb b/app/views/tags/show.html.erb index 7016efc2..b09cc15f 100644 --- a/app/views/tags/show.html.erb +++ b/app/views/tags/show.html.erb @@ -2,7 +2,7 @@ <%= render( - :partial => 'custom/partials/article', + :partial => 'custom/partials/no_date_and_author', :collection => @pages, :as => :page ) -- cgit v1.3