Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « snippets « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db2185745efb701fe35899b1da1bcb2d63cea85c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
= render "projects/project_head"

%h3.page_title
  Snippets
  %small share code pastes with others out of git repository

  - if can? current_user, :write_snippet, @project
    = link_to new_project_snippet_path(@project), class: "btn btn-small add_new right", title: "New Snippet" do
      Add new snippet
%br
%table
  %thead
    %tr
      %th Title
      %th File Name
      %th Expires At
  = render @snippets
  - if @snippets.empty?
    %tr
      %td{colspan: 3}
        %h3.nothing_here_message Nothing here.