1. 09 Sep, 2018 5 commits
    • Cecilia Vela Gurovic's avatar
      Bug 1790543: Portfolio instructions-Import/Export · 274bc533
      Cecilia Vela Gurovic authored
      - exporting instuctions field to html/leap2A
      - importing instructions from leap2A
      - fixing styles in collapsible instructions section
      
      behatnotneeded
      Change-Id: Ib9862cceefafac2e5d6a44f88516cd51c8f18962
      274bc533
    • Robert Lyon's avatar
      Bug 1784778: Fixing problems with peer assessment export/import · 8d5c020b
      Robert Lyon authored
      
      
      This should fix problems:
      1) Exporting signoff block to html now works (it puts content into
      block itself)
      2) Exporting / importing peer assessment block stops complaining about
      badly formed xml file
      
      behatnotneeded
      
      Change-Id: Ic1b0efd3fd89a3bd04516f97e1d3701198fffd2a
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      8d5c020b
    • Cecilia Vela Gurovic's avatar
      Bug 1790543: Display portfolio instructions · 5cedce1f
      Cecilia Vela Gurovic authored
      1) Add an 'instructions' field to view table via install / update.
      
      2) Add 'Instructions' textarea / wysiwyg field to view settings page and
      have it save to the database
      
      3) Move generic "This area shows a preview of what your page looks like.
      Changes are saved automatically. Drag blocks onto the page to add them.
      You can then also drag them around the page to change their position."
      text in edit page to the help icon and in it's place have an expandable
      area to display the saved 'instructions' message.
      
      4) On view display page have an expandable area to display the saved
      'instructions' message
      
      5) in view edit mode, collapsing/uncollapsing the Instruction section
      is remebered automatically for next time the view is edited
      
      behatnotneeded
      
      Change-Id: Ia56323b9b734b8ebe9498c54dce5a3b934d1fd29
      5cedce1f
    • Cecilia Vela Gurovic's avatar
      Bug 1784778: hide other blocks from a peer · 3ef35932
      Cecilia Vela Gurovic authored
      hide all blocks in a view when accessing as peer role
      but the view doesn't have a peer assessment block
      
      behatnotneeded
      
      Change-Id: I4e4c1d7d485db10b95a5188b95c6d9c33d06d464
      3ef35932
    • Robert Lyon's avatar
      Bug 1784778: Adding signoff feature to peer assessment plugin · 367a6c44
      Robert Lyon authored
      
      
      Includes:
      
      - Allow a blocktype plugin to add a <div> to the toolbar area of a
      viewed page.
      
      - Display the verify/signoff options that can be updated by the
      correct user.
      
      - Fixing some styles
      
      behatnotneeded
      
      Change-Id: I6d225a2f4a89aa586d0422770b07b55503f2904b
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      367a6c44
  2. 31 Aug, 2018 1 commit
  3. 16 Aug, 2018 1 commit
  4. 15 Aug, 2018 1 commit
  5. 14 Aug, 2018 1 commit
    • Rebecca Blundell's avatar
      Bug 1752743: replace php 7.2 deprecated functions · c6c6c295
      Rebecca Blundell authored
      replaced each() with foreach in core code.
      replaced create_function() with anonymous function in core code.
      
      Also removed some functions that were not used anymore
      
      behatnotneeded
      
      Change-Id: I300396a1ec04c75d7882b7ec5c9de76c3763e70d
      c6c6c295
  6. 09 Aug, 2018 3 commits
  7. 08 Aug, 2018 2 commits
    • Kevin Dibble's avatar
      Bug 1781844: Lock blocks on pages · 3e76e38e
      Kevin Dibble authored
      A lot of users in Mahara create (Template) pages to share out to users.
      This reduces the setup a new user will have to do to. There is an issue
      that on their personal copy, the blocks that were so carefully setup can
      be deleted.
      
      This functionality creates a new column in the database called
      "lockblocks" that can be enabled/disabled on the share page.
      
      When the user copies the page, this setting is copied over and the
      "delete" icon is hidden from view should the lockblocks setting be
      enabled. This only happens on normal portfolio pages.
      
      To unset - the user can edit the page settings and
      disable the lock blocks feature to enable the deletion of the blocks as
      per normal.
      
      behatnotneeded
      Change-Id: I7a2062f77431d6371f95d7f55bedcc499dd7caa2
      3e76e38e
    • Robert Lyon's avatar
      Bug 1785928: Update min upgrade version values · 14412ff7
      Robert Lyon authored
      
      
      behatnotneeded
      
      Change-Id: I8df12c5b2ec35a9c92231de8bfa90f1909af6afc
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      14412ff7
  8. 07 Aug, 2018 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1784781: adding peer & manager roles for user access to a view · 2ad167e5
      Cecilia Vela Gurovic authored
      - creating the role table
      - selecting the role when editing view access
      - fix: for already saved user and group access rules, show all roles
      in the dropdown to make it possible to change the value
      
      to do: display content depending on role
      
      behatnotneeded : will be added later
      
      Change-Id: Ie83e0ca84704182b40bcc2fa4a678da099a1793d
      2ad167e5
  9. 04 Jul, 2018 2 commits
  10. 01 Jul, 2018 1 commit
  11. 28 Jun, 2018 1 commit
  12. 27 Jun, 2018 1 commit
  13. 19 Jun, 2018 2 commits
  14. 20 May, 2018 1 commit
    • Robert Lyon's avatar
      Bug 1763163: record who has been given what page for one time copy · 1dcaef85
      Robert Lyon authored
      
      
      This changes the parent patch a bit. Instead of recording on the view
      table if a page is able to be copied to existing group members we
      insetad record in a new existing copy table if a group page/collection
      has been copied to a member and if not make the copy.
      
      We've also made the switch a slide switch, eg when switching it to
      'Yes' it does the task on save and then switches back to 'No'.
      
      This means at a later time if set to 'Yes' again it will do the copying
      again and give any newer members a copy of all pages/collections as
      well as give older members copies of any newer pages / collections /
      collection pages since the previous switching to 'No'
      
      Note: Currently adding new collection pages to older members will only
      add the pages as singular pages to their portfolio.
      
      behatnotneeded
      
      Change-Id: Ia22d8138d80ec5fdb5a401de7289b256f9e5fc69
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      1dcaef85
  15. 16 May, 2018 1 commit
    • Robert Scally's avatar
      Bug 1763163: Copy group portfolios automatically to existing group members · 01af3dab
      Robert Scally authored
      A portfolio shall be copied automatically to existing regular group 
      members, i.e. excluding group tutors and administrators, when
      setting up the sharing permissions for the portfolio and selecting the
      copying option in "Advanced options".
      
      When new people are added to the group, the portfolio is not automatically
      copied to their accounts as they were not in the group when the copying
      was turned on.
      
      behatnotneeded
      
      Change-Id: I5f706056e3c53f1edc8bcb86cfd41bad1df0185b
      01af3dab
  16. 26 Apr, 2018 1 commit
    • Nicolas Dunand's avatar
      Bug 1766833: increase maxlayoutrows · 4d812254
      Nicolas Dunand authored
      1. raises this limit to 20
      2. shows smaller preview rows for layouts having >= 60 rows
      
      behatnotneeded
      
      Change-Id: I4aabed614a6c2a649d62eca38f1f70e3a1bc7853
      4d812254
  17. 16 Apr, 2018 1 commit
  18. 20 Mar, 2018 1 commit
  19. 06 Mar, 2018 1 commit
  20. 04 Mar, 2018 1 commit
  21. 28 Dec, 2017 1 commit
  22. 21 Dec, 2017 1 commit
  23. 07 Dec, 2017 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1520028: Add portfolio links in TinyMCE link plugin · 13fc2089
      Cecilia Vela Gurovic authored
      Added a field in the 'link' plugin to add a
      URL to a selected personal page or collection. This is
      only available in a personal portfolio area, but not a
      group, site, or institution area.
      
      Removed from annotation.js duplicated function
      already defined in mahara.js
      
      behatnotneeded
      Change-Id: Iccf4c4ca08e142bfd77ab824217cbee5dc35a7bd
      13fc2089
  24. 28 Nov, 2017 1 commit
  25. 16 Nov, 2017 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1572825: added Voki html filter for embed code · 207889a5
      Cecilia Vela Gurovic authored
      Added new html custom filter to allow
      voki embed code with javascript tags.
      
      issue with the creation/edition of blocks:
      
      Voki embed code its a javascript code that loads
      js functions from a remote file and makes a call to a
      AC_Voki_Embed() function
      
      parameters:
      
      function AC_Voki_Embed (width, height, chsm, sc,
      transparent, bgcolor, returnFlag, playerType)
      
      The number of parameter makes the difference between
      old and new voki code. The old one will have only 7,
      the new one will have one more.
      
      The new embed code will have playerType = 1
      The function uses an XMLHttpRequest to obtain the
      new embed code. When we are loading the page,
      there is no problem. But when we are editing or
      creating the block, the the connection with the object
      gets lost and the embed code is never loaded.
      Solution found: reload the page after editing or adding
      a block with new voki code.
      
      The old voki code can have
      returnFlag = 1 will return a string with the code
      returnFlag = 0 will load the embed code in the page (by default)
      In this last case, after the function creates the embed code,
      it will call document.write('embed code')
      if we are loading a page with the embed code, we have no problem
      but if we have the page already loaded and we are editing the block
      or creating it, the document.write will replace all the html
      with the embed code.
      Solution found: change parameter of the function so it returns
      the code instead, then manually add it in the correct place
      of the html.
      
      behatnotneeded
      
      Change-Id: Ieed00b6c6887715b707b8123082a1312f3db1d9c
      207889a5
  26. 22 Sep, 2017 1 commit
  27. 14 Sep, 2017 1 commit
    • Robert Lyon's avatar
      Bug 1692385: Adjusting the handle event for 'updateviewaccess' · a3d904e1
      Robert Lyon authored
      
      
      We want to record things like so:
      
      resourceid = view_access.id
      resourcetype = what type the view_access row is for, eg 'token',
      'user', 'loggedin' etc
      parentresourceid = the id if the view the access is for
      parentresourcetype = 'view';
      ownerid = the id of the owning resource, eg usr.id / group.id / institution.name
      ownertype = what owns the resource, eg user / group / institution
      
      Also this patch adjusts how we index things into elasticsearch
      
      behatnotneeded
      
      Change-Id: I079a42ded2fefaab64a6e49fc26e8aad303c9e8a
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      a3d904e1
  28. 09 Sep, 2017 2 commits
    • Robert Lyon's avatar
      Bug 1697248: Update report navigation and reports · 8c08b88b
      Robert Lyon authored
      
      
      Introduce a new navigation bar to allow going through the different
      types of reports:
      
      - Change the page title according to the selected report section and
        report
      - Decide which columns to display in a report
      - Configure reports via the "Configure reports" button
      
      Add existing reports into the new interface.
      
      Create new and expand existing reports:
      
      - User activity
      - Page activity
      - Collaboration
      
      Sponsored by the AAIM project with funding from University of
      Sussex and Dublin City University.
      
      Change-Id: I1eb6920890af27c34c902fe22ff5ce3591b73cb0
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      8c08b88b
    • Robert Lyon's avatar
      Bug 1692385: Adjusting the event_log table · ebd928b1
      Robert Lyon authored
      
      
      Add 5 new new columns to event_log table make searching over the
      data easier and also record the id of any parent/related info as well
      
      Eg, if one deletes an image block from a page we now record:
      id - the event id
      resourceid - the block id
      resourcetype - the blocktype, eg image
      parentresourceid - the id of the parent, eg view id
      parentresourcetype - the type of parent, eg 'view'
      
      Because we would not be able to find related view info from just the
      block id anymore.
      
      Also added the ability to index and search over event information in
      elasticsearch search type event_log
      
      Change-Id: I280c1c75c35a6c58f42d8acb36cf5c24c70b902d
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      ebd928b1
  29. 04 Sep, 2017 1 commit
  30. 29 Aug, 2017 1 commit