[PATCH/foreman 1/2] disabled links are now disabled buttons as they should

Signed-off-by: Amos Benari <abenari@redhat.com>

··· --- app/helpers/application_helper.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index fd84968…4cadd8d 100644
— a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -88,7 +88,7 @@ module ApplicationHelper
if enable_link
link_to name, options, html_options
else

  •  link_to_function name, 'void()', html_options.merge!(:class => 'disabled', :disabled => true)
    
  •  link_to_function name, 'void()', html_options.merge!(:class => "#{html_options[:class]} disabled", :disabled => true)
    
    end
    end


1.7.4.2

Signed-off-by: Amos Benari <abenari@redhat.com>

··· --- app/views/home/_settings.html.erb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/views/home/_settings.html.erb b/app/views/home/_settings.html.erb
index 201d835…df3053c 100644
— a/app/views/home/_settings.html.erb
+++ b/app/views/home/_settings.html.erb
@@ -2,7 +2,7 @@
<%= link_to “More”, “#”, :class => “dropdown-toggle” %>

    <% setting_options.each do |c|-%> -
  • <%= display_link_if_authorized c[0], :controller => c[1] %>
  • +
  • <%= display_link_if_authorized c[0], {:controller => c[1], :action => :index} %>
  • <% end -%>
-- 1.7.4.2