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 | |
parent | 124a5e270e581bf3928559bd2de2c9c973c30952 (diff) | |
download | gitlab-ce-b1bd3f1252eb529030f2295e4c2a991158894b64.tar.gz |
fix tests. added jquery.timeago.js
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/events/event/_note.html.haml | 2 | ||||
-rw-r--r-- | app/views/notify/note_wall_email.html.haml | 2 | ||||
-rw-r--r-- | app/views/notify/note_wall_email.text.erb | 2 | ||||
-rw-r--r-- | app/views/walls/show.html.haml | 25 |
4 files changed, 26 insertions, 5 deletions
diff --git a/app/views/events/event/_note.html.haml b/app/views/events/event/_note.html.haml index 199785e63ff..8bcfa95ff62 100644 --- a/app/views/events/event/_note.html.haml +++ b/app/views/events/event/_note.html.haml @@ -11,7 +11,7 @@ #{event.note_target_type} ##{truncate event.note_target_id} - elsif event.wall_note? - = link_to 'wall', wall_project_path(event.project) + = link_to 'wall', project_wall_path(event.project) - else %strong (deleted) at diff --git a/app/views/notify/note_wall_email.html.haml b/app/views/notify/note_wall_email.html.haml index 48344a00304..92200e83efa 100644 --- a/app/views/notify/note_wall_email.html.haml +++ b/app/views/notify/note_wall_email.html.haml @@ -1,5 +1,5 @@ %p New message on - = link_to "Project Wall", wall_project_url(@note.project, anchor: "note_#{@note.id}") + = link_to "Project Wall", project_wall_url(@note.project, anchor: "note_#{@note.id}") = render 'note_message' diff --git a/app/views/notify/note_wall_email.text.erb b/app/views/notify/note_wall_email.text.erb index ea1b7efbe84..97910d5eb79 100644 --- a/app/views/notify/note_wall_email.text.erb +++ b/app/views/notify/note_wall_email.text.erb @@ -1,6 +1,6 @@ New message on the project wall <%= @note.project %> -<%= url_for(wall_project_url(@note.project, anchor: "note_#{@note.id}")) %> +<%= url_for(project_wall_url(@note.project, anchor: "note_#{@note.id}")) %> <%= @note.author_name %> 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(){ |