diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-12 12:08:52 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-12 12:08:52 +0300 |
commit | 083990c795c74a0dfc76813e44706289a7ede43d (patch) | |
tree | a547b31f0c33fe09deb4d5165c9717b4a10a969e /app/views/snippets | |
parent | 0175e665893ca8f8fd660ff55841e95c02fcb987 (diff) | |
download | gitlab-ce-083990c795c74a0dfc76813e44706289a7ede43d.tar.gz |
Minor UI improvements
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/_form.html.haml | 5 | ||||
-rw-r--r-- | app/views/snippets/current_user_index.html.haml | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/app/views/snippets/_form.html.haml b/app/views/snippets/_form.html.haml index fa0d5157a2e..e77550e7be3 100644 --- a/app/views/snippets/_form.html.haml +++ b/app/views/snippets/_form.html.haml @@ -14,7 +14,8 @@ .controls= f.text_field :title, placeholder: "Example Snippet", class: 'input-xlarge', required: true .control-group = f.label "Private?" - .controls= f.check_box :private, {class: ''} + .controls + = f.check_box :private, {class: ''} .control-group .file-editor = f.label :file_name, "File" @@ -32,7 +33,7 @@ - else = f.submit 'Save', class: "btn-save btn" - = link_to "Cancel", snippets_path(@project), class: " btn" + = link_to "Cancel", snippets_path(@project), class: "btn btn-cancel" - unless @snippet.new_record? .pull-right= link_to 'Destroy', snippet_path(@snippet), confirm: 'Removed snippet cannot be restored! Are you sure?', method: :delete, class: "btn pull-right danger delete-snippet", id: "destroy_snippet_#{@snippet.id}" diff --git a/app/views/snippets/current_user_index.html.haml b/app/views/snippets/current_user_index.html.haml index a2a9aef04eb..51030f965a1 100644 --- a/app/views/snippets/current_user_index.html.haml +++ b/app/views/snippets/current_user_index.html.haml @@ -14,11 +14,20 @@ .span3 %ul.nav.nav-pills.nav-stacked = nav_tab :scope, nil do - = link_to "All", user_snippets_path(@user) + = link_to user_snippets_path(@user) do + All + %span.pull-right + = @user.snippets.count = nav_tab :scope, 'private' do - = link_to "Private", user_snippets_path(@user, scope: 'private') + = link_to user_snippets_path(@user, scope: 'private') do + Private + %span.pull-right + = @user.snippets.private.count = nav_tab :scope, 'public' do - = link_to "Public", user_snippets_path(@user, scope: 'public') + = link_to user_snippets_path(@user, scope: 'public') do + Public + %span.pull-right + = @user.snippets.public.count .span9.my-snippets = render 'snippets' |