Permalink
Browse files

Adding proper classes for audio player.

Signed-off-by: Yuri Tomanek <yuri@tomanek.com.au>
  • Loading branch information...
1 parent 43e6aa4 commit a48a960c3399ecfc1ad6f02363a156c95efb5a76 @yuritomanek yuritomanek committed Feb 25, 2013
View
2 app/helpers/gluttonberg/asset_library.rb
@@ -224,7 +224,7 @@ def asset_browser( field_id , opts = {} )
thumbnail_caption = ""
if asset && asset.category == "audio"
- thumbnail_caption << "<div class='ui360'><a href='#{asset.url}'>#{asset_name}</a></div>"
+ thumbnail_caption << "<div class='sm2-inline-list'><div class='ui360'><a href='#{asset.url}'>#{asset_name}</a></div></div>"
else
thumbnail_caption << asset_name unless asset_name.blank?
end
View
7 app/views/gluttonberg/admin/asset_library/assets/show.html.haml
@@ -43,9 +43,10 @@
%legend Asset URL
%p.publicpath
- if @asset.category == 'audio'
- .ui360
- %a{:href => "#{asset_url(@asset)}", :target => "_blank" , :class => ""}
- = @asset.title
+ .sm2-inline-list
+ .ui360
+ %a{:href => "#{asset_url(@asset)}", :target => "_blank" , :class => ""}
+ = @asset.title
%br
%a{:href => "#{asset_url(@asset)}", :target => "_blank" }
= asset_url(@asset)
View
7 app/views/gluttonberg/admin/asset_library/shared/_asset_panels.html.haml
@@ -36,9 +36,10 @@
%td
- if asset.category == 'audio'
- .ui360
- %a{:href => "#{asset_url(asset)}", :target => "_blank" , :class => ""}
- = asset.name
+ .sm2-inline-list
+ .ui360
+ %a{:href => "#{asset_url(asset)}", :target => "_blank" , :class => ""}
+ = asset.name
- elsif asset.category == 'image'
%a{:href => admin_asset_url(asset), :class => "thumbnail"}
%img{:src => asset.thumb_small_url }
View
7 app/views/gluttonberg/admin/shared/_asset_panel.html.haml
@@ -18,9 +18,10 @@
%li.span3
.thumbnail
- if asset.category == 'audio'
- .ui360
- %a{:href => "#{asset_url(asset)}", :target => "_blank" , :class => "no-ajax"}
- = asset.name
+ .sm2-inline-list
+ .ui360
+ %a{:href => "#{asset_url(asset)}", :target => "_blank" , :class => "no-ajax"}
+ = asset.name
- elsif asset.category == 'image'
%img{:src => "#{asset.thumb_small_url}"}
.caption

0 comments on commit a48a960

Please sign in to comment.