aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/admin
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/blog/admin')
-rw-r--r--app/views/refinery/blog/admin/categories/_category.html.erb20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/refinery/blog/admin/categories/_category.html.erb b/app/views/refinery/blog/admin/categories/_category.html.erb
new file mode 100644
index 0000000..1c65c33
--- /dev/null
+++ b/app/views/refinery/blog/admin/categories/_category.html.erb
@@ -0,0 +1,20 @@
+<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(category) -%>">
+ <span class='title'>
+ <%= category.title %>
+ <span class="preview">&nbsp;</span>
+ </span>
+ <span class="sidebar_position">
+ <%= t('.sidebar_position') %>:
+ <%= t('refinery.blog.admin.categories.form.sidebar_positions')[category.sidebar_position] -%>
+ </span>
+ <span class='actions'>
+ <%= link_to refinery_icon_tag("application_edit.png"),
+ refinery.edit_blog_admin_category_path(category, :dialog => true, :height => 325),
+ :title => t('.edit') %>
+ <%= link_to refinery_icon_tag("delete.png"), refinery.blog_admin_category_path(category),
+ :class => "cancel confirm-delete",
+ :title => t('.delete'),
+ :method => :delete,
+ :confirm => t('message', :scope => 'refinery.admin.delete', :title => category.title) %>
+ </span>
+</li>