From 6be53feb791a9afb90c22ee6937be47592e629bc Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Tue, 13 May 2008 23:22:29 +0000 Subject: [PATCH] ActionItem158: making CMS look better --- app/views/cms/view.rhtml | 35 +++++++++++++++++++++-------------- public/stylesheets/common.css | 7 +++++++ 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/app/views/cms/view.rhtml b/app/views/cms/view.rhtml index eabbe15..f3ab968 100644 --- a/app/views/cms/view.rhtml +++ b/app/views/cms/view.rhtml @@ -17,17 +17,16 @@ <%= lightbox_button('new', _('New article'), :action => 'new', :parent_id => parent_id) %> <% end %> - +
- <%# folders %> + <%# header %> - + + + - <% if @folders.empty? %> - - <% end %> + + <%# folders %> <% for folder in @folders %> + @@ -42,11 +44,13 @@ <% end %> <%# non-folder subitems %> - - - + <% unless @folders.empty? %> + + + + <% end %> <% if @subitems.empty? %> <% end %> @@ -54,7 +58,10 @@ +
- <%= _('Folders') %> - <%= _('Name') %><%= _('Type') %><%= _('Actions') %>
<%= _('None') %>
@@ -35,6 +34,9 @@ <%= link_to folder.name, :action => 'view', :id => folder.id %> + <%= folder.class.short_description %> + <%= link_to _('Properties'), :action => 'edit', :id => folder.id %> <%= link_to _('View'), folder.url %>
- <%= _('Articles') %> -
+   +
<%= _('None') %>
<%= image_tag(icon_for_article(item)) %> - <%= link_to item.name, :id => item.id %> + <%= link_to item.name, :action => 'edit', :id => item.id %> + + <%= item.class.short_description %> <%= link_to _('Edit'), :action => 'edit', :id => item.id %> diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index 25e5e0d..5fde6e1 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -217,6 +217,13 @@ th { font-weight: bold; } +table.cms-articles { + width: 100%; +} +table.cms-articles th, table.cms-articles td { + border: 1px solid #e0e0e0; +} + /* for fields with auto-completion */ div.auto-complete { background: #729FCF; -- libgit2 0.21.2