Commit 5905980f5cfe08ee67439346c79d98cfdf31a06f

Authored by AntonioTerceiro
1 parent 84f38b95

ActionItem21: checkpoint



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@981 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/cms/text_html_new.rhtml
... ... @@ -11,5 +11,6 @@
11 11 <%= f.text_area('body', :cols => 64) %>
12 12  
13 13 <%= design_display_button_submit('save', _('Save')) %>
  14 + <%= design_display_button('cancel', _('Cancel'), :action => 'view', :id => @article) %>
14 15  
15 16 <% end %>
... ...
app/views/cms/view.rhtml
... ... @@ -48,6 +48,16 @@
48 48 <% if @article %>
49 49 <h2><%= @article.name %></h2>
50 50 <% button_bar(:id => 'article-controls') do %>
  51 +
  52 + <ul>
  53 + <li>
  54 + <%= _('"%{article}", last changed by %{author}') % { :article => @article.name, :author => 'bli' } %>
  55 + </li>
  56 + <li>
  57 + <%= _('Public address of this article: %s') % (@article.public_path) %>
  58 + </li>
  59 + </ul>
  60 +
51 61 <%= link_to_edit_article(@article) %>
52 62 <%= button('home', _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post }) %>
53 63 <% end %>
... ...
app/views/content_viewer/no_home_page.rhtml 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +<h2><%= _("Missing home page") %></h2>
  2 +
  3 +<p>
  4 +<%= _('%s did not choose an article for homepage yet.') % profile.name %>
  5 +</p>
... ...
public/stylesheets/button.css
... ... @@ -3,14 +3,14 @@
3 3 margin-left: 5px;
4 4 background-color: transparent;
5 5 background-repeat: no-repeat;
6   - background-position: 0px;
  6 + background-position: 0 0;
7 7  
8 8 padding-left: 25px;
9 9 padding-right: 2px;
10 10  
11 11 float: left;
12 12 display: block;
13   - height: 26px;
  13 + height: 24px;
14 14  
15 15 }
16 16  
... ...
public/stylesheets/common.css
... ... @@ -201,6 +201,9 @@ div.file-manager-button a:hover {
201 201 float: right;
202 202 color: white;
203 203 }
  204 +#article-subitems-show.show-button {
  205 + float: right;
  206 +}
204 207 #article-subitems-hide.hide-button:hover {
205 208 background-color: transparent;
206 209 color: black;
... ... @@ -220,4 +223,5 @@ div.file-manager-button a:hover {
220 223 border: 1px solid gray;
221 224 padding-top: 4px;
222 225 padding-bottom: 4px;
  226 + margin-bottom: 1em;
223 227 }
... ...