2012-03-21 19:55:14 +00:00
|
|
|
.l
|
|
|
|
= @blob.mode
|
|
|
|
\|
|
2012-07-17 09:02:56 +01:00
|
|
|
- if @blob.render_as == :text
|
|
|
|
#{@blob.loc} lines (#{@blob.sloc} sloc)
|
2012-03-21 19:55:14 +00:00
|
|
|
\|
|
|
|
|
= number_to_human_size @blob.size
|
|
|
|
.r
|
2012-07-26 22:15:57 +01:00
|
|
|
- if @blob.render_as == :text && can?(:write, @project) && @branch.present?
|
2012-03-21 19:55:14 +00:00
|
|
|
= link_to "Edit", edit_blob_path(@project, @treeish, @path)
|
|
|
|
\|
|
2012-07-26 22:15:57 +01:00
|
|
|
- if @blob.render_as == :text && params[:action] != 'show'
|
2012-03-21 19:55:14 +00:00
|
|
|
= link_to "Normal", blob_path(@project, @treeish, @path)
|
|
|
|
\|
|
2012-07-31 20:24:27 +01:00
|
|
|
- unless @blob.huge?
|
|
|
|
= link_to "Raw", raw_path(@project, @treeish, @path)
|
|
|
|
\|
|
2012-07-26 22:15:57 +01:00
|
|
|
- if @blob.render_as == :text && params[:action] != 'blame'
|
2012-03-21 19:55:14 +00:00
|
|
|
= link_to "Blame", blame_path(@project, @treeish, @path)
|
|
|
|
\|
|
|
|
|
= link_to "History", commits_path(@project, @treeish, @path)
|
|
|
|
.both
|