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

41 lines
1.2 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"
= render :partial => "git/shared/info"
2011-03-10 13:39:49 +00:00
2011-04-01 01:36:34 +01:00
.block
.content
.inner
= render :partial => "git/commits/commits", :object => [@commit]
2011-03-10 13:39:49 +00:00
- begin
.block
.content
.inner
.patch_and_diff
= link_to "raw diff", commit_path(@project, @commit.id, :diff)
\|
= link_to "patch", commit_path(@project, @commit.id, :patch)
.clear
= render_commit_stats(@commit.stats)
2011-03-10 13:39:49 +00:00
= render :partial => "git/commits/commit_diff", :collection => @commit.diffs
- rescue Grit::Git::GitTimeout
.block
.content
.inner
%p= t 'layout.git.repositories.commit_diff_too_big'
2011-04-01 01:36:34 +01:00
- content_for :sidebar, render(:partial => 'git/shared/sidebar')
2012-01-11 18:15:35 +00:00
2012-01-17 11:17:27 +00:00
= render :partial => "comments/list", :locals => {:list => Project.commit_comments(@commit, @project), :project => @project, :commentable => @commit}
2012-01-23 19:42:54 +00:00
%p
%b
= t('layout.issues.subscribe')
\:
2012-01-29 20:18:14 +00:00
- if Subscribe.subscribed_to_commit?(@project, current_user, @commit)
2012-01-24 19:00:51 +00:00
= link_to t('layout.commits.unsubscribe_btn'), unsubscribe_commit_path(@project, @commit), :method => :delete
2012-01-23 19:42:54 +00:00
- else
2012-01-24 19:00:51 +00:00
= link_to t('layout.commits.subscribe_btn'), subscribe_commit_path(@project, @commit), :method => :post