Fix different styles/button positions
This commit is contained in:
parent
72a13fcc2e
commit
23a1ba7362
7 changed files with 80 additions and 27 deletions
|
@ -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(); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue