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:
Diffstat (limited to 'app/views/snippets/index.html.haml')
-rw-r--r--app/views/snippets/index.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/snippets/index.html.haml b/app/views/snippets/index.html.haml
new file mode 100644
index 00000000000..6e5dbde5bb1
--- /dev/null
+++ b/app/views/snippets/index.html.haml
@@ -0,0 +1,14 @@
+%div
+ - if can? current_user, :write_snippet, @project
+ .left= link_to 'New Snippet', new_project_snippet_path(@project), :class => "lbutton vm"
+
+ %table.round-borders#snippets-table
+ %tr
+ %th Author
+ %th Title
+ %th File name
+ %th
+ = render @snippets
+:javascript
+ $('.delete-snippet').live('ajax:success', function() {
+ $(this).closest('tr').fadeOut(); });