summaryrefslogtreecommitdiff
path: root/app/views/snippets/index.html.haml
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-17 00:07:10 +0300
committergitlabhq <m@gitlabhq.com>2011-10-17 00:07:10 +0300
commit9265de3d25715aeafd38a4ef41596dca058dc18c (patch)
treee755a2c4c0c0451c90a8bc0e75ffae1950a2f6fd /app/views/snippets/index.html.haml
parent526ad466c86e69c3447c192d8cae8da653556058 (diff)
downloadgitlab-ce-9265de3d25715aeafd38a4ef41596dca058dc18c.tar.gz
snippets are ready
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(); });