diff options
| author | Han Loong Liauw <hanloongliauw@gmail.com> | 2015-10-12 18:38:34 +1100 |
|---|---|---|
| committer | Han Loong Liauw <hanloongliauw@gmail.com> | 2015-10-12 18:38:34 +1100 |
| commit | 857cc388e1a93760e37145cd32514dc4026d0775 (patch) | |
| tree | 63530310ef25ee238b93adcd4a34f96ea083ee8f /app/views | |
| parent | 42603af3267bd1be0dcd18927d74bfc19a894c04 (diff) | |
| download | gitlab-ce-857cc388e1a93760e37145cd32514dc4026d0775.tar.gz | |
Adds modified date to snippets#show #1767
- Fixed a bug with .btn-sm padding.
- Changed created_at to modified_at for snippets#index as it seems to
be more relevant.
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/shared/snippets/_snippet.html.haml | 3 | ||||
| -rw-r--r-- | app/views/snippets/show.html.haml | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/app/views/shared/snippets/_snippet.html.haml b/app/views/shared/snippets/_snippet.html.haml index 69a713ad9aa..6f4b0453ad3 100644 --- a/app/views/shared/snippets/_snippet.html.haml +++ b/app/views/shared/snippets/_snippet.html.haml @@ -17,5 +17,4 @@ = link_to user_snippets_path(snippet.author) do = image_tag avatar_icon(snippet.author_email), class: "avatar s24", alt: '' = snippet.author_name - authored #{time_ago_with_tooltip(snippet.created_at)} - + authored #{time_ago_with_tooltip(snippet.updated_at)} diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index 97374e073dc..a12cfd0ff43 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -11,12 +11,12 @@ = link_to new_snippet_path, class: "btn btn-new btn-sm", title: "New Snippet" do Add new snippet -.append-bottom-10.prepend-top-10 +.append-bottom-10.prepend-top-10.clearfix .pull-right %span.light - created by = link_to user_snippets_path(@snippet.author) do = @snippet.author_name + authored #{time_ago_with_tooltip(@snippet.updated_at)} .back-link - if @snippet.author == current_user |
