Fix different styles/button positions

This commit is contained in:
Dmitriy Zaporozhets 2011-12-08 01:35:57 +02:00
parent 72a13fcc2e
commit 23a1ba7362
7 changed files with 80 additions and 27 deletions

View file

@ -1,9 +1,12 @@
%div
- if can? current_user, :write_snippet, @project
= link_to 'New Snippet', new_project_snippet_path(@project), :class => "grey-button append-bottom-10"
%h2.icon
%span>
Snippets
- if can? current_user, :write_snippet, @project
.right= link_to 'New Snippet', new_project_snippet_path(@project), :class => "grey-button append-bottom-10"
%table#snippets-table
= render @snippets.fresh
%table#snippets-table
= render @snippets.fresh
:javascript
$('.delete-snippet').live('ajax:success', function() {
$(this).closest('tr').fadeOut(); });