summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-05 18:08:23 +0200
committerhukl <contact@smyck.org>2009-09-05 18:08:23 +0200
commitf919497c2b590402c3cbd7744097a9bd32b70afd (patch)
tree94961500f507a7cceec67868fe042755d94151d8 /app/views
parent3c631738935199aba050223bac50416b299e16c5 (diff)
added tag resource, widget and auxillary files
Diffstat (limited to 'app/views')
-rw-r--r--app/views/content/_tags.html.erb8
-rw-r--r--app/views/layouts/application.html.erb2
-rw-r--r--app/views/tags/index.html.erb2
-rw-r--r--app/views/tags/show.html.erb9
4 files changed, 20 insertions, 1 deletions
diff --git a/app/views/content/_tags.html.erb b/app/views/content/_tags.html.erb
new file mode 100644
index 0000000..8012796
--- /dev/null
+++ b/app/views/content/_tags.html.erb
@@ -0,0 +1,8 @@
1<div id="frontpage_calendar">
2 <h2>Tags</h2>
3 <ul class="teasertext">
4 <% @page.tags.each do |tag| %>
5 <li><%= link_to tag.name, tag_path(:id => tag.name) %></li>
6 <% end %>
7 </ul>
8</div> \ No newline at end of file
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 2496595..69db939 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -23,7 +23,7 @@
23 <%= yield :layout %> 23 <%= yield :layout %>
24 </div> 24 </div>
25 <div id="right_column"> 25 <div id="right_column">
26 26 <%= tags %>
27 </div> 27 </div>
28 </div> 28 </div>
29 29
diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb
new file mode 100644
index 0000000..19cf908
--- /dev/null
+++ b/app/views/tags/index.html.erb
@@ -0,0 +1,2 @@
1<h1>Tags#index</h1>
2<p>Find me in app/views/tags/index.html.erb</p>
diff --git a/app/views/tags/show.html.erb b/app/views/tags/show.html.erb
new file mode 100644
index 0000000..4012bbf
--- /dev/null
+++ b/app/views/tags/show.html.erb
@@ -0,0 +1,9 @@
1<%=
2 render(
3 :partial => 'custom/partials/article',
4 :collection => @pages,
5 :as => :page
6 )
7 %>
8
9<%= will_paginate @pages %>