rosa-build/app/views/git/blobs/show.html.haml

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-04-01 01:36:34 +01:00
.block
2011-04-04 17:00:24 +01:00
= render :partial => "git/shared/navigation"
2011-03-10 13:47:42 +00:00
2011-04-04 17:00:24 +01:00
= render :partial => "git/shared/info"
2011-03-10 13:47:42 +00:00
2011-04-04 14:49:08 +01:00
- if @commit
.block
.content
.inner
= render :partial => "git/commits/commits", :object => [@commit]
2011-04-01 01:36:34 +01:00
.block
.content
.inner
%h3= render_path
.blob_header
.size #{(@blob.size / 1024.0).round(3)} Kb
.buttons
2011-04-07 14:20:21 +01:00
- if @commit_hash
#{link_to "Raw", raw_commit_path(@project, @commit_hash, @path)} #{link_to "Blame", blame_commit_path(@project, @commit_hash, @path)} #{link_to "History", commits_path(@project, @treeish, @path)}
2011-04-07 14:20:21 +01:00
- else
#{link_to "Raw", raw_path(@project, @treeish, @path)} #{link_to "Blame", blame_path(@project, @treeish, @path)} #{link_to "History", commits_path(@project, @treeish, @path)}
2011-04-01 01:36:34 +01:00
.clear
%table.table.blob
%tr
2011-04-01 10:04:19 +01:00
%td.lines
2011-04-01 01:36:34 +01:00
:plain
<pre>#{render_line_numbers(@blob.data.split("\n").length)}</pre>
2011-04-01 10:04:19 +01:00
%td.blob
2011-04-01 01:36:34 +01:00
:plain
<pre>#{render_blob(@blob)}</pre>
- content_for :sidebar, render(:partial => 'git/shared/sidebar')