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-07-18 14:21:56 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-18 14:21:56 +0400
commitb1fbd6583247c85096bc9c7362907db3539e806b (patch)
tree8280c50f03fb802c56c362e835e413961ab51f05 /app/views/projects/snippets
parentbbb06e504e387762bb5a073d1f0debdc05e03f98 (diff)
Improve UI for project snippets
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r--app/views/projects/snippets/_snippet.html.haml16
-rw-r--r--app/views/projects/snippets/show.html.haml1
2 files changed, 6 insertions, 11 deletions
diff --git a/app/views/projects/snippets/_snippet.html.haml b/app/views/projects/snippets/_snippet.html.haml
index 72865bf2872..fc1c0893b08 100644
--- a/app/views/projects/snippets/_snippet.html.haml
+++ b/app/views/projects/snippets/_snippet.html.haml
@@ -1,13 +1,8 @@
%li
- .snippet-title
- - if snippet.private?
- %i.icon-lock.cgreen
- - else
- %i.icon-globe.cblue
+ %h4.snippet-title
= link_to reliable_snippet_path(snippet) do
- %h5.inline
- = truncate(snippet.title, length: 60)
- %span.cgray
+ = truncate(snippet.title, length: 60)
+ %span.cgray.monospace.tiny.pull-right
= snippet.file_name
%small.pull-right.cgray
@@ -17,9 +12,10 @@
- else
Never
- .snippet-info.prepend-left-20
+ .snippet-info
= "##{snippet.id}"
- %span.light
+ %span
by
= image_tag gravatar_icon(snippet.author_email), class: "avatar avatar-inline s16"
= snippet.author_name
+ %span.light #{time_ago_in_words(snippet.created_at)} ago
diff --git a/app/views/projects/snippets/show.html.haml b/app/views/projects/snippets/show.html.haml
index 564c2e8b72c..4a07ebf7fd9 100644
--- a/app/views/projects/snippets/show.html.haml
+++ b/app/views/projects/snippets/show.html.haml
@@ -1,5 +1,4 @@
%h3.page-title
- %i.icon-lock.cgreen
= @snippet.title
%small.pull-right