~bac/charms/precise/juju-gui/support-constraints

Viewing all changes in revision 160.

  • Committer: Gary Poster
  • Date: 2014-02-04 21:29:17 UTC
  • mfrom: (159.1.1 cachedFonts)
  • Revision ID: gary.poster@canonical.com-20140204212917-unlzk8fz4gb8p8dk
Add support for cached fonts

Per https://launchpad.net/bugs/1274955 , and building off recently landed work in the GUI itself (https://github.com/juju/juju-gui/pull/104), this adds configuration to support cached fonts.

To QA, deploy the charm with GUI trunk as you wish, and then verify in your browser's inspector's network tab that the font CSS is being downloaded from Google.  Then set cached-fonts to true (command line or GUI), wait about ten seconds, do a hard reload on the GUI, and you should see in the network tab that there is no CSS from Google anymore, and there is now a fontface.css delivered locally.

To deploy the charm with GUI trunk, I like to `git pull juju develop` in my GUI trunk, `make clean && make distfile`, copy the release into the charm's releases directory, `juju switch local`, `juju bootstrap`, and `make deploy` in the charm.  YMMV: the other option instead of the `make distfile` approach is to use `juju set juju-gui juju-gui-source=develop`.

R=bac
CC=
https://codereview.appspot.com/60130043

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: