Commit Graph

124 Commits

Author SHA1 Message Date
Dominic Chin 5853645aa5 MDL-80035 theme_boost: Fix fourth argument of single_button constructor 2023-11-09 10:03:32 +11:00
Sara Arjona 4ab210a823 MDL-78884 theme: Update styles to display new icons properly
- The default box for the icons has been increased from 50px to 52px.
That way, on the course page, the box for the icons has changed from
30px to 32px.
- The icon size has been increased from 16px to 24px on the main course
page and from 24px to 40px on the activity page.
2023-08-23 07:32:49 +02:00
Luca Bösch 46e086fdb6 MDL-78138 theme_boost: Reliably remove TYPE_CATEGORY breadcrumbs. 2023-06-29 21:40:58 +02:00
Jun Pataleta cf09a7f253 MDL-77105 theme_boost: Add 'nofilter' class when necessary
Add the `.nofilter` class for activity icons when the icon URL's
`filtericon` parameter is not set, so they get rendered as they are on
the context header on the activity page.
2023-03-27 13:32:09 +08:00
Luca Bösch d70ed83644 MDL-77014 course: Single activity format course title multilang. 2023-03-08 08:03:22 +01:00
Sara Arjona 72f75ef344 MDL-74272 theme_boost: Coding style improvements 2023-02-08 13:05:26 +01:00
Sara Arjona 5d7d947553 MDL-74272 theme_boost: Remove plugin name on course page
In 4.0, the plugin name was added above their name. Based on the community
feedback and the research done by the UX team, this needs to be removed.
This commit removes the activity name when edit mode is disabled.
2023-02-08 13:04:31 +01:00
Jackson D'souza aa3efc27ff MDL-75571 theme_boost: Activity icon
* Use Activity get_icon_url helper method to fetch icon.
2022-12-09 15:53:23 +00:00
Jun Pataleta 5b6d6ffc36 Merge branch 'MDL-74565' of https://github.com/paulholden/moodle 2022-06-15 23:21:52 +08:00
Paul Holden f70fc89217 MDL-74565 gradereport_grader: define capability required for editing. 2022-06-12 20:04:28 +01:00
Paul Holden 47d119945d MDL-74634 theme_boost: remove old drawer-open-nav user preference. 2022-06-12 20:01:23 +01:00
Huong Nguyen 646a7973b0 MDL-74461 Navigation: Add section anchor to activity breadcrumb 2022-04-25 21:17:30 +07:00
Justus Dieckmann bf68b2bc64 MDL-74498 output: Resolve correct icon for modules
Fixes the resolve_image_location function, which previously returned
the 'icon' or 'monologo' icon for modules, no matter the requested
image name.

Also fixes an incorrect pix_icon() call for the context header, which
was hidden by the faulty resolve function.
2022-04-14 01:54:28 +02:00
Ilya Tregubov 29da0c7f2a Merge branch 'MDL-74235-master-2' of https://github.com/andrewnicols/moodle 2022-04-07 12:06:38 +06:00
Andrew Nicols 4b388fc239 MDL-74235 core: Update core uses of activity icons to monologo 2022-04-07 12:56:14 +08:00
Mathew May 96304ae607 MDL-74363 navigation: Add breadcrumbs in course use sub pages 2022-04-05 19:50:50 +12:00
Sujith Haridasan aa1c2e2382 MDL-73848 administration: Fix the breadcrumbs and nav highlights
Create or update the breadcrumbs in the site administration
pages where it is required.
Highlight the corresponding site adminstration tab.
Highlight the primary nav to Site administration when user
is navigating to any of the site administration pages.

