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 13:54:45 +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
|
|
|
|
|
|
|
%a{ :name => "comments" }
|
2011-12-27 13:52:48 +00:00
|
|
|
.block#block-lists
|
2011-12-19 15:30:14 +00:00
|
|
|
.content
|
|
|
|
%h2.title
|
|
|
|
= t("layout.issues.comments_header")
|
|
|
|
.inner
|
2011-12-27 13:52:48 +00:00
|
|
|
%ul.list
|
2011-12-19 15:30:14 +00:00
|
|
|
- @issue.comments.each do |comment|
|
2011-12-27 13:52:48 +00:00
|
|
|
%li
|
|
|
|
.left
|
|
|
|
= link_to comment.user.uname, user_path(comment.user.uname)
|
|
|
|
.item
|
2011-12-19 15:30:14 +00:00
|
|
|
= comment.body
|
2011-12-27 13:52:48 +00:00
|
|
|
%br
|
|
|
|
%br
|
2011-12-19 15:30:14 +00:00
|
|
|
= link_to t("layout.edit"), edit_project_issue_comment_path(@project, @issue, comment) if can? :update, comment
|
2011-12-20 10:20:00 +00:00
|
|
|
= link_to image_tag("web-app-theme/icons/cross.png", :alt => t("layout.delete")) + " " + t("layout.delete"), project_issue_comment_path(@project, @issue, comment), :method => "delete", :class => "button", :confirm => t("layout.comments.confirm_delete") if can? :delete, comment
|
2011-12-19 15:30:14 +00:00
|
|
|
|
|
|
|
.block
|
|
|
|
.content
|
|
|
|
%h2.title
|
|
|
|
= t("layout.comments.new_header")
|
|
|
|
.inner
|
2011-12-20 10:20:00 +00:00
|
|
|
= form_for :comment, :url => project_issue_comments_path(@project, @issue), :method => :post, :html => { :class => :form } do |f|
|
2011-12-19 15:30:14 +00:00
|
|
|
= render :partial => "comments/form", :locals => {:f => f}
|