Sha256: a1da45ecffbb2b6b2c7fb07cbd78d247a04adc35c93563905b3ebd6efcccbc95

Contents?: true

Size: 1.75 KB

Versions: 12

Compression:

Stored size: 1.75 KB

Contents

<%%= title @<%= model_name_underscored %> %>
<div class="issue">
  <table class="attributes">
    <%%= issue_fields_rows do |rows| %>
<%- safe_columns.each_with_index do |column, idx| -%>
<%- next if description_column? && column[0] == description_column -%>
<%- if idx % 2 == 0 -%>
      <%% rows.left <%= model_name %>.human_attribute_name(:<%= column[0] %>), format_object(@<%= model_name_underscored %>.<%= column[0] %>) %>
<%- else -%>
      <%% rows.right <%= model_name %>.human_attribute_name(:<%= column[0] %>), format_object(@<%= model_name_underscored %>.<%= column[0] %>) %>
<%- end -%>
<%- end -%>
    <%% end %>
    <%%= render_custom_fields_rows(@<%= model_name_underscored %>) %>
    <%%= call_hook(:view_<%= model_name_pluralize_underscored %>_show_details_bottom, :<%= model_name_underscored %> => @<%= model_name_underscored %>) %>
  </table>
<%- if description_column? -%>
  <%% if !@<%= model_name_underscored %>.<%= description_column %>.blank? %>
    <hr />
    <div class="description">
      <p><strong><%%= <%= model_name %>.human_attribute_name(:<%= description_column %>) %></strong></p>
      <div class="wiki">
        <%%= textilizable @<%= model_name_underscored %>, :<%= description_column %>, attachments: @<%= model_name_underscored %>.attachments %>
      </div>
    </div>
  <%% end %>
<%- end -%>
<%- if acts_as_attachable? -%>
  <%% if @<%= model_name_underscored %>.attachments.any? -%>
    <hr />
    <%%= link_to_attachments @<%= model_name_underscored %>, :thumbnails => true %>
  <%% end %>
<%- end -%>
</div>
<%% ### PAGE CUSTOMS ########################################################## %>
<%% content_for :sidebar do %>
  <%%= render :partial => '<%= model_name_pluralize_underscored %>/sidebar' %>
<%% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
redmine_extensions-0.0.28 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.24 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.23 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.22 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.21 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.20 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.19 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.18 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.17 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.16 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.15 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.14 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb