Use tree/blob_actions partial for blame view and fix file name encoding
This commit is contained in:
parent
f120e5a89a
commit
b80a019598
|
@ -1,6 +1,6 @@
|
||||||
= render "head"
|
= render "head"
|
||||||
|
|
||||||
#tree-holder
|
#tree-holder.tree-holder
|
||||||
%ul.breadcrumb
|
%ul.breadcrumb
|
||||||
%li
|
%li
|
||||||
%span.arrow
|
%span.arrow
|
||||||
|
@ -15,12 +15,9 @@
|
||||||
.file_title
|
.file_title
|
||||||
%i.icon-file
|
%i.icon-file
|
||||||
%span.file_name
|
%span.file_name
|
||||||
= @tree.name
|
= @tree.name.force_encoding('utf-8')
|
||||||
%small blame
|
%small= number_to_human_size @tree.size
|
||||||
%span.options
|
%span.options= render "tree/blob_actions"
|
||||||
= 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 "source", project_tree_path(@project, @id), class: "btn very_small"
|
|
||||||
.file_content.blame
|
.file_content.blame
|
||||||
%table
|
%table
|
||||||
- @blame.each do |commit, lines|
|
- @blame.each do |commit, lines|
|
||||||
|
|
Loading…
Reference in a new issue