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-06-30 20:32:47 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-30 20:32:47 +0400
commit315d4cc8e86efa1ad5a1e50e55311cb23419e23f (patch)
tree23899ecb4294f45f870be59421fefbe0c3dc8447 /app/views/snippets
parent9b181dc649058c55720be0a9d023e07a71c6c38e (diff)
parent82271e78181b91cb4294cfb2f4aa790bd54343b6 (diff)
Merge pull request #4415 from jackbot/master
Couple of UI additions
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/_blob.html.haml1
-rw-r--r--app/views/snippets/show.html.haml4
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/snippets/_blob.html.haml b/app/views/snippets/_blob.html.haml
index 6f62ea05205..c538da0bee5 100644
--- a/app/views/snippets/_blob.html.haml
+++ b/app/views/snippets/_blob.html.haml
@@ -6,6 +6,7 @@
.btn-group.tree-btn-group.pull-right
- if @snippet.author == current_user
= link_to "Edit", edit_snippet_path(@snippet), class: "btn btn-tiny", title: 'Edit Snippet'
+ = link_to "Delete", snippet_path(@snippet), method: :delete, confirm: "Are you sure?", class: "btn btn-tiny", title: 'Delete Snippet'
= link_to "Raw", raw_snippet_path(@snippet), class: "btn btn-tiny", target: "_blank"
.file_content.code
- unless @snippet.content.empty?
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index f425c4bd51e..ac6daed56b6 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -1,8 +1,8 @@
%h3.page_title
- if @snippet.private?
- %i.icon-lock.cgreen
+ %i{:class => "icon-lock cgreen has_bottom_tooltip", "data-original-title" => "Private snippet"}
- else
- %i.icon-globe.cblue
+ %i{:class => "icon-globe cblue has_bottom_tooltip", "data-original-title" => "Public snippet"}
= @snippet.title