Sha256: abab6ed078cde79aa5cda35f7095138340fe27037d001fc4c9fd556fa45fe66a

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

<div class="block">
  <div class="secondary-navigation">
    <ul class="wat-cf">
      <li class="first"><%%= link_to "#{t("activoated.list", :default => "List")}", <%= controller_routing_path %>_path  %></li>
      <li><%%= link_to "#{t("activoated.new", :default => "New")}", new_<%= singular_controller_routing_path %>_path %></li>
      <li class="active"><%%= link_to "#{t("activoated.show", :default => "Show")}", <%= singular_controller_routing_path %>_path %></li>
    </ul>
  </div>
  <div class="content">
    <h2 class="title"><%%= t("activoated.show", :default => "Show")%>  <%= model_name %></h2>
		<div class="inner">
      <% columns.each do |column| %>
        <p>
          <b><%%= t("activerecord.attributes.<%= singular_controller_routing_path %>.<%= column.name %>", :default => t("activerecord.labels.<%= column.name %>", :default => "<%= column.name.humanize %>")) %>:</b>
          <%%= @<%= resource_name %>.<%= column.name %> %>
        </p>
      <%- 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

2 entries across 2 versions & 1 rubygems

Version Path
activoate-0.7.2 lib/generators/activoate/activoated/templates/view_show.html.erb
activoate-0.6.8 lib/generators/activoate/activoated/templates/view_show.html.erb