summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-27 10:14:40 +0200
committerAzul <azul@leap.se>2014-05-27 10:14:40 +0200
commit863863ff1fb6c9ab13b44248417ae1c5e57987af (patch)
tree89326242662680109014fa029d37ca5a34b4107d
parentbbeb4b629dc38d82b3b3200706dd25b8def8892e (diff)
remove icon_color variable - yagni
-rw-r--r--app/views/common/_action_buttons.html.haml6
-rw-r--r--app/views/common/_home_page_buttons.html.haml4
2 files changed, 4 insertions, 6 deletions
diff --git a/app/views/common/_action_buttons.html.haml b/app/views/common/_action_buttons.html.haml
index d00cf74..398d384 100644
--- a/app/views/common/_action_buttons.html.haml
+++ b/app/views/common/_action_buttons.html.haml
@@ -1,11 +1,11 @@
.home-buttons
.row-fluid.second
.login.span4
- %span.link= link_to(icon('ok-sign', icon_color) + t(:login), login_path, :class => 'btn')
+ %span.link= link_to icon('ok-sign') + t(:login), login_path, :class => 'btn'
%span.info= t(:login_info, default: "")
.signup.span4
- %span.link= link_to(icon('user', icon_color) + t(:signup), signup_path, :class => 'btn')
+ %span.link= link_to icon('user') + t(:signup), signup_path, :class => 'btn'
%span.info= t(:signup_info, default: "")
.help.span4
- %span.link= link_to(icon('question-sign', icon_color) + t(:support_tickets), new_ticket_path, :class => 'btn')
+ %span.link= link_to icon('question-sign') + t(:get_help), new_ticket_path, :class => 'btn'
%span.info= t(:support_info, default: "")
diff --git a/app/views/common/_home_page_buttons.html.haml b/app/views/common/_home_page_buttons.html.haml
index 8c47983..fc6348e 100644
--- a/app/views/common/_home_page_buttons.html.haml
+++ b/app/views/common/_home_page_buttons.html.haml
@@ -1,8 +1,6 @@
-- icon_color = :black
-
= render 'common/download_button'
- if local_assigns[:divider]
.row-fluid
.span12
= render local_assigns[:divider]
-= render 'common/action_buttons', icon_color: icon_color
+= render 'common/action_buttons'