refactor buttons pt2
This commit is contained in:
parent
033aa1a885
commit
fb617c61b9
49 changed files with 90 additions and 90 deletions
|
@ -1,12 +1,12 @@
|
|||
.btn-group.tree-btn-group
|
||||
-# only show edit link for text files
|
||||
- if @tree.text?
|
||||
= link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small", disabled: !allowed_tree_edit?
|
||||
= link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
|
||||
= link_to "edit", edit_project_tree_path(@project, @id), class: "btn btn-tiny", disabled: !allowed_tree_edit?
|
||||
= link_to "raw", project_blob_path(@project, @id), class: "btn btn-tiny", target: "_blank"
|
||||
-# only show normal/blame view links for text files
|
||||
- if @tree.text?
|
||||
- if current_page? project_blame_path(@project, @id)
|
||||
= link_to "normal view", project_tree_path(@project, @id), class: "btn very_small"
|
||||
= link_to "normal view", project_tree_path(@project, @id), class: "btn btn-tiny"
|
||||
- else
|
||||
= link_to "blame", project_blame_path(@project, @id), class: "btn very_small"
|
||||
= link_to "history", project_commits_path(@project, @id), class: "btn very_small"
|
||||
= link_to "blame", project_blame_path(@project, @id), class: "btn btn-tiny"
|
||||
= link_to "history", project_commits_path(@project, @id), class: "btn btn-tiny"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
%th Name
|
||||
%th Last Update
|
||||
%th Last Commit
|
||||
%th= link_to "history", project_commits_path(@project, @id), class: "btn very_small right"
|
||||
%th= link_to "history", project_commits_path(@project, @id), class: "btn btn-tiny right"
|
||||
|
||||
- if tree.up_dir?
|
||||
%tr.tree-item
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
%strong= @ref
|
||||
%span.options
|
||||
.btn-group.tree-btn-group
|
||||
= link_to "Cancel", project_tree_path(@project, @id), class: "btn very_small btn-cancel", confirm: "Are you sure?"
|
||||
= link_to "Cancel", project_tree_path(@project, @id), class: "btn btn-tiny btn-cancel", confirm: "Are you sure?"
|
||||
.file_content.code
|
||||
%pre#editor= @tree.data
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue