+
<%= title %>
+ <%= button :add, _('New...'), {:action => "create_#{kind}_template"}, :title => _("Create a new template for %s") % title.downcase %>
<% templates.each do |template| %>
- - <%= link_to(template.name, {:controller => 'profile_editor', :profile => template.identifier}) %>
+ -
+ <%= image_tag "icons-app/#{kind}-icon.png" %>
+ <%= link_to(template.name, {:controller => 'profile_editor', :profile => template.identifier}, :title => _('Edit template "%s"') % template.name ) %>
+
<% end %>
- -
- <%= link_to(_('New...'), {:action => "create_#{kind}_template"}) %>
-
- <% end %>
-
+
+<% end %>
+
+<% button_bar do %>
+ <%= button :back, _('Back to admin panel'), :controller => 'admin_panel' %>
+<% end %>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index ac13832..ceb1a51 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -5928,6 +5928,29 @@ h1#agenda-title {
font-size: 20px;
}
+/* Templates */
+
+.controller-templates .template-kind {
+ border-bottom: 1px solid #CCC;
+}
+
+.controller-templates .template-kind ul {
+ padding-left: 5px;
+}
+
+.controller-templates .template-kind li {
+ list-style: none;
+ padding: 3px;
+}
+
+.controller-templates .template-kind li:hover {
+ background-color: #f0f0f0;
+}
+
+.controller-templates .template-kind li a {
+ font-size: 13px;
+}
+
/* }}} */
#alt-beautify {
--
libgit2 0.21.2