Snippet restyle
This commit is contained in:
parent
ca4e2ad135
commit
0712e78597
4 changed files with 67 additions and 57 deletions
|
@ -4,9 +4,7 @@
|
|||
- 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
|
||||
|
||||
:javascript
|
||||
$('.delete-snippet').live('ajax:success', function() {
|
||||
$(this).closest('tr').fadeOut(); });
|
||||
- unless @snippets.fresh.empty?
|
||||
%div{ :class => "update-data ui-box ui-box-small ui-box-big" }
|
||||
.data
|
||||
= render @snippets.fresh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue