[refs #194] add comments to issues
This commit is contained in:
parent
20417241a8
commit
ecc2e1f181
|
@ -1,10 +1,10 @@
|
|||
.block
|
||||
.secondary-navigation
|
||||
%ul.wat-cf
|
||||
%li.first= link_to t(@comment.commentable_type == 'Grit::Commit' ? "layout.git.repositories.commits" : "layout.issues.list"), @commentable_path
|
||||
%li.first= link_to t("layout.comments.back"), @commentable_path
|
||||
.content
|
||||
%h2.title
|
||||
= t("layout.#{@comment.commentable_type == 'Grit::Commit' ? 'comments' : 'issues'}.edit_header")
|
||||
= t("layout.comments.edit_header")
|
||||
.inner
|
||||
= form_for @comment, :url => @update_url, :html => { :class => :form } do |f|
|
||||
= render :partial => "form", :locals => {:f => f}
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
.both
|
||||
=f.submit t('layout.update'), :id => 'update_issue_content'
|
||||
=link_to t('layout.issues.cancel_button'), '#', :id => 'cancel_edit_issue_content', :class => 'button'
|
||||
.hr
|
||||
|
||||
%br
|
||||
%br
|
||||
=render :partial => 'issues/status'
|
||||
|
||||
= render :partial => "comments/list", :locals => {:list => @issue.comments, :project => @project, :commentable => @issue}
|
||||
= render :partial => "comments/add", :locals => {:project => @project, :commentable => @issue}
|
|
@ -4,3 +4,4 @@ en:
|
|||
has_commented: "adds a note"
|
||||
notifications_are: "Notifications for new comments are"
|
||||
comments_header: "Comments"
|
||||
back: 'Back'
|
||||
|
|
|
@ -4,3 +4,4 @@ ru:
|
|||
has_commented: "оставил комментарий"
|
||||
notifications_are: "Уведомления о последующих комментариях"
|
||||
comments_header: "Комментарии"
|
||||
back: 'Назад'
|
||||
|
|
Loading…
Reference in New Issue