Simey Lameze
61f4843fed
MDL-77721 navigation: Revert the patch for MDL-75908.
...
This reverts commit 7b8fa9de865aa7a22eeb25d00fd92d28222a3b71.
2023-03-23 15:45:11 +08:00
Stephan Robotta
7b8fa9de86
MDL-75908 navigation: fix active flag in navigation for custom menus
2023-03-15 11:16:44 +01:00
Paul Holden
af8da7c737
MDL-70070 phpunit: correct data provider method names.
...
They should not be prefixed `test_` because that's how actual
test methods containing assertions are identified by PHPUnit.
2023-01-16 08:28:37 +00:00
Paul Holden
dd0c545ec6
MDL-75077 output: prevent duplicate ID errors in custom menus.
...
Following on from 8e4a7c6b, we should apply a similar change to
custom menus to account for being collapsed into the "More" menu.
2022-10-05 18:29:17 +01:00
Alexey
25b5125187
MDL-74522 lib/classes/navigation fix Navbar My courses data-key value
2022-06-07 16:29:31 +03:00
Mihail Geshoski
7066c7618c
MDL-74216 navigation: Do not show 'My courses' in primary nav to guests
2022-03-16 18:16:58 +08:00
Peter Dias
109c5f70a1
MDL-73978 navigation: Update the scoping when adding nodes
...
Make sure to use the rootnode variable that is being passed specifically for single activity course formats
2022-02-23 13:35:52 +08:00
Ilya Tregubov
4f4bb7303a
Merge branch 'MDL-73273-master' of https://github.com/peterRd/moodle
2022-02-21 11:15:33 +02:00
Peter Dias
4071bf3fb2
fixup! MDL-73273 navigation: Add checks to enforce action param types
2022-02-18 09:11:57 +08:00
Peter Dias
bdf4f8a651
MDL-73273 navigation: Add checks to enforce action param types
...
* Added checks in navigationlib to enforce the data type of the passed in action
* Add nodes with non moodleurls to the end of the secondary nav
2022-02-15 11:30:07 +08:00
Mihail Geshoski
bf27303955
MDL-73532 navigation: Update unit tests
...
Updates the existing unit tests related to the secondary navigation
class and includes cases where the given course uses single activity
format.
2022-02-14 09:35:04 +08:00
Adrian Greeve
4870b363b0
MDL-73366 navigation: Changed the first tab of site administration.
...
It now reads "General" instead of "Site administration"
2022-01-17 11:52:13 +08:00
abgreeve
f85662d744
MDL-72930 navigation: Changes to the secondary view unit tests.
...
The display of the arrays has been changed and so updates were
necessary for the unit tests as well due to changing output.
2022-01-04 15:58:52 +08:00
Huong Nguyen
8c336899a9
MDL-72867 Navigations: User menu improvements
2021-12-15 13:54:45 +07:00
abgreeve
89d749fda6
MDL-72090 navigation: New unit and behat tests for navigation.
...
This adds new tests for functions that impact the more menu and
the course administration overflow.
2021-12-09 11:13:35 +08:00
Peter Dias
423e5a5fee
MDL-72816 navigation: Make sure a primary node is active
...
- Revert unnecessary primary_active_tab setters
- Modify the navigation nodes to never change text based on default homepage
- Make sure a tab is set active
2021-11-17 15:55:18 +08:00
Bas Brands
4fb5fb052f
MDL-72250 theme_boost: add mobile nav drawer
2021-11-16 08:58:01 +01:00
abgreeve
ca229dfcad
Merge branch 'MDL-69371-master-4' of git://github.com/bmbrands/moodle
2021-10-21 17:16:48 +08:00
Jun Pataleta
56c55f996a
Merge branch 'MDL-72352-master-v2' of git://github.com/peterRd/moodle
2021-10-20 15:45:22 +08:00
Peter Dias
44922dfe2d
MDL-72352 navigation: Unit tests
2021-10-20 14:55:11 +08:00
Bas Brands
cf630f06a1
MDL-69371 core_renderer: Move unit test for language renderable
2021-10-19 13:47:46 +02:00
Mihail Geshoski
2c9ab4980d
MDL-72530 navigation: Optional max limit of displayed secondary nodes
...
Includes an optional function argument $maxdisplayednodes (int/null)
in force_nodes_into_more_menu() which will enable configuration of the
max limit of displayed nodes in the secondary navigation. If null,
a limit of displayed nodes will not be applied.
2021-10-13 12:58:32 +08:00
Sujith Haridasan
28f4ab461e
MDL-72689 core_navigation: Respect homepage preference
...
If defaulthomepage is set to Dashboard then Site home link
in the primary navigation should point to "/?redirect=0"
2021-10-08 10:46:40 +05:30
Eloy Lafuente (stronk7)
a665ad27d2
Merge branch 'MDL-72396-master' of https://github.com/sharidas/moodle
2021-09-30 20:12:39 +02:00
Eloy Lafuente (stronk7)
b889f9f3f6
Merge branch 'MDL-72110-master-v3' of https://github.com/sharidas/moodle
2021-09-22 20:00:18 +02:00
Sujith Haridasan
3d18e005e8
MDL-72396 core: Add tests for setting active tabs
...
Add the tests for setting active tabs in primary
and secondary nav.
2021-09-17 12:37:42 +05:30
Mihail Geshoski
ecf8e77f19
MDL-72093 navigation: Update secondary nav unit tests
2021-09-14 12:02:35 +08:00
abgreeve
40b6c725b4
MDL-71092 navigation: Update to better scan for the active node.
2021-09-01 09:09:21 +08:00
Sujith Haridasan
16e939fe2c
MDL-72110 core_navigation: home page preference
...
Admin should respect the home page preference set
just like any other user. Also when user preference
is set to dashboard, the home points to the dashboard
and the dashboard should become "Site home" which would
point to Site home.
2021-08-27 10:05:48 +05:30
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
Mathew May
1ce2bb0007
MDL-69588 navigation: Show home primary node when required
2021-08-23 17:47:24 +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
Mathew May
d9016d2fa7
MDL-72006 navigation: Reduce max secondary nav items
...
- 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
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
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
David Mudrák
ad30fde448
MDL-71425 lang: Fix reworded strings in tests
2021-05-04 17:45:18 +02:00
Peter Dias
c8c39e403b
MDL-70207 core_navigation: Primary nav unit tests
2021-04-06 11:45:44 +08:00
Peter Dias
9ee4dd69a9
MDL-71084 core_navigation: Move secondary_test to proper location with namespace
2021-03-23 13:56:29 +08:00