1. 19 Oct, 2019 1 commit
    • Evonne's avatar
      Bug 1845104 Modern theme changes · 1d1bb649
      Evonne authored
      - removed redundant styles
      - reconvert files to make macros work on windows (has to do with woff)
      - put necessary changes back into raw
      - put in OFL file for font Raleway
      Change-Id: If1a3eb4bfba86ec18f3f0e38104b79e6642048d0
  2. 09 Oct, 2019 4 commits
  3. 08 Oct, 2019 2 commits
    • Rebecca Blundell's avatar
      Bug 1840112: Tinymce - spellchecker changes · d4df7fb8
      Rebecca Blundell authored
      Add optional plugin for non-browser based spellchecker
      as set in $CFG->spellcheckerengine
      Change-Id: I14e567fda9fd5ab5d751917e9cbbe4e4b065ba9a
    • Rebecca Blundell's avatar
      Bug 1840112: update tinymce library to 5 · ada3e2cd
      Rebecca Blundell authored
      Replaced tinymce 4 files with tinymce 5
      Moved from unsupported 'light' skin to new 'oxide' skin included with v5.0
      Default theme has been changed from 'modern' to 'silver'
      Changes to tooltoggle plugin to work with new version
      Updated behat steps for change in class names
      Styling changes
      Change-Id: I731962f8c522358034178528846aa0c35187d74a
  4. 07 Oct, 2019 9 commits
  5. 06 Oct, 2019 5 commits
    • Robert Lyon's avatar
      Bug 1835869: Remove obsolete skin options · 0e0ef413
      Robert Lyon authored
      The old options to be removed are:
      - header_text_font_color
      - header_link_normal_color
      - header_link_normal_underline
      - header_link_hover_color
      - header_link_hover_underline
      - header_logo_image
      - view_background_color
      - view_background_image
      - view_background_repeat
      - view_background_attachment
      - view_background_position
      - view_background_width
      - view_table_border_color
      - view_table_header_color
      - view_table_header_text_color
      - view_table_odd_row_color
      - view_table_even_row_color
      - view_button_normal_color
      - view_button_hover_color
      - view_button_text_color
      Change-Id: I909e7bcb4f559d9cd052cf4c7b2b80982ecf109c
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
    • Doris Tam's avatar
      Bug 1835869: Add skin background image to page header area · ad7250b7
      Doris Tam authored
      - Created an option in Skin customizing where users may select an image
        as their page header
      - Reorganised tabs and their titles
      - Skin thumbnails display colour/image of header
      - drop the old viewbgimg column and add the headingbgimg column
      behatnotneeded: to be added later
      Change-Id: Ib5bb4714de479e9c10237d24aa653a5ea227a5f7
    • Evonne's avatar
      Bug 1845273 Rejig CSS for wall posts · 4b545041
      Evonne authored
      Removed double <h1>. Changed the markup to reflect a list-group
      so it aligns with comments. Clean up styles.
      Change-Id: I4920fa2c99ea057401128b4c126004345f6cc56a
    • Kristina Hoeppner's avatar
      Bug 1846915: Small language string fixes · af100551
      Kristina Hoeppner authored
      Made small changes for newly added or changed language strings
      for consistency and readability.
      Change-Id: I6080927725d08951137f15c7dece9147a1352b39
    • Robert Lyon's avatar
      Bug 1843202: Allow theme fonts to be included in skin_fonts table · d61b9487
      Robert Lyon authored
      So that they can be
      - used in skins
      - viewed on the Admin -> Config -> Fonts page
      Change-Id: I49aff91a7f56a003adbc9f3513aa9a094a3069e4
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
  6. 05 Oct, 2019 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Tidying up some lastminute problems · fa4085d5
      Cecilia Vela Gurovic authored
      - allow add block button to drop only inside the grid
      - navigation block in collection to copy to other pages
      - Smart evidence annotation feedback forms init tinymce
      - showing the peer can see content message again
      - allow copying of page with old layout
      Change-Id: I3f552ce8f89125e9fd233513c855879aa7678048
  7. 04 Oct, 2019 18 commits
    • Chanil Park's avatar
      Avoid progress bar overlapping border · 37637197
      Chanil Park authored
      - Remove export progress bar's scrollbar
      - Remove progress_meter overlap and have bar same height as export
      progress bar
      Change-Id: Ife0d77e0388d86c010838af49577622d6f6a30ca
    • Aaron Wells's avatar
      Bug 1560778: Modal window for institution auth config · 3c396f54
      Aaron Wells authored
      Have rebased this and got it working by removing old mochikit stuff
      Change-Id: Id4bbd0d08d6b743fdec426f27e41a2fbb9857651
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: checking old layout tables exists before using them · 279c2d49
      Cecilia Vela Gurovic authored
      - when deleting an institution
      - added a function to simulate the content of
      view_layout_column table that was deleted.
      This is needed when importing a portfolio with
      old layout
      - removed function addcustomlayout and some
      other code not used anymore
      - removed function get_layoutrows that was used
      when editing old layouts
      Change-Id: Ibebf50103bf1811894e75a21a668c4700283e703
    • Cecilia Vela Gurovic's avatar
      Bug 1827445: db_table_exists alternative without changing SQL exceptions · fb37ef6e
      Cecilia Vela Gurovic authored
      and the same for db_column_exists
      Change-Id: Id69e285b39aff1dca7edbbf16847c3b7a436baa5
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: removing layout tables from install · 24e838cf
      Cecilia Vela Gurovic authored
      - removing
      Change-Id: Ic53029dfc33b6366c38750d1453cbb64fd9c317e
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Behat - block creation · 9cf3d8eb
      Cecilia Vela Gurovic authored
      - Data generator creates blocks for new gridstack layout
      - we don't look for nodes inside script elements
      Change-Id: I0e791c431ab6b80e75ae397290a20b3ec9fba836
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Blocks display fixes · ccc2446d
      Cecilia Vela Gurovic authored
      - assessment block: tinymce and the asseesment js
      need to be initialized after the block is loaded
      - signoff block: sing-off modal is showing now
      - embedded media init functions need to be loaded after
      the blocks are added to the grid
      - wall post block initializes the tinyMCE after it's loaded
      and refreshes the content of the block after a new post is made
      - comment block: update block size when adding a comment
      - scrolling to the block when a new one is added
      - modified the text for button to add a new block to the page
        'Drag to add a new block' for normal mode
        'Click to add a new block' for accessibility mode
      - add a block to the bottom of the page by default so it won't
      break the layout
      - add SE annotation to the bottom of the page
      - added 'Add block' button event handlers after trnaslating a view
      - annotation feedback loads the tinyMCE
      Change-Id: I7642cacde729a2a85b497e077452de792ec72eb7
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Accessibility settings and layout · 25082988
      Cecilia Vela Gurovic authored
      - Added an option to set the profile to accessible.
      This can be set in account preferences and
      enables one extra field in the settings
      of a view, in the basic settings section, to make
      the layout accessible.
      - by default, if the user account is accessible then
      the pages will be crated as accessible.
      To have a non accessible page, the option un view settings
      needs to be set as 'No'
      - Accessible layout only allows to add blocks with width=12
      that is the same with of the grid.
      This makes the blocks show as a sequence one on top of the other
      like a list. The user can only reorder the position
      they have in the list.
      - When a page is accessible, the adding a block
      by drag & drop is disabled
      - Reordering of blocks is accessible by keyborad
      - The 'add block' button is reachable by keyboard
      - add an intro to the page for the screen reader
      to explain how the page works
      - add identification to each block for screen reader,
      blocktype and title (if it’s set)
      * When adding a block to the bottom or the top of the page,
      the page should be scrolled to that block
      * Floating menu: should have a way to be recognized as a menu
      by the screen reader. Check the access keys for the menu.
      Change-Id: I08417f0f11d747a67900c88c2f675ef5f85b7499
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: User should confirm before the view is translated · 69916a3d
      Cecilia Vela Gurovic authored
      there is an account preference we can set for showing
      a warning message before translating the layout of an old view.
      By default it's true. It can be set to false in the account preferences
      or by selecting the option when the message is displayed.
      if this preference is set to
      true: if we want to edit a view with old layout,
      a message will be displayed to confirm we want to translate the layout.
      false: The view gets translated on edit without asking the user.
      The message has the options to accept, cancel  or don't ask again.
      cancel: redirects to the displayed view
      don't ask again: sets account preference to false but can be reverted
      in account preferences.
      accept: will redirect to the view edit page with a parameter
      saying the user accepted the translation
      Change-Id: I84e1a86d3bb494a1955da9cbfbde996b555bb132
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Importing views with grid layout · af08a138
      Cecilia Vela Gurovic authored
      Importing views and collection with new grid layout
      - leap2A files containing views/collections with
      new grid layout are imported and created with the new layout
      - leap2A files containing collections/view with old layout
      will be created with a grid layout. This new layout is
      the translation of the old layout they had in the leap2A file.
      The heights of the blocks will be updated when the
      views are first displayed in the browser.
      Change-Id: Ia43b7a5c11109023d3caa65ba16e3b6aebcdbe75
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Exporting views with grid layout · b6cd876f
      Cecilia Vela Gurovic authored
      In exporting section:
      - Show preview of page both for old layout pages and
      new grid layout
      - Export views and collections with new grid layout
      in html
      - Export views and collections with new grid layout
      in leap2A
      - views with old layout are exported as before
      borrow some code from https://reviews.mahara.org/#/c/10157/
      as an early rebase (the patch is not on master yet)
      Change-Id: I0c36c110c6b9ef7ae3edc4d0662a0dbab302684a
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Make view versioning work with gridstack · 7b17b833
      Cecilia Vela Gurovic authored
      - Only allow to create a new version if the view
      is using new gridstack layout.
      In timeline version section:
      - For view versions that were created with old layout,
      show them as they are
      (we dont translate old view versions to new layout)
      - For view versions that are created with new grid layout,
      they are also displayed in the timeline view with the new grid
      Change-Id: I1abdae9e5e547dcc9bce97cac127085786dcac8a
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Copying a page (in old or new layout) creates a page with new layout · f342e41b
      Cecilia Vela Gurovic authored
      - Copy a page when original view is using
      grid layout
      - Copy a page when original view is using
      old layout: Translates the original page layout
      without modifying it,
      and creates a new page with new grid layout
      The blocks in the new page will not have height
      assigned. The height of the blocks is updated
      on first load of the page in the browser.
      This can happen when editing the page or displaying it.
      - Copy a collection with old layout: creates the new collection
      with new grid layout pages. Each page needs to be loaded on the
      browser to update the block heights
      Change-Id: I43b5f9050be192c057cb1803dcd69575c137a9cc
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Translate old views to new gridstack layout on edit · 32de0b18
      Cecilia Vela Gurovic authored
      Old layout pages will be displayed as they were
      with the old layout.
      New pages are created with the new grid layout.
      If we try to edit a page with an old layout,
      the page will be translated into the new grid layout.
      To translate from an old layout to a new grid layout,
      we respect the row, column and order of blocks inside each cell.
      All blocks in the same row in old layout will be together
      in the new layout, and the first block of each column
      of the same row are displayed at the same level to each other
      in the new layout.
      The blocks will respect the column order
      they had in the old layout.
      A column of the old layout can have many blocks. In the
      new grid layout they respect the same order they had.
      As we have 12 columns in the new grid layout,
      the blocks that where included in a 5 column row,
      will be displayed in smaller columns in the new layout.
      confirmation before trnaslating a page to the new grid layout
      Change-Id: I46f5cdbacb026519631503437c10d33f1b2800e5
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Making magic block work with gridstack layout · 66c08ce0
      Cecilia Vela Gurovic authored
      In view edit mode, dragging the button '+' on the
      right top menu, will add a block in the page
      with dimensions height=3 and width=4
      Change-Id: I5f4334886f6685bd047cb5bfbf0d59dd3880109a
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: Upgrade to translate site views to new layout · 15bca1e7
      Cecilia Vela Gurovic authored
      Change-Id: Ia4f1fa57d317bc2ab81db4b4e41147e06ecc14f6
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: create a block- fixing the saving of a new block · 0772a240
      Cecilia Vela Gurovic authored
      Change-Id: Ib20121937f6b7c64df65a620acbca93dd683d18f
    • Cecilia Vela Gurovic's avatar
      Bug 1813987: block resizing to fit content · 565776fb
      Cecilia Vela Gurovic authored
      should not resize blocks in view mode
      in view mode, if the content of the block is static,
      then the block dimensions should not change but the
      content of the block should be made smaller
      expand the height of a block only if the content is dynamic,
      like the 'Journal' block
      Change-Id: Ie8183736580e7e592b24e36f4a16618b96a5bf4e