summaryrefslogtreecommitdiff
path: root/app/views/projects/snippets
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-18 13:03:26 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-18 13:03:26 +0200
commit946f00ed7f2b487273bb5dabdb5997da60f1dc92 (patch)
tree98eddf82c383d4c897a366e2900874d4246a12de /app/views/projects/snippets
parentb371b6d13974fe8db3601e68922db0b735049a17 (diff)
downloadgitlab-ce-946f00ed7f2b487273bb5dabdb5997da60f1dc92.tar.gz
Update style of snippets pages
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r--app/views/projects/snippets/index.html.haml20
1 files changed, 8 insertions, 12 deletions
diff --git a/app/views/projects/snippets/index.html.haml b/app/views/projects/snippets/index.html.haml
index 3fed2c9949d..4af963e14da 100644
--- a/app/views/projects/snippets/index.html.haml
+++ b/app/views/projects/snippets/index.html.haml
@@ -1,17 +1,13 @@
- page_title "Snippets"
= render "header_title"
-%h3.page-title
- Snippets
- - if can? current_user, :create_project_snippet, @project
- = link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new pull-right", title: "New Snippet" do
- Add new snippet
+.gray-content-block.top-block
+ .pull-right
+ = link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new", title: "New Snippet" do
+ = icon('plus')
+ New Snippet
-%p.light
- Share code pastes with others out of git repository
+ .oneline
+ Share code pastes with others out of git repository
-%ul.bordered-list
- = render partial: "shared/snippets/snippet", collection: @snippets
- - if @snippets.empty?
- %li
- .nothing-here-block Nothing here.
+= render 'snippets/snippets'