Commit 19e1c26fbef7e7865a84db19ac4dc568cb68af71
1 parent
664d154e
Exists in
master
and in
29 other branches
ActionItem360: Zen3 article edit button is visible now
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1773 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
31 additions
and
2 deletions
Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -25,11 +25,11 @@ | @@ -25,11 +25,11 @@ | ||
25 | <script type="text/javascript"> | 25 | <script type="text/javascript"> |
26 | function showArticleActions( show ) { | 26 | function showArticleActions( show ) { |
27 | var act = $("article-actions"); | 27 | var act = $("article-actions"); |
28 | - if ( act ) act.style.display = ( show ? "block" : "none" ); | 28 | + if ( act ) act.className = ( show ? "show" : "hidden" ); |
29 | } | 29 | } |
30 | </script> | 30 | </script> |
31 | <% if logged_in? && current_user.person.has_permission?('post_content', profile) %> | 31 | <% if logged_in? && current_user.person.has_permission?('post_content', profile) %> |
32 | - <div id="article-actions" style="display:none"> | 32 | + <div id="article-actions" class="hidden"> |
33 | <%= link_to content_tag( 'span', _('Edit') ), | 33 | <%= link_to content_tag( 'span', _('Edit') ), |
34 | { :controller => 'cms', :action => 'edit', :id => @page }, | 34 | { :controller => 'cms', :action => 'edit', :id => @page }, |
35 | :class => 'button with-text icon-edit' %> | 35 | :class => 'button with-text icon-edit' %> |
@@ -0,0 +1,25 @@ | @@ -0,0 +1,25 @@ | ||
1 | + | ||
2 | +body.noosfero a.button, | ||
3 | +body.noosfero a.button:visited, | ||
4 | +input.button { | ||
5 | + border: 1px solid #EDA; | ||
6 | + color: black; | ||
7 | + /* -moz-border-radius-topright: 7px; */ | ||
8 | +} | ||
9 | + | ||
10 | +body.noosfero a.button.with-text, | ||
11 | +body.noosfero a.button.with-text:visited, | ||
12 | +input.button.with-text { | ||
13 | + border: 1px solid #DA6; | ||
14 | + background-color: #FEA; | ||
15 | +} | ||
16 | + | ||
17 | +body.noosfero a.button:hover, | ||
18 | +input.button:hover, | ||
19 | +body.noosfero a.button.with-text:hover, | ||
20 | +input.button.with-text:hover { | ||
21 | + border: 1px solid #950; | ||
22 | + background-color: #FB4; | ||
23 | + color: #000; | ||
24 | +} | ||
25 | + |
public/stylesheets/blocks/main-block.css