.block .secondary-navigation %ul.wat-cf %li.first= link_to t("layout.issues.list"), project_issues_path(@project) %li= link_to t("layout.issues.edit"), edit_project_issue_path(@project, @issue) if can? :edit, @issue .content .inner %p %b = t("activerecord.attributes.issue.title") \: = @issue.title %p %b = t("activerecord.attributes.issue.body") \: = @issue.body %p %b = t('activerecord.attributes.issue.status') \: = @issue.status %p %b = t('layout.issues.subscribe') \: - if @issue.subscribes.exists? :user_id => current_user.id = link_to t('layout.issues.unsubscribe_btn'), project_issue_subscribe_path(@project, @issue, current_user.id), :method => :delete - else = link_to t('layout.issues.subscribe_btn'), project_issue_subscribes_path(@project, @issue), :method => :post = render :partial => "comments/list", :locals => {:list => @issue.comments.order(:created_at), :project => @project, :commentable => @issue}