diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2016-09-16 10:37:19 +0100 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2016-09-18 16:33:33 +0100 |
commit | 9abd871a03ead34945f7dff050f92d7ab9225472 (patch) | |
tree | ce28941de8cb717b0b1b25f203add91f35c6752c /app/views/dashboard | |
parent | d54f05dac63d580d4451a954dd5593a065a05a3c (diff) | |
download | gitlab-ce-9abd871a03ead34945f7dff050f92d7ab9225472.tar.gz |
Added full-width new snippet button on mobile and corrected capitalizationfull-width-new-snippet-button
Altered specs that click capitalised New Snippet button
Applied review feedback missed in Changes `.no-comment` `opactiy: 0.5` to `opacity: .5`
Added `.btn-wide-on-xs` and applied to snippet buttons
Diffstat (limited to 'app/views/dashboard')
-rw-r--r-- | app/views/dashboard/snippets/index.html.haml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/views/dashboard/snippets/index.html.haml b/app/views/dashboard/snippets/index.html.haml index d4e7862981c..b2af438ea57 100644 --- a/app/views/dashboard/snippets/index.html.haml +++ b/app/views/dashboard/snippets/index.html.haml @@ -4,10 +4,10 @@ = render 'dashboard/snippets_head' .nav-block - .controls - = link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do + .controls.hidden-xs + = link_to new_snippet_path, class: "btn btn-new", title: "New snippet" do = icon('plus') - New Snippet + New snippet .nav-links.snippet-scope-menu %li{ class: ("active" unless params[:scope]) } @@ -34,5 +34,9 @@ %span.badge = current_user.snippets.are_public.count -= render 'snippets/snippets' + .visible-xs + = link_to new_snippet_path, class: "btn btn-new btn-block", title: "New snippet" do + = icon('plus') + New snippet += render 'snippets/snippets' |