debian-mirror-gitlab/app/views/projects/snippets/index.html.haml

18 lines
518 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Snippets"
2015-09-25 12:07:36 +05:30
= render "header_title"
2014-09-02 18:07:02 +05:30
%h3.page-title
Snippets
2015-09-11 14:41:01 +05:30
- if can? current_user, :create_project_snippet, @project
2015-04-26 12:48:37 +05:30
= link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new pull-right", title: "New Snippet" do
2014-09-02 18:07:02 +05:30
Add new snippet
%p.light
Share code pastes with others out of git repository
%ul.bordered-list
2015-09-25 12:07:36 +05:30
= render partial: "shared/snippets/snippet", collection: @snippets
2014-09-02 18:07:02 +05:30
- if @snippets.empty?
%li
.nothing-here-block Nothing here.