diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-18 13:08:48 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-18 13:08:48 +0300 |
commit | bbb06e504e387762bb5a073d1f0debdc05e03f98 (patch) | |
tree | 7c27bb8662bbd3bd0c90bc13290a1171fe804ad0 /app/views/snippets/show.html.haml | |
parent | 02e39563c8e931c94a650f36d8732beecc068019 (diff) | |
download | gitlab-ce-bbb06e504e387762bb5a073d1f0debdc05e03f98.tar.gz |
Add seeds and improve ui. Remove snippet expires_at
Diffstat (limited to 'app/views/snippets/show.html.haml')
-rw-r--r-- | app/views/snippets/show.html.haml | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index b112511a880..811e429d22a 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -1,15 +1,30 @@ %h3.page-title + = @snippet.title + - if @snippet.private? - %i{:class => "icon-lock cgreen has_bottom_tooltip", "data-original-title" => "Private snippet"} - - else - %i{:class => "icon-globe cblue has_bottom_tooltip", "data-original-title" => "Public snippet"} + %span.label.label-success + %i.icon-lock + private - = @snippet.title + .pull-right + = link_to new_snippet_path, class: "btn btn-small add_new grouped btn-primary", title: "New Snippet" do + Add new snippet - %small.pull-right + +.append-bottom-20 + .pull-right = "##{@snippet.id}" %span.light by = image_tag gravatar_icon(@snippet.author_email), class: "avatar avatar-inline s16" = @snippet.author_name + + .back-link + - if @snippet.author == current_user + = link_to user_snippets_path(current_user) do + ← my snippets + - else + = link_to snippets_path do + ← discover snippets + %div= render 'blob' |