Merge wiki, wall & snippets under one tab - writeboards
This commit is contained in:
parent
753ecbdcec
commit
a685624d27
14 changed files with 128 additions and 99 deletions
|
@ -1,2 +1 @@
|
|||
= render "projects/project_head"
|
||||
= render "snippets/form"
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
= render "projects/project_head"
|
||||
.row
|
||||
.span3
|
||||
= render 'writeboards/nav'
|
||||
.span9
|
||||
%h3.page_title
|
||||
Snippets
|
||||
%small share code pastes with others out of git repository
|
||||
|
||||
%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 pull-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.
|
||||
- if can? current_user, :write_snippet, @project
|
||||
= link_to new_project_snippet_path(@project), class: "btn btn-small add_new pull-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.
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
= render "projects/project_head"
|
||||
= render "snippets/form"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
= render "projects/project_head"
|
||||
|
||||
%h3.page_title
|
||||
= @snippet.title
|
||||
%small= @snippet.file_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue