101709 Commits

Author SHA1 Message Date
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
Mihail Geshoski
e565850e50 MDL-71683 boost: Add behat tests related to the language selector
- Part of: MDL-69588
2021-08-23 17:46:40 +08:00
Mihail Geshoski
7d739e9902 MDL-71683 behat: Add step definitions related to the lang menu in boost
- Part of: MDL-69588
2021-08-23 17:46:40 +08:00
Mihail Geshoski
3e30d958b2 MDL-71683 behat: Add step definitions related to the user menu
- Part of: MDL-69588
2021-08-23 17:46:40 +08:00
Mihail Geshoski
5f998b1249 MDL-71683 navigation: Update the primary nav unit tests
- Part of: MDL-69588
2021-08-23 17:46:40 +08:00
Mihail Geshoski
68237ac761 MDL-71683 navigation: Implement the lang menu in the main navigation
- Part of: MDL-69588
2021-08-23 17:46:40 +08:00
Mihail Geshoski
d78dc95d6b MDL-71683 navigation: Add a lang submenu within the user menu
- Part of: MDL-69588
The menu used to select one of the available languages is now
displayed as a submenu within the user menu only when a user is
logged in.
2021-08-23 17:46:40 +08:00
Mihail Geshoski
7318b68b77 MDL-71683 navigation: Enable submenus within the user menu
- Part of: MDL-69588
Adds support for creating collapsible submenus within the user
menu dropdown.
2021-08-23 17:46:40 +08:00
Mathew May
d9016d2fa7 MDL-72006 navigation: Reduce max secondary nav items
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Peter Dias
d677a3b690 MDL-71900 core: Remove the node if only a single node displayed
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
f836887844 MDL-69588 navigation: Utilize showinsecondarynavigation in secondary nav
Utilizes the 'showinsecondarynavigation' property from the
navigation_node object to avoid displaying any unwanted nodes in the
secondary navigation.
2021-08-23 17:46:39 +08:00
Mihail Geshoski
bddc64a39d MDL-69588 navigation: Enable setting node visibility in secondary nav
Adds new property 'showinsecondarynavigation' and a new setter method
in the navigation_node class to enable setting the visibility of the
node in the secondary navigation.
2021-08-23 17:46:39 +08:00
Mihail Geshoski
ee63214306 MDL-71977 navigation: Set default more menu nodes in mod secondary nav
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Adrian Greeve
1a8b11b721 MDL-71877 navigation: Set the correct url for the activity view.
- Part of: MDL-69588
The first tab in the secondary navigation is to show the tab to
navigate to the modules view.php file. This patch sets the url
to view.php and if it matches the pages url, also sets it as
active.
2021-08-23 17:46:39 +08:00
Mihail Geshoski
2748d4e7ee MDL-71680 navigation: Set forceintomoremenu to child nodes recursively
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
1c017ad8fb MDL-71680 navigation: Update templates/js to force nodes into more menu
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
e3f35a2f22 MDL-71680 navigation: Add unit tests for force_nodes_into_more_menu()
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
73154233e0 MDL-71680 navigation: Add unit tests for set_force_into_more_menu()
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
9b792e814b MDL-71680 navigation: Force secondary navigation nodes into "more" menu
- Part of: MDL-69588
Enables to pre-define nodes which should be added into the "more" menu
by default and also setting a maximum limit of displayed nodes in the
secondary navigation.
2021-08-23 17:46:39 +08:00
Bas Brands
17e9d4a51a MDL-70202 theme_boost: push secondary navigation in admin search page
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Bas Brands
00239bccad MDL-70202 theme_boost: remove accessibility changes for moremenu tabs
- Part of: MDL-69588
- the more menu will be responsive and does not need changed tab styles on small devices
2021-08-23 17:46:39 +08:00
Bas Brands
527562d12f MDL-70202 theme_boost: frontend for secondary navigation
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Bas Brands
da67b468fa MDL-70208 theme_boost: frontend for primary navigation
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Mihail Geshoski
19fd786270 MDL-71680 navigation: Enable forcing navigation_node into "more" menu
- Part of: MDL-69588
Adds new property 'forceintomoremenu' and new setter method in the
navigation_node class to enable forcing a navigation note into a
"more" menu whenever possible.
2021-08-23 17:46:38 +08:00
Adrian Greeve
f28535082c MDL-70196 behat: Add a new step for navigating with the navbar.
- Part of: MDL-69588
A lot of tests work on the basis that you can follow the last item
of the breadcrumb nav bar. This is not the case. This step will first
check to see if the page is already the one requested. If it is then
nothing further needs to happen, otherwise we follow the link in the
navbar.
2021-08-23 17:46:38 +08:00
Adrian Greeve
c8422f4576 MDL-70196 mod_assign: Allow the last navbar item to have a link.
- Part of: MDL-69588
This updates a method to allow the last item in the breadcrumb
navbar to have a URL.
2021-08-23 17:46:38 +08:00
Adrian Greeve
c3871a9174 MDL-70196 navigation: Update to pages to add a URL.
- Part of: MDL-69588
Some pages have added an item to the end of the  navbar without a
link for it. This adds the current page as a url to this navigation
node. Doing this brings it in line with all of the other pages
around Moodle and also helps with the new navigation changes in
theme boost.
2021-08-23 17:46:38 +08:00
Adrian Greeve
7d435fb5f2 MDL-70196 navigation: Update to feature files.
- Part of: MDL-69588
A lot of tests rely on the last element of the breadcrumb being
active. This updates feature files to not rely on this anymore.
2021-08-23 17:46:38 +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
Peter Dias
5446cadef8 MDL-71148 core_navigation: Unit test for the primary output
- Part of: MDL-69588
2021-08-23 17:46:38 +08:00
Peter Dias
0c76a848ea MDL-71148 core_navigation: Templates to generate user menu
- Part of: MDL-69588
2021-08-23 17:46:36 +08:00
Peter Dias
8782702d34 MDL-71148 core_navigation: Provide user menu as nodes
- Part of: MDL-69588
2021-08-23 17:45:55 +08:00
Peter Dias
6462e651e4 MDL-71148 core_navigation: New renderer to combine nav components
- Part of: MDL-69588
2021-08-23 17:45:55 +08:00
Peter Dias
25e178aa59 MDL-71148 core_navigation: Move unauthenticated user checks to the lib
- Part of: MDL-69588
Added conditional information in user_get_user_navigation_info for
when a user is unauthenticated.
2021-08-23 17:45:55 +08:00
Peter Dias
fe285d5496 MDL-71148 core_navigation: Provide a menu header in a system context.
- Part of: MDL-69588
2021-08-23 17:45:55 +08:00
Ilya Tregubov
1464843a25 weekly release 4.0dev 2021-08-20 13:24:29 +02:00
Ilya Tregubov
c6ac30c0ee Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-08-20 13:24:27 +02:00
Michael Milette
de91d620f2 MDL-58395 auth_ldap: User sync now brings problem details and continue
Co-authored-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2021-08-19 19:53:22 +02:00
Ilya Tregubov
9937593420 MDL-71516 core_question: Fix url not being composed correctly. 2021-08-19 17:48:00 +02:00
Ilya Tregubov
eba1d32c00 MDL-49202 core: Comment broken test.
Should be fixed properly as part of MDL-72377.
2021-08-19 17:04:43 +02:00
Ilya Tregubov
b8e4235160 Merge branch 'MDL-49202_master' of git://github.com/mdjnelson/moodle 2021-08-19 16:53:30 +02:00
Mark Nelson
9a0d63383a MDL-49202 core: fix failing unit tests
See MDL-72377.
2021-08-19 20:16:29 +08:00
Mark Nelson
757f872b72 MDL-49202 core_grades: add Behat tests 2021-08-19 20:16:29 +08:00
Andrew Nicols
6f36b0998d MDL-71615 qbank_deletequestion: Ensure that the returnurl is qualified 2021-08-19 16:12:29 +08:00
Andrew Nicols
73754b8c39 Merge branch 'MDL-72143-master' of git://github.com/jleyva/moodle 2021-08-19 09:10:18 +02:00
Andrew Nicols
c65ea81183 Merge branch 'MDL-72135-master' of https://github.com/golenkovm/moodle 2021-08-19 09:10:18 +02:00
Andrew Nicols
70a2975041 Merge branch 'MDL-71709' of git://github.com/paulholden/moodle 2021-08-19 09:10:18 +02:00
Andrew Nicols
517fe298c3 Merge branch 'MDL-68639-master' of https://github.com/xcaro/moodle 2021-08-19 09:10:18 +02:00
Andrew Nicols
84077e5263 Merge branch 'MDL-71944' of git://github.com/paulholden/moodle 2021-08-19 09:10:18 +02:00
Andrew Nicols
d5e04cab9a MDL-66266 core_message: Whitespace fix 2021-08-19 09:10:18 +02:00