Also changed the boostnavbar so that the nodes in the secondary
navigation are not shown in the breadcrumbs when user is in site
administration page.
2022-03-25 17:44:47 +08:00
Mihail Geshoski bc0cb6be01 MDL-74087 theme_boost: Remove breadcrumb nodes that exist in primary nav
Generally, we want to avoid displaying any breadcrumb nodes which are
already present in the primary navigation menu. Currently, this is done
by manually specifying which breadcrumb node (by its identification key)
should be removed. This change provides more reliable, automatic removal
of these breadcrum nodes by utilizing the exising method
remove_items_that_exist_in_navigation().
2022-03-09 00:02:26 +08:00
Mihail Geshoski 5de4513f3d MDL-73645 theme_boost: Type identifier when removing breadcrumb nodes
Introduces an additional type identifier argument to the remove() method.
This argument is optional and can be used to further specify the type of
the breadcrumb node we want to remove. This can add additional security
that the correct item is being removed.
2022-03-03 03:38:26 +08:00
Mihail Geshoski bcec96f952 MDL-73169 theme_boost: Update course category breadcrumb nodes 2022-03-02 17:29:35 +08:00
Mihail Geshoski 2a09a3ff76 MDL-73645 theme_boost: Keep section breadcumb item in specific layouts
Avoids removing the section breadcrumb nodes in the course module
context when the course uses the 'One section per page' layout.
Additionaly, it also removes the Courses and Category breadcrumb
nodes in the module contexts to be consistent with the way the
breadcrumbs are displayed in the course context.
2022-03-02 13:01:03 +08:00
Mihail Geshoski 2ee1e6053c MDL-73645 theme_boost: Re-implement breadcrumbs in the course context 2022-03-02 13:00:25 +08:00
Mihail Geshoski 404eeff690 MDL-73532 theme_boost: Display the course name in single activity format
The module context header will display the full name of the course when
the course is using the single activity format header.
2022-02-14 09:40:27 +08:00
Eloy Lafuente (stronk7) 2a736794d6 Merge branch 'MDL-73548-master' of https://github.com/bmbrands/moodle 2022-01-20 23:25:22 +01:00
Bas Brands 5e8b258cac MDL-73114 theme_boost: show page title on Dashboard page
replace the page title when the welcome message is shown
2022-01-19 17:36:54 +01:00
Bas Brands 7179d9760e MDL-73548 theme_boost: update privacy provider for new drawers 2022-01-18 09:42:14 +01:00
Sara Arjona 0fc33251bf Merge branch 'MDL-72904-master-dec21' of https://github.com/peterRd/moodle 2021-12-27 08:47:50 +01:00
Peter Dias d19547ae69 MDL-72904 theme_boost: Boost navbar cleanup restrictions
Exclude the last node in a breadcrumb change from auto-removal if no URL provided.
2021-12-23 21:25:36 +08:00
Bas Brands 47e63b518a MDL-71457 theme_boost: page header icon styling 2021-12-20 15:02:24 +01:00
Bas Brands f2ddd23ec1 MDL-71457 theme_boost: activity icon styling 2021-12-20 15:02:24 +01:00
Jake Dallimore 40e28d9aaf Merge branch 'MDL-73277-master' of https://github.com/sharidas/moodle 2021-12-15 13:38:14 +08:00
Eloy Lafuente (stronk7) 71746122a5 Merge branch 'MDL-72287-master' of https://github.com/mihailges/moodle 2021-12-09 23:14:32 +01:00
Mihail Geshoski 8b8b037ec1 MDL-72287 theme_boost: Remove 'My courses' navbar item in module context 2021-12-09 23:47:57 +08:00
abgreeve b9d1aaaa3e MDL-72287 theme_boost: Remove the breadcrumb for course context. 2021-12-09 22:46:57 +08:00
Sujith Haridasan ce208a354c MDL-73277 theme_boost: Remove unused class and template
Remove files context_header.php and context_header.mustache
2021-12-08 12:18:52 +05:30
Bas Brands 26a0091d3c MDL-72981 theme_boost: homogenise logo display 2021-12-06 09:38:21 +01:00
Mathew May 6ca9c2154a MDL-70801 core_my: Add a new courses page 2021-11-15 11:49:35 +08:00
Mihail Geshoski 10a91df9e3 MDL-72652 theme_boost: Reimplement navbar in site administration
Reimplements the navbar in the site administration pages and removes
any navbar nodes that are already present in the primary or secondary
navigation menu.
2021-10-19 13:08:34 +08:00
Bas Brands 57581a1980 MDL-72278 theme_boost: open drawer with fake blocks on first visit 2021-10-07 16:14:37 +02:00
Paul Holden fe53a6262f MDL-72597 course: use formatted course module name in context header. 2021-10-04 14:19:58 +01:00
Bas Brands a0bb51622c MDL-71610 theme_boost: remove edit button from Boost 2021-09-29 09:25:36 +02:00
Mathew May 89460a50d2 MDL-69588 navigation: Address final point from review 2021-08-25 10:35:23 +08:00
abgreeve 56c34d71ef MDL-69588 theme_boost: Use partial templates in boost.
This moves away from using escaped html injected into the template
and uses partial templates instead.
2021-08-23 17:47:24 +08:00
Adrian Greeve 2d548e7433 MDL-69588 theme_boost: Change renderer to use templates.
This changes the existing context_header code copied from the
outputrenderers file and makes it use templates.
2021-08-23 17:47:24 +08:00
abgreeve 42e191cc4d MDL-72005 navigation: Change context header to switch breadcrumbs
- Part of: MDL-69588
This changes the context header to switch the breadcrumbs to the
top in boost. It also changes the context header in the modules
to have the activity name instead of the course name, and adds
an icon for the activity.
2021-08-23 17:46:40 +08:00
Adrian Greeve dbc014b2a6 MDL-70196 theme_boost: New navbar renderer for navbar alterations
- Part of: MDL-69588
2021-08-23 17:46:38 +08:00
Bas Brands a262d674b4 MDL-69117 theme_boost: deprecate the autoprefixer 2020-09-02 12:14:11 +02:00
Mathew May ddd387ef68 MDL-67924 core: Now show the editing button everywhere 2020-03-13 08:50:14 +08:00
Mathew May 847b0fa941 MDL-58428 renderer: Move renderer override from core
Also update all html_writer user to escape the namespace.
Also update the xpaths in behat
2019-02-26 12:56:14 +01:00
Mathew May 6a80186ebb MDL-58428 renderer: Move renderer override from blocks 2019-02-26 16:24:49 +08:00