gitlabhq/app/views/walls/show.html.haml

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-03-19 11:35:42 +01:00
%div.wall-page
%ul.well-list.notes
2013-03-19 12:28:29 +01:00
- if can? current_user, :write_note, @project
2013-03-19 13:39:32 +01:00
.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"
2013-03-20 08:53:39 +01:00
.hint.pull-right CTRL + Enter to send message
2013-03-19 13:39:32 +01:00
.clearfix
2013-03-19 11:35:42 +01:00
:javascript
$(function(){
Wall.init(#{@project.id});
});