diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/common/_action_buttons.html.haml | 14 | ||||
-rw-r--r-- | app/views/common/_download_button.html.haml | 8 | ||||
-rw-r--r-- | app/views/common/_home_page_buttons.html.haml | 19 |
3 files changed, 13 insertions, 28 deletions
diff --git a/app/views/common/_action_buttons.html.haml b/app/views/common/_action_buttons.html.haml deleted file mode 100644 index eb663c0..0000000 --- a/app/views/common/_action_buttons.html.haml +++ /dev/null @@ -1,14 +0,0 @@ -.home-buttons - .row.second - .login.col-md-4 - %span.link= btn icon('ok-sign') + t(:login), login_path - %span.info= t(:login_info, default: "") - - if APP_CONFIG[:allow_registration] - .signup.col-md-4 - %span.link= btn icon('user') + t(:signup), signup_path - %span.info= t(:signup_info, default: "") - - else - .signup.col-md-4 - .help.col-md-4 - %span.link= btn icon('question-sign') + t(:get_help), new_ticket_path - %span.info= t(:support_info, default: "") diff --git a/app/views/common/_download_button.html.haml b/app/views/common/_download_button.html.haml deleted file mode 100644 index 1278230..0000000 --- a/app/views/common/_download_button.html.haml +++ /dev/null @@ -1,8 +0,0 @@ -.home-buttons - .row.first - .col-md-2 - .download.col-md-8 - = btn client_download_url, type: [:large, :primary] do - = big_icon('download') - = t(:download_bitmask) - .col-md-2 diff --git a/app/views/common/_home_page_buttons.html.haml b/app/views/common/_home_page_buttons.html.haml index cfe3734..33cf796 100644 --- a/app/views/common/_home_page_buttons.html.haml +++ b/app/views/common/_home_page_buttons.html.haml @@ -1,6 +1,13 @@ -= render 'common/download_button' -- if local_assigns[:divider] - .row - .col-md-12 - = render local_assigns[:divider] -= render 'common/action_buttons' +.home-buttons + .row.first + .login.col-md-4 + %span.link= btn icon('ok-sign') + t(:login), login_path + %span.info= t(:login_info, default: "") + .download.col-md-4 + = btn client_download_url, type: [:large, :primary] do + = big_icon('download') + = t(:download_bitmask) + %span.info= t(:signup_info, default: "") + .help.col-md-4 + %span.link= btn icon('question-sign') + t(:get_help), new_ticket_path + %span.info= t(:support_info, default: "") |