lib/masterview/extras/app/views/masterview/admin/features.rhtml in masterview-0.2.5 vs lib/masterview/extras/app/views/masterview/admin/features.rhtml in masterview-0.3.0

- old
+ new

@@ -1,79 +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="create_div" id="mv_admin_features"><!-- ###### features ###### --> - <div class="mv_admin_features sidebar LHS"> - <h2>Tasks:</h2> - <ul> - <li><%= link_to 'Back to overview', :action => 'list' %></li> - </ul> - </div> - - <div class="mv_admin_features content"> - <h1>Loaded Features</h1> - <b>MasterView Version:</b> <%= MasterView::VERSION::STRING %><br/><br/> - - <% if @flash[:notice] %> - <div class="messages" id="admin_messages"> - <%= h @flash[:notice] %> - </div> - <% end %> - - <table> - <thead> - <tr><th>Feature</th><th>Loaded</th></tr> - </thead> - <tbody> - <tr><td>Filter templates through tidy on read</td><td><%= (MasterView::LoadedFeatures[:tidy_template_read]) ? 'true' : 'false' %></td></tr> - <tr><td>Parse templates at startup</td><td><%= (MasterView::LoadedFeatures[:rails_parse_at_startup]) ? 'true' : 'false' %></td></tr> - <tr><td>Reparse modified templates</td><td><%= (MasterView::LoadedFeatures[:rails_reparse_checking]) ? 'true' : 'false' %></td></tr> - <tr><td>Read ERB directly from MasterView</td><td><%= (MasterView::LoadedFeatures[:rails_erb_mv_direct]) ? 'true' : 'false' %></td></tr> - </tbody> - </table> - - </div> - </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> - Powered by MasterView - </div> - </div> - - - </body> -</html> +<% @config_page_title = 'Loaded Features' -%> +<%= MasterView::FeaturesInfo.to_html( + :title => :none, :preamble => :none, + :container_attrs => 'class="config_info"', + :section_attrs => 'class="section_header"' ) %>