Minor improve to UI and code formatting of gitlab web editor
This commit is contained in:
parent
47d9732a07
commit
809aefb828
8 changed files with 37 additions and 19 deletions
|
@ -5,10 +5,11 @@
|
|||
= tree_file.name.force_encoding('utf-8')
|
||||
%small #{tree_file.mode}
|
||||
%span.options
|
||||
= link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
|
||||
= link_to "history", project_commits_path(@project, @id), class: "btn very_small"
|
||||
= link_to "blame", project_blame_path(@project, @id), class: "btn very_small"
|
||||
= link_to "Edit", edit_project_tree_path(@project, @id), class: "btn very_small"
|
||||
.btn-group.tree-btn-group
|
||||
= link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
|
||||
= link_to "history", project_commits_path(@project, @id), class: "btn very_small"
|
||||
= link_to "blame", project_blame_path(@project, @id), class: "btn very_small"
|
||||
= link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small"
|
||||
- if tree_file.text?
|
||||
- if gitlab_markdown?(tree_file.name)
|
||||
.file_content.wiki
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
.file_holder
|
||||
.file_title
|
||||
%i.icon-file
|
||||
= @tree.path.force_encoding('utf-8')
|
||||
%span.file_name
|
||||
= @tree.path.force_encoding('utf-8')
|
||||
%span.options
|
||||
= link_to "cancel editing", project_tree_path(@project, @id), class: "btn very_small"
|
||||
.file_content.code
|
||||
#editor= @tree.data
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue