summaryrefslogtreecommitdiff
path: root/app/views/snippets/index.html.haml
blob: 7229b587bc823ae80c2d6145fbc3516937fd26f8 (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"

- if can? current_user, :write_snippet, @project
  .alert-message.block-message
    = link_to new_project_snippet_path(@project), class: "btn small add_new right", title: "New Snippet" do
      Add new snippet
    Share code pastes with others if it can't be in a git repository
    %br
    To add new snippet - click on button.

%table.admin-table
  %thead
    %tr
      %th Title
      %th File Name
      %th Expires At
  = render @snippets.fresh
  - if @snippets.fresh.empty?
    %tr
      %td{colspan: 3}
        %h3.nothing_here_message Nothing here.