BigW Consortium Gitlab

_notes_with_form.html.haml 693 Bytes
Newer Older
1
%ul#notes-list.notes.main-notes-list.timeline
2
  = render "projects/notes/notes"
3
.js-notes-busy
4

5
.js-main-target-form
6
- if can? current_user, :create_note, @project
7
  = render "projects/notes/form", view: diff_view
8 9 10 11 12 13 14 15 16 17
- else
  .disabled-comment-area
    .disabled-profile
    .disabled-comment
      %span
        Please
        = link_to "register",new_user_session_path
        or
        = link_to "login",new_user_session_path
        to post a comment
18

gitlabhq committed
19
:javascript
20
  var notes = new Notes("#{namespace_project_notes_path(namespace_id: @project.namespace, target_id: @noteable.id, target_type: @noteable.class.name.underscore)}", #{@notes.map(&:id).to_json}, #{Time.now.to_i}, "#{diff_view}")