Sha256: f0d067a6bf596a1699054138de7937938c8213e5f5da91c10fd58d1abca5bcf7
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
<div class="block"> <div class="secondary-navigation"> <ul class="wat-cf"> <li class="first"><%%= link_to "#{t("activoate.list", :default => "List")}", <%= controller_routing_path %>_path %></li> <li><%%= link_to "#{t("activoate.new", :default => "New")}", new_<%= singular_controller_routing_path %>_path %></li> <li class="active"><%%= link_to "#{t("activoate.show", :default => "Show")}", <%= singular_controller_routing_path %>_path %></li> </ul> </div> <div class="content"> <h2 class="title"><%%= t("activoate.show", :default => "Show")%> <%= model_name %></h2> <div class="inner"> <%%= semantic_attributes_for @<%= model_name.underscore %> do |attr| %> <%%= attr.attributes do %> <% columns.each do |column| %> <% if column.type == :boolean %> <%%= attr.attribute :<%= column.name %> do %> <%%= @<%= model_name.underscore %>.<%= column.name %> ? t("activoate.yes", :default => "Yes") : t("activoate.no", :default => "No") %> <%% end %> <% else %> <%%= attr.attribute :<%= column.name %> %> <%- end -%> <%- end %> <%% end %> <%% end %> <div class="wat-cf"> <%%= edit_button edit_<%= singular_controller_routing_path %>_path(@<%= resource_name %>) %> <%%= delete_button <%= singular_controller_routing_path %>_path(@<%= resource_name %>) %> </div> </div> </div> </div> <%% content_for :sidebar, render(:partial => 'sidebar') -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activoate-0.7.9 | lib/generators/activoate/activoated/templates/view_show_attrtastic.html.erb |