summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/app/helpers/core_helper.rb4
-rw-r--r--core/app/views/common/_home_page_buttons.html.haml21
-rw-r--r--users/app/views/users/show.html.haml3
3 files changed, 16 insertions, 12 deletions
diff --git a/core/app/helpers/core_helper.rb b/core/app/helpers/core_helper.rb
index 4126906..a6c7479 100644
--- a/core/app/helpers/core_helper.rb
+++ b/core/app/helpers/core_helper.rb
@@ -6,8 +6,8 @@ module CoreHelper
#
# insert common buttons (download, login, etc)
#
- def home_page_buttons
- render 'common/home_page_buttons'
+ def home_page_buttons(on_user_page = false)
+ render 'common/home_page_buttons', {:on_user_page => on_user_page}
end
end
diff --git a/core/app/views/common/_home_page_buttons.html.haml b/core/app/views/common/_home_page_buttons.html.haml
index 3be12e2..8aff51e 100644
--- a/core/app/views/common/_home_page_buttons.html.haml
+++ b/core/app/views/common/_home_page_buttons.html.haml
@@ -10,13 +10,14 @@
.row-fluid
.span12
= render local_assigns[:divider]
- .row-fluid.second
- .login.span4
- %span.link= link_to(icon('ok-sign', icon_color) + t(:login), login_path, :class => 'btn')
- %span.info= t(:login_info)
- .signup.span4
- %span.link= link_to(icon('user', icon_color) + t(:signup), new_user_path, :class => 'btn')
- %span.info= t(:signup_info)
- .help.span4
- %span.link= link_to(icon('question-sign', icon_color) + t(:get_help), "/tickets/new", :class => 'btn')
- %span.info= t(:help_info)
+ - if !local_assigns[:on_user_page]
+ .row-fluid.second
+ .login.span4
+ %span.link= link_to(icon('ok-sign', icon_color) + t(:login), login_path, :class => 'btn')
+ %span.info= t(:login_info)
+ .signup.span4
+ %span.link= link_to(icon('user', icon_color) + t(:signup), new_user_path, :class => 'btn')
+ %span.info= t(:signup_info)
+ .help.span4
+ %span.link= link_to(icon('question-sign', icon_color) + t(:get_help), "/tickets/new", :class => 'btn')
+ %span.info= t(:help_info)
diff --git a/users/app/views/users/show.html.haml b/users/app/views/users/show.html.haml
index 7bea370..eace240 100644
--- a/users/app/views/users/show.html.haml
+++ b/users/app/views/users/show.html.haml
@@ -20,3 +20,6 @@
- # %li= icon('envelope') + link_to(t(:overview_email), {insert path for user identities, presuambly}
%li= icon('question-sign') + link_to(t(:overview_tickets), user_tickets_path(@user))
%li= icon('shopping-cart') + link_to(t(:overview_billing), billing_top_link(@user)) if APP_CONFIG[:payment].present?
+ .container-fluid
+ .row-fluid
+ = home_page_buttons(true) \ No newline at end of file