diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-19 14:39:32 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-19 14:39:32 +0200 |
commit | b1bd3f1252eb529030f2295e4c2a991158894b64 (patch) | |
tree | 135e557c9505c740496a123b92fe5fe560c349ef /app/views/walls | |
parent | 124a5e270e581bf3928559bd2de2c9c973c30952 (diff) | |
download | gitlab-ce-b1bd3f1252eb529030f2295e4c2a991158894b64.tar.gz |
fix tests. added jquery.timeago.js
Diffstat (limited to 'app/views/walls')
-rw-r--r-- | app/views/walls/show.html.haml | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/app/views/walls/show.html.haml b/app/views/walls/show.html.haml index ed52e3d8e20..6065cc63caa 100644 --- a/app/views/walls/show.html.haml +++ b/app/views/walls/show.html.haml @@ -2,9 +2,30 @@ %ul.well-list.notes .notes-busy.js-notes-busy - .js-main-target-form - if can? current_user, :write_note, @project - = render "notes/form" + .note-form-holder + = form_for [@project, @note], remote: true, html: { multipart: true, id: nil, class: "new_note wall-note-form" } do |f| + = note_target_fields + .note_text_and_preview + = f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input turn-on' + .note-form-actions + .buttons + = f.submit 'Add Comment', class: "btn comment-btn grouped js-comment-button" + + .note-form-option + = label_tag :notify do + = check_box_tag :notify, 1, false + %span.light Notify team via email + + .note-form-option + %a.choose-btn.btn.btn-small.js-choose-note-attachment-button + %i.icon-paper-clip + %span Choose File ... + + %span.file_name.js-attachment-filename File name... + = f.file_field :attachment, class: "js-note-attachment-input hide" + + .clearfix :javascript $(function(){ |