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-21 14:48:16 +00:00
|
|
|
%li= link_to t("layout.issues.edit"), edit_project_issue_path(@project, @issue.serial_id) 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-27 12:35:31 +00:00
|
|
|
= link_to t('layout.issues.unsubscribe_btn'), unsubscribe_issue_path(@issue), :method => :delete
|
2011-12-26 15:48:57 +00:00
|
|
|
- else
|
2011-12-27 12:35:31 +00:00
|
|
|
= link_to t('layout.issues.subscribe_btn'), subscribe_issue_path(@issue), :method => :post§
|
2011-12-19 15:30:14 +00:00
|
|
|
|
|
|
|
%a{ :name => "comments" }
|
|
|
|
.block
|
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
.content
|
|
|
|
%h2.title
|
|
|
|
= t("layout.issues.comments_header")
|
|
|
|
.inner
|
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%th.first= t("activerecord.attributes.user.uname")
|
|
|
|
%th.first= t("activerecord.attributes.comment.body")
|
|
|
|
%th.last
|
|
|
|
- @issue.comments.each do |comment|
|
|
|
|
%tr{:class => cycle("odd", "even")}
|
|
|
|
%td
|
|
|
|
= comment.user.uname
|
|
|
|
%td
|
|
|
|
= comment.body
|
|
|
|
%td.last
|
|
|
|
= 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}
|