Permalink
Browse files

Missing = on admin page erb templates

The erb templates in the admin generator were missing = from <%%=
mt(:<%= @orm.name_plural %>) %> so the @orm.name_plural value wasn't
being added to the page output.
  • Loading branch information...
Stuart Chinery
Stuart Chinery committed Jul 4, 2012
1 parent 98eb032 commit 53358f588ed49d8838dc0082e30b2dcca36310ba
@@ -7,7 +7,7 @@
</ul>
</div>
<div class="content">
<h2 class="title"><%%= pat(:edit) %> <%% mt(:<%= @orm.name_singular %>) %></h2>
<h2 class="title"><%%= pat(:edit) %> <%%= mt(:<%= @orm.name_singular %>) %></h2>
<div class="inner">
<%% form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :update, :id => @<%= @orm.name_singular %>.id), :method => :put, :class => :form do |f| %>
<%%= partial "<%= @orm.name_plural %>/form", :locals => { :f => f } %>
@@ -6,7 +6,7 @@
</ul>
</div>
<div class="content">
<h2 class="title"><%%= pat(:all) %> <%% mt(:<%= @orm.name_plural %>) %></h2>
<h2 class="title"><%%= pat(:all) %> <%%= mt(:<%= @orm.name_plural %>) %></h2>
<div class="inner">
<table class="table">
<tr>
@@ -6,7 +6,7 @@
</ul>
</div>
<div class="content">
<h2 class="title"><%%= pat(:new) %> <%% mt(:<%= @orm.name_singular %>) %></h2>
<h2 class="title"><%%= pat(:new) %> <%%= mt(:<%= @orm.name_singular %>) %></h2>
<div class="inner">
<%% form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => :form do |f| %>
<%%= partial "<%= @orm.name_plural %>/form", :locals => { :f => f } %>

0 comments on commit 53358f5

Please sign in to comment.