- <% if @article %>
-
- <%= @article.name %>
- <%= image_tag(icon_for_article(@article)) %>
-
- <% button_bar(:id => 'article-controls') do %>
-
-
- -
- <%= _('"%{article}", last changed by %{author}') % { :article => @article.name, :author => (@article.last_changed_by ? @article.last_changed_by.name : _('Unknown User')) } %>
-
- -
- <%= _('Public address of this article: %s') % link_to(url_for(@article.url), @article.url) %>
-
- -
- <%= _('Tags:') %> <%= @article.tag_list %>
-
- <%= _('Categories:') %> <%= @article.categories.map { |item| item.name }.join(', ') %>
-
+ <%# folders %>
+
+
+ <%= _('Folders') %>
+ |
+
+ <% if @folders.empty? %>
+
<%= _('None') %> |
+ <% end %>
+ <% for folder in @folders %>
+
+
+ <%= image_tag(icon_for_article(folder)) %>
+ <%= link_to folder.name, :action => 'view', :id => folder.id %>
+ |
+
+ <%= link_to _('Properties'), :action => 'edit', :id => folder.id %>
+ <%= link_to _('View'), folder.url %>
+ |
+
+ <% end %>
- <%= button('edit', _('Edit'), { :action => 'edit', :id => @article}) %>
- <%= button('home', _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post }) %>
- <%= button('delete', _('Delete'), { :action => 'destroy', :id => @article }, :method => :post, :confirm => _('Are you sure you wan to remove this article?')) %>
- <% end %>
- <%= @article.to_html %>
+ <%# non-folder subitems %>
+
+
+ <%= _('Articles') %>
+ |
+
+ <% if @subitems.empty? %>
+
<%= _('None') %> |
+ <% end %>
+ <% for item in @subitems %>
+
+
+ <%= image_tag(icon_for_article(item)) %>
+ <%= link_to item.name, :id => item.id %>
+ |
+
+ <%= link_to _('Edit'), :action => 'edit', :id => item.id %>
+ <%= link_to _('View'), item.url %>
+ |
+
<% end %>
-
+
+
+