lib/generators/redmine_extensions/entity/templates/show.html.erb.erb in redmine_extensions-0.1.05 vs lib/generators/redmine_extensions/entity/templates/show.html.erb.erb in redmine_extensions-0.1.06

- old
+ new

@@ -1,38 +1,38 @@ -<%%= 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' %> +<%%= 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 %> \ No newline at end of file