1. 08 Jun, 2012 11 commits
  2. 07 Jun, 2012 2 commits
  3. 06 Jun, 2012 2 commits
  4. 05 Jun, 2012 3 commits
  5. 01 Jun, 2012 10 commits
  6. 31 May, 2012 3 commits
    • Richard Mansfield's avatar
      Add config option to allow users to change their theme · e250631d
      Richard Mansfield authored
      Part of bug #793308
      Adds a config.php option which lets users change their theme (for
      browsing) via a drop-down on the Settings page.  The allowed themes
      are the same set accessible to the user when the viewthemes option is
      availiable.  Any theme which is restricted to one or more institutions
      in its themeconfig.php file is not available in the drop-down unless
      the user is a member of one of those institutions.
      Change-Id: If6a7db9a4c160e16b38d22a074c128777968c4ca
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
    • Richard Mansfield's avatar
      Add support in User for theme preference · c1fda6fe
      Richard Mansfield authored
      Part of bug #793308
      If a user has the 'theme' property set in their account preferences,
      this is used instead of the site or institution's theme.
      The LiveUser::reset_institutions() function, which recalculates the
      institution theme, is now called in place of LiveUser::update_theme()
      whenever a user's institutions have changed.  reset_institutions() now
      calls update_theme() if the user is a LiveUser.
      Change-Id: I75b36da85a5aa249c3098078b8588b8a20ac9b48
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
    • Richard Mansfield's avatar
      Gather themename, logo & stylesheets together in User object · a9e7ef47
      Richard Mansfield authored
      The Theme constructor expects a triple (basename, logo, stylesheet),
      which is passed by the User::get_themedata function.  But the three
      properties are stored separately in the User object.  If they are
      grouped together, then it will be easier to switch themes in and out
      at a later date.
      The three properties are combined under the 'institutiontheme' name,
      to make it clear that they are defined by the user's institutions, and
      to distinguish them from the user's own theme preference.
      This requires a slight change to code for setting a view theme on view
      creation, where only the basename property is allowed, because custom
      themes with logos & stylesheets are not yet available as view themes.
      Change-Id: Ie400a0f1c4a2172382dfaba14139f1b0b27f2120
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
  7. 30 May, 2012 4 commits
  8. 29 May, 2012 3 commits
  9. 28 May, 2012 2 commits