- 08 Jun, 2012 17 commits
-
-
Richard Mansfield authored
Bug #1006634, part 3 Replaces existing group/view.php urls with calls to group_homepage_url, in a bunch of places where only a minor change is required to fetch the urlid property, and where it is clear it will have little impact on performance: - My groups block - Cancel button on group delete - Redirects after joining a group or inviting a user - Group tab of the admin stats area - My groups section of the profile sideblock - Redirect after submitting a view Change-Id: I0ab970bdc4aaefe9fb912f9e530ebe1684aed011 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Bug #1006634, part 3 Replaces a bunch of hardcoded group/view.php urls with calls to group_homepage_url, in a few cases where it is obvious that the urlid property is already part of the group object available at that point. Change-Id: I7475d378d406a55e30c597442117dfbe58ffdc00 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Gerrit Code Review authored
-
Richard Mansfield authored
The returnto parameter is ignored in the form's submit function group_view_submission_form_submit (this form used to appear on My Views, and needed to remember where to redirect to). Change-Id: I671e4f78a294b68fe88c8ee1a04619bb24672171 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Melissa Draper authored
-
Richard Mansfield authored
Bug #1006634, part 3 Adds a new function to generate a group homepage url from a group object, and uses this function instead of a hardcoded url in the group lists on Find Groups and My Groups. Change-Id: I325998b762dde6880678df556f0f200a6d72bf4d Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Melissa Draper authored
-
Richard Mansfield authored
-
- 07 Jun, 2012 2 commits
-
-
Richard Mansfield authored
-
Kristina Hoeppner authored
and change "Allows submissions" to "Allow submissions" on the group edit screen but still leave it as "Allows submissions on My / Find groups. Change-Id: Iaf8b1f2dbe64726257fa88186681337f0c405c68 Signed-off-by:
Kristina D.C. Hoeppner <kristina@catalyst.net.nz>
-
- 06 Jun, 2012 2 commits
-
-
Richard Mansfield authored
* changes: Preserve registration 'extra' values during approval (bug #1001064) Don't write logged out user preferences to the db (bug #1001064) Add local hooks for registration and user initialisation (bug #1001064)
-
Richard Mansfield authored
* changes: Add config option to allow users to change their theme Add support in User for theme preference Gather themename, logo & stylesheets together in User object
-
- 05 Jun, 2012 3 commits
-
-
Richard Mansfield authored
-
Melissa Draper authored
While commit 0af8ce9e makes it so new copied journals etc shouldn't get lost, there are accounts that had copied journals from before commit 5e07db54 went into effect, and are now hence hidden. This new commit works around that so that the option to enable multiblogs is visible if it is somehow disabled for someone with multiple journals, rather than just being ignored for everyone with multiple journals. A discreet notice has been placed on /artefact/blog/view/ so that the user knows. Change-Id: I6d65aa934d3f3368083e55b21a30fb00d5a0c132
-
Richard Mansfield authored
-
- 01 Jun, 2012 10 commits
-
-
Richard Mansfield authored
Once upon a time, the group listings displayed three members of every group, but that is no longer true. Change-Id: I581ca12e73f8a7020142c42b37aa83682f920517 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Bug #1006634, part 2 Reads new query parameters on user/view.php, group/view.php, and view/view.php, which are expected to contain valid urlid values, and finds the appropriate view based on these instead of an id. Change-Id: I6bff25311afb3c80bdd2c4f1f2d736b92434a92a Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Bug #1006634, part 1 Allows users to edit the user, group, and portfolio page urlid fields. Profile page urls are editable on the account settings page, group homepage urls on the edit group page, and portfolio page urls under Edit Title and Description in the view editor. Change-Id: I2804d356fab54448f31258597a93d0808216ba17 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
In some cases, it's useful to put explanatory text or html before a pieform element, but after the label. A 'prehtml' field is added to the pieform renderers to achieve this. This will be useful, for example, when the user is able to edit the very last portion of a url, but not the full url. The initial, uneditable part can be displayed before the textbox, so that the user is aware of the context for the field they're editing. Change-Id: I721513ae7022401e959c5f8cddd9b45d9704a8b1 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Bug #1006634, part 1 Clean urls can be enabled at any time. Initialisation for existing users should not be tied to a site upgrade, because it is slow, and most sites won't ever enable it. Instead, add an admin page with a button to regenerate all clean urls based on existing usernames, group names, and page titles. Change-Id: Id8bae56a6500b1b0038fc20aacadf4817e6e922a Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
When generating new clean urls, transliteration of utf8 characters works better when the locale is set appropriately, so it will be useful to be able to change locales without having to change the current language. Change-Id: Ife9e65661dc582cb830a20c73cecd6942d28d62c Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Bug #1006634, part 1 Whenever a new user, group, or portfolio page is created and clean urls are enabled, ensure the urlid field is set to something vaguely sensible. Ensure new user and group urlids are unique, and ensure new view urlids are unique for the owner. Change-Id: I2033f5aa1f32650b4fc72666c54c371d05df133c Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Bug #1006634, part 1 Given a string possibly containing characters that are invalid in a clean url, return a new string, of the allowed length, containing only valid clean url characters. If converting utf8 to ascii, transliterate using the iconv function. Change-Id: I3dfc505e2be327fb103c4ea59d60082fe3358f0c Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Change-Id: Ie2cc733185c0f542ff467c9dc1c173587921129d Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Bug #1006634, part 1 These columns will hold the portions of a full page url which relate to users, groups, and views respectively. Change-Id: I50e19f822ef2b8e2f0116db81f27cb4d3bb1bd53 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 31 May, 2012 3 commits
-
-
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:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
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:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
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:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 30 May, 2012 3 commits
-
-
Richard Mansfield authored
-
Son Nguyen authored
Add number of forums, topics and posts associated to a group Change-Id: I0928bff2113471084a80b1c04ec321293cb08b82 Signed-off-by:
Son Nguyen <son.nguyen@catalyst.net.nz>
-
Hugh Davenport authored
-