2012-05-17 18:11:45 +02:00
|
|
|
= render "head"
|
|
|
|
|
|
|
|
#tree-holder
|
|
|
|
%ul.breadcrumb
|
|
|
|
%li
|
|
|
|
%span.arrow
|
|
|
|
= link_to tree_project_ref_path(@project, @ref, :path => nil) do
|
|
|
|
= @project.name
|
|
|
|
- @tree.breadcrumbs(6) do |link|
|
|
|
|
\/
|
|
|
|
%li= link
|
|
|
|
.clear
|
|
|
|
|
2012-07-10 19:15:33 +02:00
|
|
|
.file_holder
|
|
|
|
.file_title
|
2012-05-17 18:11:45 +02:00
|
|
|
%i.icon-file
|
|
|
|
%span.file_name
|
|
|
|
= @tree.name
|
|
|
|
%small blame
|
|
|
|
%span.options
|
|
|
|
= link_to "raw", blob_project_ref_path(@project, @ref, :path => params[:path]), :class => "btn very_small", :target => "_blank"
|
|
|
|
= link_to "history", project_commits_path(@project, :path => params[:path], :ref => @ref), :class => "btn very_small"
|
|
|
|
= link_to "source", tree_file_project_ref_path(@project, @ref, :path => params[:path]), :class => "btn very_small"
|
2012-07-10 19:15:33 +02:00
|
|
|
.file_content.blame
|
2012-05-17 18:11:45 +02:00
|
|
|
%table
|
|
|
|
- @blame.each do |commit, lines|
|
|
|
|
- commit = Commit.new(commit)
|
|
|
|
%tr
|
|
|
|
%td.author
|
|
|
|
= image_tag gravatar_icon(commit.author_email, 16)
|
|
|
|
= commit.author_name
|
2012-07-10 19:15:33 +02:00
|
|
|
%td.blame_commit
|
2012-05-17 18:11:45 +02:00
|
|
|
|
|
|
|
= link_to project_commit_path(@project, :id => commit.id) do
|
|
|
|
%code= commit.id.to_s[0..10]
|
|
|
|
%span.row_title= truncate(commit.safe_message, :length => 30) rescue "--broken encoding"
|
|
|
|
%td.lines
|
|
|
|
= preserve do
|
|
|
|
%pre
|
2012-07-10 09:57:43 +02:00
|
|
|
= Gitlab::Encode.utf8 lines.join("\n")
|
2012-05-17 18:11:45 +02:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
$(function(){
|
|
|
|
$('.project-refs-select').chosen();
|
|
|
|
});
|