lib/masterview/extras/app/views/masterview/admin/list.rhtml in masterview-0.2.5 vs lib/masterview/extras/app/views/masterview/admin/list.rhtml in masterview-0.3.0
- old
+ new
@@ -1,50 +1,5 @@
-<html>
- <head>
- <title>Masterview Admin</title>
-
- <%= stylesheet_link_tag 'masterview/style' %>
- <%= stylesheet_link_tag 'masterview/sidebox' %>
- <%= stylesheet_link_tag 'masterview/color-scheme' %>
- <%= javascript_include_tag :defaults %>
-
- </head>
- <body>
-
- <!-- ###### Header ###### -->
-
- <div id="header">
- <span class="headerTitle">Admin</span>
- <div class="menuBar">
- <%= link_to 'Home', :action => :index %>
- <!-- | <a href="">Another link</a> -->
- </div>
- </div>
-
-
- <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 'View Loaded Features', :action => 'features' %></li>
- <li><%= link_to 'Interactive Render', :action => 'interact' %></li>
- <li style="margin-top: 6px; padding-top: 4px; border-top: 1px dashed;"><%= link_to 'Rebuild all outdated templates', :action => 'rebuild_all' %></li>
- </ul>
- </div>
-
- <div class="mv_admin_list content">
- <h1>MasterView Admin</h1>
-
- <% if @flash[:notice] %>
- <div class="messages" id="admin_messages">
- <%= h @flash[:notice] %>
- </div>
- <% end %>
-
-
<table border="1">
<tr>
<th>Template</th>
<th>Status</th>
<th>Operations</th>
@@ -57,48 +12,25 @@
<td>
<%= h template_spec.status %>
</td>
<td>
<% if template_spec.status == MasterView::TemplateSpec::Status::ImportsOutdated %>
- <%= link_to 'Rebuild', :action => :rebuild, :id => path %>
+ <%= link_to 'Rebuild', :action => :rebuild, :file => path %>
<% end %>
<% if template_spec.status == MasterView::TemplateSpec::Status::OK %>
- <%= link_to 'Copy', :action => 'create', :id => path %>
+ <%= link_to 'Copy', :action => 'create', :file => path %>
<% end %>
</td>
<td><%= h template_spec.message %></td>
<td>
<% template_spec.gen_parts.each do |part| %>
<% if MasterView::EnableMasterViewAdminViewRHTML %>
- <%= link_to part, {:action => :view_rhtml, :id => part}, :title => 'View RHTML - '+part %>
+ <%= link_to part, {:action => :view_rhtml, :file => part}, :title => 'View RHTML - '+part %>
<% else %>
<%= part %>
<% end %>
<% end %>
</td>
</tr>
<% end %>
</table>
-</div>
-
- </div>
-
- <!-- ###### Footer ###### -->
-
- <div id="footer">
- <div class="footerLHS">
- <a href="http://validator.w3.org/check/referer">Valid XHTML 1.0 Strict</a>
- </div>
-
- <div class="footerLHS">
- <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS 2</a>
- </div>
-
- <div>
- <a href="http://masterview.org">Powered by MasterView</a>
- </div>
- </div>
-
-
- </body>
-</html>