Commit 36bdd894b530601155a72acb39ffb4dc51106b9f
1 parent
09931377
Exists in
master
and in
29 other branches
Removed "Add translation" from not translatable pages
(ActionItem2345)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/content_viewer/_article_toolbar.rhtml
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | profile.admin_url.merge(:controller => 'cms', :action => 'new', |
33 | 33 | :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)), |
34 | 34 | :type => @page.type, :article => { :translation_of_id => @page.native_translation.id }), |
35 | - :class => @page.translatable? && !@page.native_translation.language.blank? && 'button with-text icon-locale' %> | |
35 | + :class => 'button with-text icon-locale' if @page.translatable? && !@page.native_translation.language.blank? %> | |
36 | 36 | <%= lightbox_remote_button(:new, label_for_new_article(@page), profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)))) %> |
37 | 37 | <% end %> |
38 | 38 | ... | ... |