2012-02-29 01:30:22 +00:00
|
|
|
= render :partial => 'projects/submenu'
|
|
|
|
|
|
|
|
.description
|
|
|
|
%h3= t("layout.projects.about_subheader")
|
|
|
|
%p
|
|
|
|
= @project.description
|
|
|
|
= link_to t('layout.read_more'), '#'
|
|
|
|
|
|
|
|
%h3= t("layout.projects.last_commit")
|
|
|
|
- GitPresenters::CommitAsMessagePresenter.present(@commit, :branch => @branch, :project => @project) do |presenter|
|
|
|
|
= render :partial => 'shared/feed_message', :locals => {:presenter => presenter, :item_no => 1}
|
|
|
|
|
|
|
|
.both
|
|
|
|
|
|
|
|
#repo-wrapper
|
|
|
|
= render :partial => 'show'
|
2012-02-29 15:04:33 +00:00
|
|
|
|
|
|
|
= render :partial => "comments/list", :locals => {:list => Project.commit_comments(@commit, @project), :project => @project, :commentable => @commit}
|
|
|
|
= render :partial => "comments/add", :locals => {:project => @project, :commentable => @commit}
|
2012-02-29 01:30:22 +00: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
|
|
|
|
|
|
|
|
2012-02-29 01:30:22 +00:00
|
|
|
-#.block
|
2011-04-01 01:36:34 +01:00
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
= render :partial => "git/commits/commits", :object => [@commit]
|
2011-03-10 13:39:49 +00:00
|
|
|
|
2012-02-29 01:30:22 +00:00
|
|
|
-#- begin
|
2011-11-01 18:12:41 +00:00
|
|
|
.block
|
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
.patch_and_diff
|
2012-01-30 20:36:58 +00:00
|
|
|
= link_to "raw diff", commit_path(@project, @commit.id, :diff)
|
|
|
|
\|
|
|
|
|
= link_to "patch", commit_path(@project, @commit.id, :patch)
|
2011-11-01 18:12:41 +00:00
|
|
|
.clear
|
|
|
|
= render_commit_stats(@commit.stats)
|
2011-03-10 13:39:49 +00:00
|
|
|
|
2011-11-11 21:57:10 +00:00
|
|
|
= render :partial => "git/commits/commit_diff", :collection => @commit.diffs
|
2012-02-29 01:30:22 +00:00
|
|
|
-#- rescue Grit::Git::GitTimeout
|
2011-11-01 18:12:41 +00:00
|
|
|
.block
|
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
%p= t 'layout.git.repositories.commit_diff_too_big'
|
2011-04-01 01:36:34 +01:00
|
|
|
|
2012-02-29 01:30:22 +00:00
|
|
|
-#- content_for :sidebar, render(:partial => 'git/shared/sidebar')
|
2012-01-11 18:15:35 +00:00
|
|
|
|
2012-02-29 01:30:22 +00:00
|
|
|
-#= render :partial => "comments/list", :locals => {:list => Project.commit_comments(@commit, @project), :project => @project, :commentable => @commit}
|
|
|
|
-#%p
|
2012-01-23 19:42:54 +00:00
|
|
|
%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
|