Sha256: 1a5c7c31fa723ff40ab97267fe4837038b3ea6ecdb5d072f53e11862a0aef496

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

<%%= content_tag(:div, :id=>dom_id(<%= singular_name %>), :class=>"dinamic-bl") do %>
  <div class="act-bl" style="display:none;">
    <%% if can? :update, <%= singular_name %>, :context => :manage %>
      <%%= link_to manage_icon("edit"), edit_manage_<%= singular_name %>_path(:id=><%= singular_name %>.id), :class=>"icons" %>
    <%% end -%>
    
    <%% if can? :delete, <%= singular_name %>, :context => :manage %>
      <%%= link_to manage_icon("delete"), manage_<%= singular_name %>_path(:id=><%= singular_name %>.id), 
          :method=>:delete, :confirm=>t("manage.confirm_delete"), :class=>"icons" %>
    <%% end -%>
  </div>
  
  <div class="bot-bg">
    <div class="dinamic-container">
    	<div class="right-data">	
        <div class="right-data-cont">
          <div class="dinamic-inner">
          	<div class="r-block">
              <div class="r-block-cont">
                <%%= link_to <%= singular_name %>.title, edit_manage_<%= singular_name %>_path(:id=><%= singular_name %>.id), :class=>"title" %>
              </div>
            </div>
            <!--<div class="l-block"> ava img </div>-->
          </div>
        </div>
      </div>
      <div class="left-data">
        <span class="data"><%%= raw I18n.l(<%= singular_name %>.created_at, :format=>"<span>%d/%m</span>%Y") %></span>
      </div>
    </div>
  </div>
<%% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sunrise-scaffold-0.2.2 lib/generators/sunrise/scaffold/templates/single/views/item.html.erb
sunrise-scaffold-0.2.1 lib/generators/sunrise/scaffold/templates/single/views/item.html.erb
sunrise-scaffold-0.2.0 lib/generators/sunrise/scaffold/templates/single/views/item.html.erb