Commit a60056bb1b9228b8dd1df843075d2db405fc6721
Committed by
Antonio Terceiro
1 parent
d660e16c
Exists in
master
and in
29 other branches
ActionItem1047: better cms
* changed the cms action links to icons * removed the space between folders and non-folders in the table
Showing
1 changed file
with
9 additions
and
16 deletions
Show diff stats
app/views/cms/view.rhtml
... | ... | @@ -41,22 +41,15 @@ |
41 | 41 | <%= folder.class.short_description %> |
42 | 42 | </td> |
43 | 43 | <td> |
44 | - <%= link_to _('Properties'), :action => 'edit', :id => folder.id %> | |
45 | - <%= link_to _('Public view'), folder.url %> | |
46 | - <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %> | |
47 | - <%= link_to _('Delete'), { :action => 'destroy', :id => folder.id }, :method => :post, :confirm => _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %> | |
44 | + <%= button_without_text :edit, _('Properties'), :action => 'edit', :id => folder.id %> | |
45 | + <%= button_without_text :eyes, _('Public view'), folder.url %> | |
46 | + <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %> | |
47 | + <%= button_without_text :delete, _('Delete'), { :action => 'destroy', :id => folder.id }, :method => :post, :confirm => _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %> | |
48 | 48 | </td> |
49 | 49 | </tr> |
50 | 50 | <% end %> |
51 | 51 | |
52 | 52 | <%# non-folder subitems %> |
53 | - <% unless @folders.empty? %> | |
54 | - <tr> | |
55 | - <td colspan='3'> | |
56 | - | |
57 | - </td> | |
58 | - </tr> | |
59 | - <% end %> | |
60 | 53 | <% for item in @subitems %> |
61 | 54 | <tr> |
62 | 55 | <td> |
... | ... | @@ -67,11 +60,11 @@ |
67 | 60 | <%= item.class.short_description %> |
68 | 61 | </td> |
69 | 62 | <td> |
70 | - <%= link_to _('Edit'), :action => 'edit', :id => item.id %> | |
71 | - <%= link_to _('Public view'), item.url %> | |
72 | - <%= link_to _('Spread this'), :action => 'publish', :id => item.id %> | |
73 | - <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => item.id }, :method => :post %> | |
74 | - <%= link_to _('Delete'), { :action => 'destroy', :id => item.id }, :method => :post, :confirm => _('Are you sure that you want to remove this item?') %> | |
63 | + <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => item.id %> | |
64 | + <%= button_without_text :eyes, _('Public view'), item.url %> | |
65 | + <%= button_without_text :spread, _('Spread this'), :action => 'publish', :id => item.id %> | |
66 | + <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => item.id }, :method => :post %> | |
67 | + <%= button_without_text :delete, _('Delete'), { :action => 'destroy', :id => item.id }, :method => :post, :confirm => _('Are you sure that you want to remove this item?') %> | |
75 | 68 | </td> |
76 | 69 | </tr> |
77 | 70 | <% end %> | ... | ... |