refactor buttons pt2
This commit is contained in:
parent
033aa1a885
commit
fb617c61b9
49 changed files with 90 additions and 90 deletions
|
@ -3,7 +3,7 @@
|
|||
%i.icon-file
|
||||
%strong= @snippet.file_name
|
||||
%span.options
|
||||
= link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn very_small", target: "_blank"
|
||||
= link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn btn-tiny", target: "_blank"
|
||||
.file_content.code
|
||||
- unless @snippet.content.empty?
|
||||
%div{class: user_color_scheme_class}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%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
|
||||
= link_to new_project_snippet_path(@project), class: "btn btn-small add_new right", title: "New Snippet" do
|
||||
Add new snippet
|
||||
%br
|
||||
%table
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= @snippet.title
|
||||
%small= @snippet.file_name
|
||||
- if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user
|
||||
= link_to "Edit", edit_project_snippet_path(@project, @snippet), class: "btn small right"
|
||||
= link_to "Edit", edit_project_snippet_path(@project, @snippet), class: "btn btn-small right"
|
||||
|
||||
%br
|
||||
%div= render 'blob'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue