diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2341670..b8e7db6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -202,7 +202,7 @@ module ApplicationHelper if html_options.has_key?(:class) the_class << ' ' << html_options[:class] end - link_to(content_tag('span', label), url, html_options.merge(:class => the_class, :title => label)) + link_to(' '+content_tag('span', label), url, html_options.merge(:class => the_class, :title => label)) end def button_to_function(type, label, js_code, html_options = {}, &block) diff --git a/app/views/cms/view.rhtml b/app/views/cms/view.rhtml index 9ce4817..80e9cd9 100644 --- a/app/views/cms/view.rhtml +++ b/app/views/cms/view.rhtml @@ -55,7 +55,7 @@ <%= folder.class.short_description %> - + <%= button_without_text :edit, _('Properties'), :action => 'edit', :id => folder.id %> <%= button_without_text :eyes, _('Public view'), folder.url %> <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %> @@ -74,7 +74,7 @@ <%= item.class.short_description %> - + <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => item.id %> <%= button_without_text :eyes, _('Public view'), item.url %> <% if profile.person? %> diff --git a/public/stylesheets/controller_cms.css b/public/stylesheets/controller_cms.css index 1b436ab..c6b7c1e 100644 --- a/public/stylesheets/controller_cms.css +++ b/public/stylesheets/controller_cms.css @@ -28,17 +28,8 @@ border: 1px solid #d3d7cf; } -#article-controls { - background: white; - border: 1px solid gray; - padding-top: 0px; - padding-bottom: 4px; - margin-bottom: 1em; -} - -#article-controls .button { - position: relative; - top: -5px; +.article-controls { + white-space: nowrap; } .categorie_box .button { -- libgit2 0.21.2