app/views/admin/themes/edit.html.erb in disguise-0.1.1 vs app/views/admin/themes/edit.html.erb in disguise-0.1.2
- old
+ new
@@ -1,9 +1,14 @@
<h1><%= t('disguise.set_theme') %></h1>
<h2><%= t('disguise.current_theme') %></h2>
<div id="current-theme">
- <%= render :partial => 'admin/themes/theme', :object => @current_theme %>
+ <% if @current_theme -%>
+ <%= render :partial => 'admin/themes/theme', :object => @current_theme %>
+ TODO add code to remove all themes so that the application uses the default app layout.
+ <% else -%>
+ <%= t('disguise.no_current_theme') %>
+ <% end -%>
</div>
<h2><%= t('disguise.activate_theme_message') %></h2>
<%= error_messages_for :theme %>
<%= render :partial => 'admin/themes/theme', :collection => @themes %>
\ No newline at end of file