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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-05 00:00:51 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-05 00:00:51 +0400
commit730e79e78785857fd706b73252547a5c7f6431d9 (patch)
tree2eade3bb1061b054cdb93a7633d7f6c62f46846a /app/views/events/event/_note.html.haml
parentd54845a16a8c6c646ecf1d29ca385644f7b2660d (diff)
better event-notes typography
Diffstat (limited to 'app/views/events/event/_note.html.haml')
-rw-r--r--app/views/events/event/_note.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/events/event/_note.html.haml b/app/views/events/event/_note.html.haml
index 19665ce0aea..199785e63ff 100644
--- a/app/views/events/event/_note.html.haml
+++ b/app/views/events/event/_note.html.haml
@@ -21,9 +21,10 @@
= event.project_name
.event-body
- %i.icon-comment-alt.event-note-icon
- %span.event-note
- = markdown truncate(event.target.note, length: 70)
+ .event-note
+ .md
+ %i.icon-comment-alt.event-note-icon
+ = sanitize(markdown(truncate(event.target.note, length: 150)), tags: %w(a img b pre p))
- note = event.target
- if note.attachment.url
= link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do