forked from refinery/refinerycms
/
_theme.html.erb
24 lines (21 loc) · 1.01 KB
/
_theme.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<li class=''>
<p>
<%=h theme.title %>
</p>
<%= image_tag(preview_image_admin_theme_url(theme), :width => 135, :height => 135) %>
<p>
<span class='actions'>
<%= link_to refinery_icon_tag('star.png'), activate_admin_theme_url(theme) %>
<%= link_to refinery_icon_tag('page_white_put.png'), theme.public_filename,
:title => "Download this theme (#{number_to_human_size(theme.size)})" %>
<% if Theme.first.theme_directory_is_writable? %>
<%= link_to refinery_icon_tag('application_edit.png'), edit_admin_theme_url(theme),
:title => "Edit this theme" %>
<% end %>
<%= link_to refinery_icon_tag('delete.png'), admin_theme_path(theme),
:confirm => "Are you sure you want to delete '#{theme.title}'?",
:class => "cancel", :method => :delete,
:title => "Remove this theme forever" %>
</span>
</p>
</li>