2011-12-19 15:30:14 +00:00
|
|
|
.block
|
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
%li.first= link_to t("layout.issues.list"), project_issues_path(@project)
|
2011-12-28 02:57:42 +00:00
|
|
|
%li= link_to t("layout.issues.edit"), edit_project_issue_path(@project, @issue) if can? :edit, @issue
|
2011-12-19 15:30:14 +00:00
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.issue.title")
|
|
|
|
\:
|
|
|
|
= @issue.title
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.issue.body")
|
|
|
|
\:
|
|
|
|
= @issue.body
|
|
|
|
%p
|
|
|
|
%b
|
2011-12-20 10:20:00 +00:00
|
|
|
= t('activerecord.attributes.issue.status')
|
2011-12-19 15:30:14 +00:00
|
|
|
\:
|
|
|
|
= @issue.status
|
2011-12-26 15:48:57 +00:00
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t('layout.issues.subscribe')
|
|
|
|
\:
|
|
|
|
- if @issue.subscribes.exists? :user_id => current_user.id
|
2011-12-28 13:54:45 +00:00
|
|
|
= link_to t('layout.issues.unsubscribe_btn'), project_issue_subscribe_path(@project, @issue, current_user.id), :method => :delete
|
2011-12-26 15:48:57 +00:00
|
|
|
- else
|
2011-12-28 14:24:24 +00:00
|
|
|
= link_to t('layout.issues.subscribe_btn'), project_issue_subscribes_path(@project, @issue), :method => :post
|
2011-12-19 15:30:14 +00:00
|
|
|
|
2012-01-15 18:10:50 +00:00
|
|
|
= render :partial => "comments/list", :locals => {:list => @issue.comments, :project => @project, :commentable => @issue}
|