added NamespacedProject role. Extended project info displayed for admin. Fixed project limit
This commit is contained in:
parent
44209861e8
commit
b01f8b63c2
18 changed files with 201 additions and 131 deletions
|
@ -1,21 +1,21 @@
|
|||
= render "projects/project_head"
|
||||
|
||||
- if can? current_user, :write_snippet, @project
|
||||
.alert-message.block-message
|
||||
%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 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.
|
||||
|
||||
%br
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
%th Title
|
||||
%th File Name
|
||||
%th Expires At
|
||||
= render @snippets.fresh
|
||||
- if @snippets.fresh.empty?
|
||||
= render @snippets
|
||||
- if @snippets.empty?
|
||||
%tr
|
||||
%td{colspan: 3}
|
||||
%h3.nothing_here_message Nothing here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue