Changeset [004b58736a9566e61664789ad5d34578b91fa686] 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...

Committed by Brian Michalski

  • 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
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Concerto is an open source digital signage system that makes it easy to engage a large community of people with graphical and text-based announcements, bulletins, and other messages... but enough about us, you came here to get involved.
<br />
If you think you've <b>found a bug in Concerto</b>, please click 'Create new ticket' and let us know about it.
<br />
Looking to peek at our source code? Head to <a href="https://github.com/concerto/concerto_v1">https://github.com/concerto/concerto_v1</a> (Concerto version 1) or <a href="https://github.com/concerto/concerto">https://github.com/concerto/concerto</a> (Concerto version 2).
<br />
Our getting started guide is available here: <a href="https://github.com/concerto/concerto/wiki/Getting-Involved">https://github.com/concerto/concerto/wiki/Getting-Involved</a>.