1. 01 Mar, 2021 1 commit
    • Gold's avatar
      Bug 1916833 - Annotation can be updated on a page · 690edccd
      Gold authored
      Config gear icon removed from the Annotation blocks.
      In order to still initially create these when added we needed to check
      if the Block was a new instance or not. To achieve that we are now
      passing the block instance into the has_instance_config() method.
      
      BlockInstance has been extended and will set a 'new' parameter if the ID
      in the constructor is 0.
      
      AuthPlugin* classes also have the has_instance_config(). These do not
      need the BlockInstance passed in.
      
      Change-Id: Ifac69fc1d48b45c079b6f66e610776cead3dee63
      690edccd
  2. 07 Dec, 2020 1 commit
  3. 07 May, 2020 1 commit
  4. 25 Mar, 2020 1 commit
  5. 26 Sep, 2019 1 commit
    • Evonne's avatar
      Bug 1827811: Journal and resume details buttons overlap · f5ca6b3a
      Evonne authored
      Fixes for journal titles and resume attachments for employment
      overlapped by details button.
      
      behatnotneeded
      
      - clean up unneccessary include in export/html/lib.php
      - fix html export for the creation of nested folder modals
       make sure the nested folders and find all nested modals
      - fix elseif typo in block-comments-details-header.tpl
      - add details bar to image gallery when displayed from folders
      - fix notes block empty modal issue due to .tpl typo
      - fix image gallery slideshow error where second gallery block
      always targets the first
      - keep the active block headers showing after pagination update
      
      Change-Id: Icf8d59ad558d74883e3ee2070f55768697af4254
      f5ca6b3a
  6. 25 Sep, 2019 2 commits
    • Lisa Seeto's avatar
      Bug 1827811: Resume Icons · 953a5eab
      Lisa Seeto authored
      
      
      - get attachment comment counts for bh icons
      - display plain text for titles in editing mode
      - change the way the commentlink is targetted via js
      - add blockid's to resume attachments
      - for folder block: add comment count, change titles from
      	links to plain text when editing
      - change notes attachment file titles from links to plain
      	text when editing
      - get rid of the single artefact block title links for html exports
      ---------------------------------------------------------
      Add fixes:
      - blocks that have set types but no artefacts attached don't have modal links
      - pdf block is now using block header and comment count is loaded
      - block headers are above titles
      - tagged journals have icons when in full and matches recent posts styling
      - deleting all comments produces correct icon on block header
      - html exports should not hang on opening modal
      - get rid of warning error re: dock.show() when redirecting from &modal=1 style url
      - code review fixes for all previous patches + fix issue with folders block
      - added in viewdetailsfilter.json.php file to save details mode to user account prefs table
      - make the details btn mode "sticky" so it stays the save value over multiple pages etc...
      - Image Gallery blocks: if displaying a folder of images will get the bar block header and
      will have a the fancy box image preview displaying on image click
      
      Change-Id: I425cc5a634e176d580aacdb60a20f869f7cb7496
      Signed-off-by: default avatarLisa Seeto <lisaseeto@catalyst.net.nz>
      953a5eab
    • Lisa Seeto's avatar
      Bug 1827811: Journal changes · f7431a3a
      Lisa Seeto authored
      
      
      Journal changes:
      Change the modal contents to not show post contents or attached files.
      Recent posts and Tagged posts (if not in full display) now expandable with post contents and comment links.
      Attached files on page block now links only to download and not to display further metadata.
      Cleaned up artefact.php links.
      remove metada that will show on entry on page from also showing in modal
      stop background page scrolling when the modal is opened and "Advanced licensing" is selected.
      add the blogpost_render_in_modal.tpl file
      get rid of scrolling for data-toggle collapse
      add block-header to journal, journal entry
      add titles as modal links for recent posts and tagged journal entries
      add comments and details icons for recent posts and tagged journal entries
      fix things from code review
      
      behatnotneeded
      
      Change-Id: Ic63ebf9fe42e7848559b5e009584fdff0a40770f
      Signed-off-by: default avatarLisa Seeto <lisaseeto@catalyst.net.nz>
      f7431a3a
  7. 30 Sep, 2018 1 commit
  8. 25 May, 2017 1 commit
  9. 12 Jan, 2017 1 commit
  10. 14 Nov, 2016 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1565199: Filter Recent Journals block Add entry + errors · 88b94532
      Cecilia Vela Gurovic authored and Robert Lyon's avatar Robert Lyon committed
      In the block Recent journal entries, the drop-down menu
      only shows the Journals which the user has permission to
      add a new entry.
      
      Also corrected error showing up and broken Journal search
      in the Edit block side screen.
      
      Also fixed the poor alignment of the artefactchoooser search form's
      search button
      
      Also fixes Bug 1636850 with change in lib/view.php
      
      behatnotneeded
      
      Change-Id: I44c0d6d25eda7cb37d4a8aab66a6d1b93ca60b69
      88b94532
  11. 12 Mar, 2016 1 commit
  12. 24 Nov, 2015 1 commit
    • Aaron Wells's avatar
      Display icons for 3rd-party blocktypes plugins · 4f849ed2
      Aaron Wells authored
      Bug 1510421
      
      Defines a new static PluginBlocktype method, get_css_icon(), which
      fetches the name of the CSS icon to use for this blocktype. It returns
      false by default, which tells the theme to "fall back" to the old
      thumbnail.png instead. 3rd-party plugins can override this to
      specify a particular icon to use.
      
      All the core blocktypes have been refactored to extend
      MaharaCoreBlocktype, which uses the blocktype name as the name
      of the CSS icon to use. I also deprecated the "SystemBlocktype"
      class while I was at it.
      
      PluginBlocktype::get_blocktypes_for_category() now returns both
      the results of get_css_icon() and the thumbnail.png path, so that
      themes can decide which they want to use. (And of course
      thumbnail.png is served via thumbnail.php, so 3rd party themes
      can provide their own custom image files if they wish.)
      
      behatnotneeded: Requires installing third-party plugins to test
      
      Change-Id: Idb1ecfc7b21175913708e695788906c11133b0c0
      4f849ed2
  13. 22 Sep, 2015 1 commit
  14. 04 Feb, 2015 1 commit
  15. 28 Jan, 2015 1 commit
  16. 03 Dec, 2014 1 commit
  17. 04 Jun, 2014 1 commit
  18. 14 Oct, 2013 1 commit
  19. 28 Jun, 2012 1 commit
    • Son Nguyen's avatar
      Add blog post directly from a page (bug #792645) · 5f5aa85a
      Son Nguyen authored
      
      
      Three blocktypes have been updated
      1. Blog block (entire journal) -> add shortcut "New entry" to this blog
      2. recentposts block (most recent journal entries):
      	if there is only one journal -> add shortcut "New entry"
      	if more than on -> display a dropdown list of blogs to select
      	(these blogs are taken from the block configuration)
      3. taggedposts block (tagged journal entries):
          all journals owned by this user will be displayed in the dropdown
      list
      
      *Note: Javascript code has been removed from the template.
      *Note: Call initialization js code of all blocks
      
      Change-Id: Ibdd63dfee39787f74d872a6a31b3286c63dee70a
      Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
      5f5aa85a
  20. 22 May, 2012 1 commit
  21. 26 Apr, 2012 1 commit
  22. 13 May, 2011 1 commit
  23. 05 Jul, 2010 1 commit
  24. 08 Jun, 2010 2 commits
  25. 26 May, 2010 2 commits
  26. 28 Oct, 2009 1 commit
  27. 07 Oct, 2009 1 commit
  28. 22 Sep, 2009 2 commits
  29. 15 Sep, 2009 1 commit
  30. 08 Jul, 2009 1 commit
  31. 23 Jun, 2009 1 commit
  32. 29 Jan, 2009 1 commit
    • Nigel McNie's avatar
      (#3063) Make blocktype configuration forms change if they are in a template. · d9f2144b
      Nigel McNie authored
      Now they do things like not making it compulsory to choose an artefact
      if it's a template (as the creator might just want to put the block
      there), and removing some options that only make sense in Views.
      
      There's a parameter for instance_config_form and artefactchooser_element
      to allow the Blocktype to detemine whether it's in a template easily.
      d9f2144b
  33. 17 Dec, 2008 1 commit
    • Nigel McNie's avatar
      (#3063) Remove copy_allowed in favour of allowed_in_view. Also remove · 099dc5b3
      Nigel McNie authored
      copy_artefacts_allowed.
      
      copy_artefacts_allowed is unnecessary as it's only called if the copy
      type is 'full', and there's now no way that you would want to fully
      copy a block and not copy the artefacts inside it.
      
      Some other API tidyups have been done - default_artefact_config has been
      renamed to rewrite_blockinstance_config and had a method signature
      change to be a bit more flexible.
      
      The copyconfig field of the View object is gone too, no longer required.
      099dc5b3
  34. 16 Dec, 2008 1 commit
    • Nigel McNie's avatar
      (#3063) part 2: Hide blocktypes that don't make sense when making a · 7599ec0c
      Nigel McNie authored
      View.
      
      This means that blog/profile/resume blocktypes don't show up in
      group/institution/site Views.
      
      This is controlled through a new Blocktype method - allowed_in_view.
      Various code had to be changed to listen to this method, mostly around
      the display of the category browser.
      
      When making a template, all blocktypes are available.
      
      Part 3 is to change the configuration forms to be more sensible when
      editing a template, and then testing what happens when blocktypes are
      rendered somewhere that they "shouldn't" be - e.g. a My Friends block in
      a group View.
      7599ec0c
  35. 18 Nov, 2008 2 commits