summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-12-01 23:02:39 +0100
committerhukl <contact@smyck.org>2009-12-01 23:04:06 +0100
commit3af611abb212052351f0979b85027adafce87a69 (patch)
tree7dd3d23a3346d95f1dd80b2724bcf51297a8896b /app/views
parent4d3d971452086f375eed953f66f25cfe6e622281 (diff)
dramatically reduced instanciated AR objects for tags
Diffstat (limited to 'app/views')
-rw-r--r--app/views/custom/partials/_no_date_and_author.html.erb4
-rw-r--r--app/views/tags/show.html.erb2
2 files changed, 5 insertions, 1 deletions
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 0000000..61d6aac
--- /dev/null
+++ b/app/views/custom/partials/_no_date_and_author.html.erb
@@ -0,0 +1,4 @@
1<div class="article_partial">
2 <h2 class="headline"><%= link_to page.title, content_path(page.node.unique_path) %></h2>
3 <p class="excerpt"><%= page.abstract %></p>
4</div> \ No newline at end of file
diff --git a/app/views/tags/show.html.erb b/app/views/tags/show.html.erb
index 7016efc..b09cc15 100644
--- a/app/views/tags/show.html.erb
+++ b/app/views/tags/show.html.erb
@@ -2,7 +2,7 @@
2 2
3<%= 3<%=
4 render( 4 render(
5 :partial => 'custom/partials/article', 5 :partial => 'custom/partials/no_date_and_author',
6 :collection => @pages, 6 :collection => @pages,
7 :as => :page 7 :as => :page
8 ) 8 )