diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-22 03:20:41 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-12-03 22:51:56 +0100 |
commit | fbd345ea20eaabc58fe84a2cdf3ba960f3a10c24 (patch) | |
tree | a36e13f2088aa0d5822de64015aaf1e0af5004c5 | |
parent | c4a7824a8c6487b24379f7f85c26f182bbc1dee9 (diff) | |
download | gitlab-ce-fbd345ea20eaabc58fe84a2cdf3ba960f3a10c24.tar.gz |
Make attachments more obvious
-rw-r--r-- | app/assets/stylesheets/sections/notes.scss | 18 | ||||
-rw-r--r-- | app/views/notes/_note.html.haml | 9 |
2 files changed, 20 insertions, 7 deletions
diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss index df7b16b145d..e8bf3d631cc 100644 --- a/app/assets/stylesheets/sections/notes.scss +++ b/app/assets/stylesheets/sections/notes.scss @@ -76,10 +76,22 @@ ul.notes { p { color: $style_color; } .avatar { - margin-top:3px; + margin-top: 3px; + } + .attachment { + font-size: 16px; + margin-top: -20px; + + .icon-attachment { + @extend .icon-paper-clip; + font-size: 24px; + position: relative; + text-align: right; + top: 6px; + } } .note-body { - margin-left:45px; + margin-left: 45px; padding-top: 5px; } .note-header { @@ -187,7 +199,7 @@ p.notify_controls span{ // TODO: end cleaup /** - * add line note button on the side of diffs + * line note button on the side of diffs */ .diff_file tr.line_holder { .add-diff-note { diff --git a/app/views/notes/_note.html.haml b/app/views/notes/_note.html.haml index c0c0b725146..980300c4657 100644 --- a/app/views/notes/_note.html.haml +++ b/app/views/notes/_note.html.haml @@ -27,8 +27,9 @@ .note-body = preserve do = markdown(note.note) - - if note.attachment.url - .right - %div.file - = link_to note.attachment_identifier, note.attachment.url, target: "_blank" + - if note.attachment.url + .attachment.right + = link_to note.attachment.url, target: "_blank" do + %i.icon-attachment + = note.attachment_identifier .clear |