diff options
| author | hukl <contact@smyck.org> | 2009-08-08 15:04:11 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-08-08 15:04:11 +0200 |
| commit | 397bee72fa5bccf64d09eeb77b5ee0000aabfdb4 (patch) | |
| tree | df027dee605118c813ffdde893e01a550a732e43 /app/views/content/_main_navigation.html.erb | |
| parent | 7c9f0d0823bdce9a011d3bdd2823e15ffb7c1311 (diff) | |
added dynamic main menu
Diffstat (limited to 'app/views/content/_main_navigation.html.erb')
| -rw-r--r-- | app/views/content/_main_navigation.html.erb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/content/_main_navigation.html.erb b/app/views/content/_main_navigation.html.erb index f43e201..98919a5 100644 --- a/app/views/content/_main_navigation.html.erb +++ b/app/views/content/_main_navigation.html.erb | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | <%= Time.now %> | ||
| 1 | <div id="main_navigation"> | 2 | <div id="main_navigation"> |
| 2 | <ul> | 3 | <ul> |
| 3 | <% nodes.each do |node| %> | 4 | <% menu_items.each do |item| %> |
| 4 | <li><%= link_to_path node.head.try(:title), node.unique_name %></li> | 5 | <li><%= link_to_path item.title, item.path %></li> |
| 5 | <% end %> | 6 | <% end %> |
| 6 | </ul> | 7 | </ul> |
| 7 | </div> \ No newline at end of file | 8 | </div> \ No newline at end of file |
