Commit d9f5bcd5e0296d07277352e75307c78c2930fb65

Authored by AntonioTerceiro
1 parent 322a5d33

ActionItem21: checkpoint, rounding the corners



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@974 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/helpers/application_helper.rb
@@ -327,10 +327,11 @@ module ApplicationHelper @@ -327,10 +327,11 @@ module ApplicationHelper
327 show_button_id = id + "-show" 327 show_button_id = id + "-show"
328 328
329 result = "" 329 result = ""
330 - result << button_to_function('close', hide_label, hide(id) + hide(hide_button_id) + show(show_button_id), :id => hide_button_id, :class => 'hide-button with_text')  
331 - result < " "  
332 result << button_to_function('open', show_label, show(id) + show(hide_button_id) + hide(show_button_id), :id => show_button_id, :class => 'show-button with_text', :style => 'display: none;' ) 330 result << button_to_function('open', show_label, show(id) + show(hide_button_id) + hide(show_button_id), :id => show_button_id, :class => 'show-button with_text', :style => 'display: none;' )
333 331
  332 + result < " "
  333 + result << button_to_function('close', hide_label, hide(id) + hide(hide_button_id) + show(show_button_id), :id => hide_button_id, :class => 'hide-button with_text')
  334 +
334 result 335 result
335 end 336 end
336 337
app/views/cms/text_html_new.rhtml
@@ -10,6 +10,6 @@ @@ -10,6 +10,6 @@
10 10
11 <%= f.text_area('body', :cols => 64) %> 11 <%= f.text_area('body', :cols => 64) %>
12 12
13 - <%= submit_tag _('Save') %> 13 + <%= design_display_button_submit('save', _('Save')) %>
14 14
15 <% end %> 15 <% end %>
app/views/cms/view.rhtml
@@ -17,8 +17,9 @@ @@ -17,8 +17,9 @@
17 <% end %> 17 <% end %>
18 18
19 <%# subitem %> 19 <%# subitem %>
20 -  
21 -<%= toggle_panel(_('Hide subitems'), _('Show subitems'), 'article-subitems') unless @subitems.empty? %> 20 +<% if !@subitems.empty? && @article %>
  21 + <%= toggle_panel(_('Hide subitems'), _('Show subitems'), 'article-subitems') %>
  22 +<% end %>
22 23
23 <div id='article-subitems'> 24 <div id='article-subitems'>
24 <div class='file-manager-title'><%= @article ? _('Subitems') : _('Articles') %></div> 25 <div class='file-manager-title'><%= @article ? _('Subitems') : _('Articles') %></div>
@@ -36,6 +37,7 @@ @@ -36,6 +37,7 @@
36 <% if @article %> 37 <% if @article %>
37 <% button_bar(:class => 'file-manager-controls') do %> 38 <% button_bar(:class => 'file-manager-controls') do %>
38 <%= button('new', _('New subitem'), :action => 'new', :parent_id => @article.id) %> 39 <%= button('new', _('New subitem'), :action => 'new', :parent_id => @article.id) %>
  40 + <%= button('up', _('Go up one level'), :action => (@article.parent ? 'view' : 'index'), :id => @article.parent) %>
39 <% end %> 41 <% end %>
40 <% end %> 42 <% end %>
41 </div> 43 </div>
public/designs/icons/default/README
1 Source and Licensing 1 Source and Licensing
2 ==================== 2 ====================
3 3
4 -Icon Source theme Source section License  
5 -------------------------- ------------ -------------- -------  
6 -gtk-edit.png dlg-neu stock/ GPLv2+  
7 -gnome-home.png Nuovo apps/ GPLv2+  
8 -gtk-new.png Nuovo stock/ GPLv2+  
9 -gtk-close.png Nuovo stock/ GPLv2+  
10 -gtk-open.png Nuovo stock/ GPLv2+  
11 -abiword_48.png dlg-neu apps/ GPLv2+ 4 +Icons are taken from GNOME/Gtk+ themes on Debian systems. Normally they are
  5 +converted from SVG to PNG using rsvg (from package librsvg2-bin).
  6 +
  7 +Icon Source theme Source section
  8 +------------------------- ------------ --------------
  9 +gtk-edit.png dlg-neu stock/
  10 +gnome-home.png Nuovo apps/
  11 +gtk-new.png Nuovo stock/
  12 +gtk-close.png Nuovo stock/
  13 +gtk-open.png Nuovo stock/
  14 +abiword_48.png dlg-neu apps/
  15 +gtk-save.png Nuovo stock/
  16 +gtk-go-up.png Nuovo stock/
  17 +
  18 +Licensing of GNOME themes
  19 +=========================
  20 +
  21 +Nuovo: GPL 2 or later
  22 +dlg-neu: GPL 2 or later
public/designs/icons/default/gtk-go-up.png 0 → 100644

1.01 KB

public/designs/icons/default/gtk-save.png 0 → 100644

729 Bytes

public/designs/icons/default/style.css
@@ -4,4 +4,5 @@ @@ -4,4 +4,5 @@
4 .button.close { background-image: url(gtk-close.png); } 4 .button.close { background-image: url(gtk-close.png); }
5 .button.open { background-image: url(gtk-open.png); } 5 .button.open { background-image: url(gtk-open.png); }
6 .button.cms { background-image: url(abiword_48.png)} 6 .button.cms { background-image: url(abiword_48.png)}
7 - 7 +.button.save { background-image: url(gtk-save.png); }
  8 +.button.up { background-image: url(gtk-go-up.png); }
public/stylesheets/button.css
@@ -6,18 +6,22 @@ @@ -6,18 +6,22 @@
6 background-position: 0px; 6 background-position: 0px;
7 7
8 padding-left: 25px; 8 padding-left: 25px;
  9 + padding-right: 2px;
9 10
10 float: left; 11 float: left;
11 display: block; 12 display: block;
12 height: 26px; 13 height: 26px;
  14 +
13 } 15 }
14 16
15 -a.button , a.button:visited { 17 +.button , .button:visited {
16 color: black; 18 color: black;
17 text-decoration: none; 19 text-decoration: none;
  20 + border: 1px solid transparent;
18 } 21 }
19 22
20 -a.button:hover {  
21 - background-color: #ace; 23 +.button:hover {
  24 + border: 1px solid black;
  25 + background-color: #eee;
22 } 26 }
23 27
public/stylesheets/common.css
@@ -146,6 +146,7 @@ div.file-manager-button a:hover { @@ -146,6 +146,7 @@ div.file-manager-button a:hover {
146 padding: 2px; 146 padding: 2px;
147 background: #579; 147 background: #579;
148 color: white; 148 color: white;
  149 + height: 24px;
149 } 150 }
150 151
151 .file-manager-small ul { 152 .file-manager-small ul {
@@ -198,7 +199,6 @@ div.file-manager-button a:hover { @@ -198,7 +199,6 @@ div.file-manager-button a:hover {
198 199
199 #article-subitems-hide.hide-button { 200 #article-subitems-hide.hide-button {
200 float: right; 201 float: right;
201 - margin-right: 4px;  
202 color: white; 202 color: white;
203 } 203 }
204 #article-subitems-hide.hide-button:hover { 204 #article-subitems-hide.hide-button:hover {