34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
.block
|
|
= render :partial => "git/shared/navigation"
|
|
|
|
= render :partial => "git/shared/info"
|
|
|
|
- if @commit
|
|
.block
|
|
.content
|
|
.inner
|
|
= render :partial => "git/commits/commits", :object => [@commit]
|
|
|
|
.block
|
|
.content
|
|
.inner
|
|
%h3= render_path
|
|
|
|
.blob_header
|
|
.size #{(@blob.size / 1024.0).round(3)} Kb
|
|
.buttons
|
|
- if @commit_hash
|
|
#{link_to "Raw", raw_commit_path(@platform, @repository, @project, @commit_hash, @path)} #{link_to "Blame", blame_commit_path(@platform, @repository, @project, @commit_hash, @path)} #{link_to "History", commits_path(@platform, @repository, @project, @treeish, @path)}
|
|
- else
|
|
#{link_to "Raw", raw_path(@platform, @repository, @project, @treeish, @path)} #{link_to "Blame", blame_path(@platform, @repository, @project, @treeish, @path)} #{link_to "History", commits_path(@platform, @repository, @project, @treeish, @path)}
|
|
.clear
|
|
%table.table.blob
|
|
%tr
|
|
%td.lines
|
|
:plain
|
|
<pre>#{render_line_numbers(@blob.data.split("\n").length)}</pre>
|
|
%td.blob
|
|
:plain
|
|
<pre>#{render_blob(@blob)}</pre>
|
|
|
|
- content_for :sidebar, render(:partial => 'git/shared/sidebar') |