Sha256: c70380c1c84e90b2a72a90c8f4caac449c81cea0ac1a960c92651bdfb1086992

Contents?: true

Size: 1.76 KB

Versions: 12

Compression:

Stored size: 1.76 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.1.18 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.17 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.16 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.38 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.13 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.10 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.05 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.04 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.03 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.02 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.1.01 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb
redmine_extensions-0.0.29 lib/generators/redmine_extensions/entity/templates/show.html.erb.erb