Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [004b58736a9566e61664789ad5d34578b91fa686] by Brian Michalski

Revision 004b58736a9566e61664789ad5d34578b91fa686, committed by Brian Michalski · March 13th, 2012 @ 02:44 AM

Added height, width, and hide_fields parameters to template preview. Closes #52, Closes #53.

  • Introducde an ImageUtility module to resize images system-wide. Scales to fit height and width if needed or stretches the image to match exact dimensions.

  • Wired up Template#display to use the image utility.

  • Wired up Template#preview to use the image utility, taking height and width as params. Setting the hide_fields param to true (&hide_fields=true) will not render the fields on a preview.

  • Made the font size selection smarter when rendering templates. https://github.com/concerto/concerto/commit/004b58736a9566e61664789...

6 changed files

  • A lib/image_utility.rb
  • M app/controllers/templates_controller.rb
  • M app/views/screens/_form.html.erb
  • M app/views/screens/_show_body.html.erb
  • M app/views/templates/preview.svg.erb
  • M config/application.rb