1. 25 Sep, 2019 1 commit
    • Lisa Seeto's avatar
      Bug 1827811: Move "Add comment" and "Details" into modal with "Comments" · be7af61f
      Lisa Seeto authored
      create modal using configureblock id, update various templates to use the modal for blocks:
      Image
      Note
      File(s) to download
      Journal/blogs
      add JS to open/close modal, add comments, delete comments, reply to comments, paginate comments.
      add JS to handle url that redirects to view/view.php with modal open and populated.
      Further changes to each block will be completed in child patches.
      Add segment headings to the modal. Fix display of comments to cover width of modal.
      Show comment removed msg in modal/page appropriately.
      Fix behat test to close modal before continuing.
      do not show existing comments if comments not allowed on artefact.
      add validation to modal for comments/attachments
      disable image as link when editing for image block
      trigger focus on modal for accessibility
      close modal on escape keydown event
      fix merge conflict in view/view.php
      fix merge conflict with master
      make configureblock modal play nicely when comment block is on the page
      update display of error messages to always show at top of modal so user doesn't have to scroll
      add accesibility to close modal on escape key down
      handle dock show/hide events for paginated pages in modal during validation
      create block-comments-details-header template file
      create details button and custom scss file with js to show and hide header
      update comment links to save add comment and details when commentcount == 0
      add active-block class to colour the block-header when active
      toggle the details-btn active css
      add _block-comments-details-header.scss to patch
      change class invisble to class d-none
      add block-comments-details-header.tpl to blocktypecontainerviewing.tpl
      code review changes
      add .no-modal class to links on group home page, dashboard and profile page.
      add block header to appear above the title
      change assessbtn from anchor tag to button to prevent scrolling.
      make all clickable links clickable on page load (ignore assess mode)
      fix js issues surrounding assessbtn move and show/hide blocks
      change cursor on dashboard, my profile page, group homepage to default when over disabled modal links
      update assessbtn to details btn
      create tooltip for hover over file download block titles
      fix containerElm console log error by not reattaching tinymce unneccessarily.
      fix null named attributes issues on e.target when span (icons) instead of anchor is clicked.
      
      Change-Id: I2e5218c040f8a9e252f785165ce9c566ecc2f56e
      Signed-off-by: default avatarLisa Seeto <lisaseeto@catalyst.net.nz>
      be7af61f
  2. 19 Sep, 2019 1 commit
  3. 12 Aug, 2019 1 commit
  4. 09 Jul, 2019 1 commit
    • Rebecca Blundell's avatar
      Bug 1811904: Fontawesome - final name changes · c3479dc6
      Rebecca Blundell authored
      icon-clipboard      -> icon-clipboard-check
      icon-eye            -> icon-regular icon-eye
      icon-eye-slash      -> icon-regular icon-eye-slash
      icon-file-archive-o -> icon-regular
      icon-comments-o     -> icon-comments
      icon-external-link  -> icon-external-link-alt
      icon-tachometer     -> icon-tachometer-alt
      icon-rotate-right   -> icon-redo
      icon-file-archive-o -> icon-file-archive
      icon-comments-o     -> icon-comments
      icon-send           -> icon-paper-plane
      icon-lightbulb-o    -> icon-regular icon-lightbulb
      icon-code-fork      -> icon-code-branch  - changed versioning to
      'history' icon
      icon-file-o         -> icon-regular icon-file
      
      also changed some icons to new ones
      used text-align, width and margin-right to centre list items.
      
      behatnotneeded
      
      Change-Id: I4d27e450a281dc49716d97de309a3c99b89a0bc1
      c3479dc6
  5. 25 Jun, 2019 1 commit
    • Rebecca Blundell's avatar
      Bug 1811904: Fontawesome - Name changes · 7b952964
      Rebecca Blundell authored
      new default for fontawesome is 'solid',
      where we are using a different class (regular or brand),
      we need to add these.
      
      also confirming that where the icon name has changed, we've
      picked that up.
      
      Where there's a choice of icon, I've kept it as close to what we
      currently have as possible.
      All free icons can be seen here:
      https://fontawesome.com/icons?d=gallery&m=free
      
      Name changes:
      icon-trash-alt      -> icon-trash
      icon-pencil         -> icon-pencil-alt
      icon-unlock-alt     -> icon-unlock
      icon-files-o        -> icon-regular icon-copy
      icon-pencil-square  -> icon-regular icon-edit
      icon-file-text      -> icon-file-alt || icon-regular icon-file-alt
      icon-image          -> icon-regular icon-image
      
      behatnotneeded
      
      Change-Id: I34646a6857f6cf54dc39572f5a66c07da4f4c0e2
      7b952964
  6. 14 Jun, 2019 1 commit
  7. 30 Apr, 2019 1 commit
  8. 29 Apr, 2019 2 commits
  9. 19 Mar, 2019 1 commit
  10. 26 Feb, 2019 3 commits
  11. 12 Feb, 2019 1 commit
  12. 19 Dec, 2018 1 commit
  13. 22 Nov, 2018 1 commit
  14. 30 Sep, 2018 1 commit
  15. 02 May, 2018 1 commit
  16. 08 Mar, 2018 1 commit
  17. 02 Mar, 2018 1 commit
    • Robert Lyon's avatar
      Bug 1443284: Allow an unsubscribe link for watchlist emails · 17131a35
      Robert Lyon authored
      This patch:
      - adds an 'unsubscribetoken' column to usr_watchlist_view table
       (if we want to unsubscribe other messages we'd need to add an
      'unsubscribetoken' to the relevant table)
      - records the token when one watches the view
      - sends email with unsubscribe link with message type and token to
      avoid exposing any user data
      - link goes to unsubscribe.php page and either unsubscribes user or
      gives generic warning
      
      Currently only working for watchlist notifications being sent via
      email/email digest
      
      Change-Id: I823249108f521faaefe3435f03b84ddf73e2d360
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      17131a35
  18. 25 Sep, 2017 1 commit
  19. 15 May, 2017 1 commit
  20. 29 Mar, 2017 2 commits
  21. 23 Nov, 2016 1 commit
  22. 03 Nov, 2016 1 commit
  23. 19 Sep, 2016 1 commit
  24. 15 Jul, 2016 1 commit
  25. 10 Jun, 2016 1 commit
  26. 26 May, 2016 1 commit
  27. 18 May, 2016 1 commit
  28. 27 Apr, 2016 1 commit
  29. 29 Mar, 2016 1 commit
    • Robert Lyon's avatar
      Bug 1316917: New approach to star rating using bootstrap glyphs · d1bf622a
      Robert Lyon authored
      This is a slimmer / stripped down system for doing jquery ratings.
      
      Instead of relying on styling radio buttons it relies on bootstrap
      glyphs and a hidden input field.
      
      The code is also controlled by a pieform element
      
      See lib/form/elements/ratings.php for more info about that part
      
      It also has some new settings in the Extensions -> artefact -> comment
      config form. They include settign the colour for the star icon, or
      using a different icon, eg hearts/thumbs up, and the number of ratings
      to show (3 - 12)
      
      behatnotneeded
      
      Change-Id: Ibf529efcb9a665c9f303242ed12d0c7b3dee2356
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      d1bf622a
  30. 16 Mar, 2016 1 commit
  31. 24 Feb, 2016 1 commit
    • RafGDev's avatar
      Bug 1536439 Show timelapse for comments if they are less than 1 day old · 4241b640
      RafGDev authored
      Adding a format_timelapse(timestamp1, timestamp2) function to return a
      human readable time difference if the difference is less than a day,
      eg 3 hours and 1 min ago to give visual cue that the item was
      made/updated very recently.
      
      behatnotneeded
      
      Change-Id: I426d10da9ebc7ef1a5b464146fca386f19977579
      4241b640
  32. 16 Dec, 2015 2 commits
  33. 09 Dec, 2015 1 commit
  34. 22 Oct, 2015 2 commits
    • Aaron Wells's avatar
      Sometimes $this->users is boolean false, not an array · baabb7e5
      Aaron Wells authored
      Bug 1509129
      
      Change-Id: I68e2731306ab231aa8f1421e12dc641184e5999b
      baabb7e5
    • Son Nguyen's avatar
      Handle embedded image deletion better. Bug 1489284 · 740c0fa7
      Son Nguyen authored
      Refactor updating embedded images
      
      Deals with the deleting of embedded images in a:
      - blog
      - forum post
      - forum topic
      - group description
      - note
      - page description
      
      Also sorts out the problem where a note embedded item can be saved
      with both 'editnote' and 'textbox' resourcetype. We only need one.
      
      Also add 'static' to EmbeddedImage::methods()
      
      behatnotneeded
      
      Change-Id: Ife1f9dee5ffe9eae4468eadb8f46a16a0a2a9044
      740c0fa7