Sha256: eb623488bdfcd55a4cfc70649657bb7b8e00e3473f16fefca3231cbd51f10bf5
Contents?: true
Size: 1.72 KB
Versions: 11
Compression:
Stored size: 1.72 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
11 entries across 11 versions & 1 rubygems