BigW Consortium Gitlab

index.html.haml 444 Bytes
Newer Older
1
%h3.page-title
2
  Snippets
3
  - if can? current_user, :write_project_snippet, @project
4
    = link_to new_project_snippet_path(@project), class: "btn btn-new pull-right", title: "New Snippet" do
5
      Add new snippet
6 7 8 9

%p.light
  Share code pastes with others out of git repository

Dmitriy Zaporozhets committed
10 11
%hr
%ul.bordered-list
12
  = render partial: "projects/snippets/snippet", collection: @snippets
13
  - if @snippets.empty?
Dmitriy Zaporozhets committed
14
    %li
Dmitriy Zaporozhets committed
15
      .nothing-here-block Nothing here.