lib/masterview/extras/app/views/masterview/admin/list.rhtml in masterview-0.1.5 vs lib/masterview/extras/app/views/masterview/admin/list.rhtml in masterview-0.2.0
- old
+ new
@@ -1,12 +1,12 @@
<html>
<head>
<title>Masterview Admin</title>
- <%= stylesheet_link_tag 'scaffold' %>
- <%= stylesheet_link_tag 'sidebox' %>
- <%= stylesheet_link_tag 'color-scheme' %>
+ <%= stylesheet_link_tag 'masterview/style' %>
+ <%= stylesheet_link_tag 'masterview/sidebox' %>
+ <%= stylesheet_link_tag 'masterview/color-scheme' %>
<%= javascript_include_tag :defaults %>
</head>
<body>
@@ -24,10 +24,11 @@
<div class="main">
<div class="mv_admin_list sidebar LHS">
<h2>Tasks:</h2>
<ul>
+ <li><%= link_to 'View Configuration', :action => 'configuration' %></li>
<li><%= link_to 'Rebuild all outdated templates', :action => 'rebuild_all' %></li>
</ul>
</div>
<div class="mv_admin_list content">
@@ -44,31 +45,35 @@
<tr>
<th>Template</th>
<th>Status</th>
<th>Operations</th>
<th>Messages</th>
- <th>Generated Files</th>
+ <th>Generated Files (rhtml/erb)</th>
</tr>
<% @template_specs_sorted.each do |path, template_spec| %>
<tr>
- <td><%= template_spec.basename %></td>
+ <td><%= path %></td>
<td>
- <%= template_spec.status %>
+ <%= h template_spec.status %>
</td>
<td>
<% if template_spec.status == MasterView::TemplateSpec::Status::ImportsOutdated %>
<%= link_to 'Rebuild', :action => :rebuild, :id => path %>
<% end %>
<% if template_spec.status == MasterView::TemplateSpec::Status::OK %>
<%= link_to 'Copy', :action => 'create', :id => path %>
<% end %>
</td>
- <td><%= template_spec.message %></td>
+ <td><%= h template_spec.message %></td>
<td>
<% template_spec.gen_parts.each do |part| %>
- <%= part %>
+ <% if MasterView::EnableMasterViewAdminViewRHTML %>
+ <%= link_to part, {:action => :view_rhtml, :id => part}, :title => 'View RHTML - '+part %>
+ <% else %>
+ <%= part %>
+ <% end %>
<% end %>
</td>
</tr>
<% end %>
</table>
@@ -86,10 +91,10 @@
<div class="footerLHS">
<a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS 2</a>
</div>
<div>
- Powered by MasterView
+ <a href="http://masterview.org">Powered by MasterView</a>
</div>
</div>
</body>