summaryrefslogtreecommitdiff
path: root/app/views/content
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-07-19 12:26:42 +0200
committerhukl <contact@smyck.org>2009-07-19 12:26:42 +0200
commit03e985f546634b9bfc3053e965477d555c6663a8 (patch)
treeef622a72a49a676bc7e89254a073b0ad53e76d90 /app/views/content
parent144b18c5db61c53028177680295f3fc9d4e8711d (diff)
intermediate commit introducing main menu and calendar widget which will get refactored soon. need another feature first
Diffstat (limited to 'app/views/content')
-rw-r--r--app/views/content/_front_page_calendar.html.erb11
-rw-r--r--app/views/content/_main_navigation.html.erb7
2 files changed, 18 insertions, 0 deletions
diff --git a/app/views/content/_front_page_calendar.html.erb b/app/views/content/_front_page_calendar.html.erb
new file mode 100644
index 0000000..1a409a6
--- /dev/null
+++ b/app/views/content/_front_page_calendar.html.erb
@@ -0,0 +1,11 @@
1<div id="frontpage_calendar">
2 <h2>Calendar</h2>
3 <ul class="teasertext">
4 <% occurrences.each do |occurrence| %>
5 <li>
6 <div><%= l occurrence.start_time.to_date, :format => :default %></div>
7 <%= link_to_path occurrence.node.head.title, occurrence.node.unique_name %>
8 </li>
9 <% end %>
10 </ul>
11</div> \ No newline at end of file
diff --git a/app/views/content/_main_navigation.html.erb b/app/views/content/_main_navigation.html.erb
new file mode 100644
index 0000000..3160fd4
--- /dev/null
+++ b/app/views/content/_main_navigation.html.erb
@@ -0,0 +1,7 @@
1<div id="main_navigation">
2 <ul>
3 <% nodes.each do |node| %>
4 <li><%= link_to node.head.try(:title), node.unique_name %></li>
5 <% end %>
6 </ul>
7</div> \ No newline at end of file