1. 25 Sep, 2012 1 commit
    • Hugh Davenport's avatar
      Add option to disable device detection · 109eb4a5
      Hugh Davenport authored
      
      
      Also add a few theme changes that allow some more
      features on small devices.
      - Printing links
      - Settings link in top right corner
      - Create/copy page/collection link
      - Edit/delete buttons
      - Remove group members button
      - Help icons
      - Administration link
      
      Also made the admin link show in full
      
      The items that are disabled when device detection is on
      and user is on a mobile device are:
      - TinyMCE editor
      - Adding new blocks to pages, this is now a non-js version
      - Dropdown menu's
      - Export functionality
      
      Bug #1052060
      
      Change-Id: I5a8fe3cf136bb0c3e76e50a2b3bc48179c675b6a
      Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
      109eb4a5
  2. 06 Sep, 2012 1 commit
  3. 03 Sep, 2012 1 commit
  4. 30 Aug, 2012 2 commits
  5. 29 Aug, 2012 2 commits
  6. 16 Aug, 2012 1 commit
  7. 31 Jul, 2012 1 commit
  8. 24 Jul, 2012 1 commit
  9. 13 Jul, 2012 1 commit
  10. 05 Jul, 2012 1 commit
  11. 03 Jul, 2012 1 commit
    • Son Nguyen's avatar
      Enable collections in groups and institutions (Bug #886080) · 86d8cc21
      Son Nguyen authored
      
      
      1. For group collections
      Only roles that can edit group pages can do these:
      - Listing group collections
      - Creating a new group collection
      - Deleting and editing an selected group collection.
      - Copying a collection
      2. For institution collections
      Only institution admins can:
      - Listing insitution collections
      - Creating a new institution collection
      - Deleting and editing an selected institution collection.
      - Copying a collection
      
      Change-Id: I799bcfaf0f751d1a8c1fa9b5e5df4832832d8ea1
      Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
      86d8cc21
  12. 02 Jul, 2012 1 commit
  13. 29 Jun, 2012 2 commits
  14. 18 Jun, 2012 4 commits
  15. 12 Jun, 2012 1 commit
  16. 08 Jun, 2012 1 commit
    • Richard Mansfield's avatar
      Use profile_url when data is easy or inexpensive to fetch · 0d28fabc
      Richard Mansfield authored
      
      
      Bug #1006634, part 3
      
      In many places user urlids are not currently available when the
      profile url is generated, but it is trivial to get it, and then change
      the user/view.php url to a profile_url call:
      
      - Admin page access report
      - Profile links in feedback lists
      - My friends block
      - Wall posts
      - Group members block
      - Group members tab
      - Recent forum posts block
      - Group admin lists on forums page
      - Group admin lists on my groups, find groups
      - Group admin lists in group info block
      - Profile sideblock
      - My friends & find friends pages
      - Institution landing page
      - Online users page
      
      Change-Id: I33e122896982037a887aad8e3362db450e123e3f
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      0d28fabc
  17. 07 Jun, 2012 1 commit
  18. 01 Jun, 2012 2 commits
  19. 31 May, 2012 1 commit
    • 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>
      a9e7ef47
  20. 30 May, 2012 1 commit
  21. 24 May, 2012 1 commit
  22. 18 May, 2012 1 commit
    • Son Nguyen's avatar
      Be flexible in the number to results shown on a page Bug#781989 · f3162f80
      Son Nguyen authored
      
      
      1. Added a new feature to build_pagination:
       - setlimit: enable=true/disable=false choosing limit values
       from the array limitoptions
       - the array limitoptions (page sizes) has been hardcoded
      inside build_pagination function.
      
      2. Enable this feature to group member search and porfolio pages search
      Note: The default number of pages in Porfolio/Pages has been changed to
      20
      
      To enable this feature
      1. pass 'setlimit' => true to build_pagination function
      2. $js = "addLoadEvent(function() {p = {$pagination['javascript']}});";
      3. $smarty->assign('INLINEJAVASCRIPT', $js);
      
      Change-Id: Ib44b28d50895c6ea604bb1aedaebae3a3f1bfc1a
      Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
      f3162f80
  23. 14 May, 2012 2 commits
  24. 09 May, 2012 1 commit
  25. 12 Apr, 2012 2 commits
    • Richard Mansfield's avatar
      Admin page to manage SafeIframe sites (bug #971282) · f3182dd6
      Richard Mansfield authored
      
      
      Adds a new page for Site admins to manage the list of sites for which
      iframes are allowed by htmlpurifier.  Whenever an item is added,
      edited, or deleted, the regex used by HTMLPurifier is updated.  Sites
      are identified by favicon, and by a string entered by the Admin to be
      used as the alt/title text for the favicon image.  The source of the
      favicon image can be modified in config.php, but the google service is
      used by default.
      
      Change-Id: I4117de82691a002bf250ea71622eccfad4d5f8df
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      f3182dd6
    • Richard Mansfield's avatar
      Move the list of safe iframe sources to the database (bug #971282) · 4b8c5170
      Richard Mansfield authored
      
      
      Builds the htmlpurifier safe iframe regexp from a list of sites stored
      in the database, instead of a hardcoded array.
      
      Each site in the safe iframe list is associated with a name.  This
      will allow several regexp items to be grouped together under the same
      name when they're matching urls from the same site.
      
      Additionally, the domain part of each site is stored in a second list
      along with the names, so that it will be easy to fetch the favicon for
      display in places such as the external media block configuration form.
      
      Change-Id: I7fd2bfefbff0881e70b94beb9e8d3efb43f0f9e7
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      4b8c5170
  26. 28 Mar, 2012 1 commit
  27. 21 Feb, 2012 2 commits
  28. 13 Feb, 2012 1 commit
    • Richard Mansfield's avatar
      Get unread message count from user table (bug #854403) · 60167828
      Richard Mansfield authored
      
      
      Also keeps the count in the $USER object up to date whenever the
      user deletes or reads a notification.
      
      When new notifications are generated for a live user by another user,
      or on cron, the logged-in user's unread count is reloaded from the
      database into the session either on hitting the inbox, or whenever
      $USER is committed for some other reason.
      
      The code to reload the background fields on commit of the LiveUser
      object has been changed to ensure that it still works at upgrade time,
      where the 'reload' column doesn't exist in the user table yet, but
      *does* exist in the User object.
      
      Change-Id: I9c9a81bf77d0927352902dee0d989d6122757b47
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      60167828
  29. 10 Feb, 2012 1 commit
  30. 07 Feb, 2012 1 commit