Sha256: 8db012837e0b4fb209b242df3491afb7f232297d1d0e1f0b48a9f247953ce652

Contents?: true

Size: 1.49 KB

Versions: 3

Compression:

Stored size: 1.49 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_<%= parent_singular_name %>_<%= singular_name %>_path(@<%= parent_singular_name %>.id, <%= singular_name %>.id), :class=>"icons" %>
    <%% end -%>

    <%% if can? :delete, <%= singular_name %>, :context => :manage %>
      <%%= link_to manage_icon("delete"), manage_<%= parent_singular_name %>_<%= singular_name %>_path(@<%= parent_singular_name %>.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_<%= parent_singular_name %>_<%= singular_name %>_path(@<%= parent_singular_name %>.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/multiplay/views/item.html.erb
sunrise-scaffold-0.2.1 lib/generators/sunrise/scaffold/templates/multiplay/views/item.html.erb
sunrise-scaffold-0.2.0 lib/generators/sunrise/scaffold/templates/multiplay/views/item.html.erb