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,5 +11,6 @@
11 <%= f.text_area('body', :cols => 64) %> 11 <%= f.text_area('body', :cols => 64) %>
12 12
13 <%= design_display_button_submit('save', _('Save')) %> 13 <%= design_display_button_submit('save', _('Save')) %>
  14 + <%= design_display_button('cancel', _('Cancel'), :action => 'view', :id => @article) %>
14 15
15 <% end %> 16 <% end %>
app/views/cms/view.rhtml
@@ -48,6 +48,16 @@ @@ -48,6 +48,16 @@
48 <% if @article %> 48 <% if @article %>
49 <h2><%= @article.name %></h2> 49 <h2><%= @article.name %></h2>
50 <% button_bar(:id => 'article-controls') do %> 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 <%= link_to_edit_article(@article) %> 61 <%= link_to_edit_article(@article) %>
52 <%= button('home', _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post }) %> 62 <%= button('home', _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post }) %>
53 <% end %> 63 <% end %>
app/views/content_viewer/no_home_page.rhtml 0 → 100644
@@ -0,0 +1,5 @@ @@ -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,14 +3,14 @@
3 margin-left: 5px; 3 margin-left: 5px;
4 background-color: transparent; 4 background-color: transparent;
5 background-repeat: no-repeat; 5 background-repeat: no-repeat;
6 - background-position: 0px; 6 + background-position: 0 0;
7 7
8 padding-left: 25px; 8 padding-left: 25px;
9 padding-right: 2px; 9 padding-right: 2px;
10 10
11 float: left; 11 float: left;
12 display: block; 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,6 +201,9 @@ div.file-manager-button a:hover {
201 float: right; 201 float: right;
202 color: white; 202 color: white;
203 } 203 }
  204 +#article-subitems-show.show-button {
  205 + float: right;
  206 +}
204 #article-subitems-hide.hide-button:hover { 207 #article-subitems-hide.hide-button:hover {
205 background-color: transparent; 208 background-color: transparent;
206 color: black; 209 color: black;
@@ -220,4 +223,5 @@ div.file-manager-button a:hover { @@ -220,4 +223,5 @@ div.file-manager-button a:hover {
220 border: 1px solid gray; 223 border: 1px solid gray;
221 padding-top: 4px; 224 padding-top: 4px;
222 padding-bottom: 4px; 225 padding-bottom: 4px;
  226 + margin-bottom: 1em;
223 } 227 }