From cd78849773aa64464767b99ab7c7a0f40bdc4618 Mon Sep 17 00:00:00 2001 From: Samuel Whited Date: Fri, 6 Jan 2012 19:45:28 -0500 Subject: [PATCH] Added image to link for scripts and styles. --- app/views/admin/scripts/index.html.haml | 5 ++--- app/views/admin/styles/index.html.haml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/admin/scripts/index.html.haml b/app/views/admin/scripts/index.html.haml index cde1668..57fe624 100644 --- a/app/views/admin/scripts/index.html.haml +++ b/app/views/admin/scripts/index.html.haml @@ -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 @@ -30,4 +29,4 @@ %span = f.label :upload, image('upload') + ' ' + t('upload') = f.file_field :upload - = f.submit t('create_javascript') \ No newline at end of file + = f.submit t('create_javascript') diff --git a/app/views/admin/styles/index.html.haml b/app/views/admin/styles/index.html.haml index 60d56bd..1589745 100644 --- a/app/views/admin/styles/index.html.haml +++ b/app/views/admin/styles/index.html.haml @@ -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 @@ -30,4 +29,4 @@ %span = f.label :upload, image('upload') + ' ' + t('upload') = f.file_field :upload - = f.submit t('create_stylesheet') \ No newline at end of file + = f.submit t('create_stylesheet')