lib/generators/bootswatch_rails/sorcery/templates/show.html.erb in bootswatch_rails-3.3.0.4 vs lib/generators/bootswatch_rails/sorcery/templates/show.html.erb in bootswatch_rails-3.3.0.5
- old
+ new
@@ -1,7 +1,8 @@
<%%- page_title @<%= name %>.name -%>
<h2><%%= @<%= name %>.name %></h2>
+<%%- content_for(:help) { "<%= name %>_show" } -%>
<table class="table table-striped table-hover">
<tbody>
<tr>
<td><%%= t('activerecord.attributes.<%= name %>.email') %></td>
@@ -43,9 +44,15 @@
</tr>
<tr>
<td><%%= t('activerecord.attributes.<%= name %>.sysadm') %></td>
<td><%%= @<%= name %>.sysadm ? t('simple_form.yes') : t('simple_form.no') %></td>
</tr>
+<%- added_fields.each do |field| -%>
+ <tr>
+ <td><%%= t('activerecord.attributes.<%= name %>.<%= field[0] %>') %></td>
+ <td><%%= @<%= name %>.<%= field[0] %> %></td>
+ </tr>
+<%- end -%>
<%- if options.activity_logging? -%>
<%%- if @<%= name %>.last_login_at.present? -%>
<tr>
<td><%%= t('activerecord.attributes.<%= name %>.last_login_at') %></td>
<td><%%= l(@<%= name %>.last_login_at) %></td>