From 65445954c8bb357a4c7cc4566f4831b166da99c0 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Fri, 2 Jan 2015 17:27:44 +0100 Subject: [PATCH] moved button on different sizes to navbar or right side --- app/views/layouts/_header.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml index 557ae32c..fb3f1725 100644 --- a/app/views/layouts/_header.html.haml +++ b/app/views/layouts/_header.html.haml @@ -39,6 +39,8 @@ %li= link_to "Moderation panel", moderation_path %li.divider %li= link_to "Logout", destroy_user_session_path, method: :delete + .btn.btn-primary.navbar-btn.hidden-xs{"data-target" => "#modal-ask-followers", "data-toggle" => "modal", :type => "button"} + %i.fa.fa-pencil-square-o - else %ul.nav.navbar-nav.navbar-right = nav_entry "Sign in", new_user_session_path @@ -47,5 +49,5 @@ - if user_signed_in? = render 'shared/modal_ask_followers' - if user_signed_in? - %button.btn.btn-primary.btn-fab{"data-target" => "#modal-ask-followers", "data-toggle" => "modal", :type => "button"} + %button.btn.btn-primary.btn-fab.visible-xs{"data-target" => "#modal-ask-followers", "data-toggle" => "modal", :type => "button"} %i.fa.fa-pencil-square-o \ No newline at end of file