Skip to content

Commit

Permalink
Merge pull request #15 from SamWhited/master
Browse files Browse the repository at this point in the history
Make snippet / script icons clickable [ci skip]
  • Loading branch information
SamWhited committed Jan 7, 2012
2 parents 6fc3242 + cd78849 commit b93fc08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions app/views/admin/scripts/index.html.haml
Expand Up @@ -11,8 +11,7 @@
- models.each do |javascript|
%tr
%td.name
= image('javascript')
= link_to javascript.title, edit_admin_script_path(javascript)
= link_to image('javascript') + ' ' + javascript.title, edit_admin_script_path(javascript)
%td.filter= javascript.part('body').filter.filter_name
%td.actions= link_to(image('minus') + ' ' + t('remove'), admin_script_url(javascript), :class => "action", :method => :delete, :confirm => "Is it OK to delete #{javascript.slug}?")
- else
Expand All @@ -30,4 +29,4 @@
%span
= f.label :upload, image('upload') + ' ' + t('upload')
= f.file_field :upload
= f.submit t('create_javascript')
= f.submit t('create_javascript')
5 changes: 2 additions & 3 deletions app/views/admin/styles/index.html.haml
Expand Up @@ -11,8 +11,7 @@
- models.each do |stylesheet|
%tr
%td.name
= image('stylesheet')
= link_to stylesheet.title, edit_admin_style_path(stylesheet)
= link_to image('stylesheet') + ' ' + stylesheet.title, edit_admin_style_path(stylesheet)
%td.filter= stylesheet.part('body').filter.filter_name
%td.actions= link_to(image('minus') + ' ' + t('remove'), admin_style_url(stylesheet), :class => "action", :method => :delete, :confirm => "Is it OK to delete #{stylesheet.slug}?")
- else
Expand All @@ -30,4 +29,4 @@
%span
= f.label :upload, image('upload') + ' ' + t('upload')
= f.file_field :upload
= f.submit t('create_stylesheet')
= f.submit t('create_stylesheet')

0 comments on commit b93fc08

Please sign in to comment.