[refs #194] add comments to issues

This commit is contained in:
Alexander Machehin 2012-03-02 00:56:24 +06:00
parent 20417241a8
commit ecc2e1f181
4 changed files with 9 additions and 4 deletions

View File

@ -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}

View File

@ -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}

View File

@ -4,3 +4,4 @@ en:
has_commented: "adds a note"
notifications_are: "Notifications for new comments are"
comments_header: "Comments"
back: 'Back'

View File

@ -4,3 +4,4 @@ ru:
has_commented: "оставил комментарий"
notifications_are: "Уведомления о последующих комментариях"
comments_header: "Комментарии"
back: 'Назад'