Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/notes/_show.html.haml')
-rw-r--r--app/views/notes/_show.html.haml19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/notes/_show.html.haml b/app/views/notes/_show.html.haml
new file mode 100644
index 00000000000..2b0a6d2ebcd
--- /dev/null
+++ b/app/views/notes/_show.html.haml
@@ -0,0 +1,19 @@
+%li{:id => dom_id(note)}
+ %div.note_author
+ = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
+ %div.note_content
+ = simple_format(html_escape(note.note))
+ - if note.attachment.url
+ Attachment:
+ = link_to note.attachment_identifier, note.attachment.url
+ %br
+ %span
+ %span
+ [ #{note.author.name} ]
+  
+ = time_ago_in_words(note.updated_at)
+ ago
+ %br
+ - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
+ = link_to 'Remove', [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "lbutton delete-note right negative"
+ .clear