Commit Graph

775 Commits

Author SHA1 Message Date
Jun Pataleta e26f47359b MDL-69371 output: Render lang_menu only when necessary 2021-10-21 22:54:48 +08:00
abgreeve 0492b069be MDL-69371 core_renderer: New core language renderable. 2021-10-19 13:47:46 +02:00
Bas Brands 47bbfe0f4f MDL-69371 theme_boost: redesign the moodle login page 2021-10-19 13:47:04 +02:00
Ilya Tregubov 731b069c4d Merge branch 'MDL-72450-master-1' of git://github.com/mihailges/moodle 2021-10-18 08:26:49 +02:00
Mihail Geshoski 0c35e76e7d MDL-72450 output: Remove activity navigation if there is course index
There is no need to display activity navigation links within the
activity if the user can already navigate through the activities
using the course index. Therefore, this change will prevent displaying
the activity navigation links if the theme has implemented course
index and the selected course format uses course index.
2021-10-14 15:38:48 +08:00
Ferran Recio b58e780666 MDL-71995 core: reactive debug tools 2021-10-13 10:08:50 +02:00
Ilya Tregubov d59782d1c3 Merge branch 'MDL-72305-master' of git://github.com/bmbrands/moodle 2021-10-11 10:02:00 +07:00
Bas Brands d1b9f7d1f1 MDL-71965 theme_boost: move footer content in popover 2021-10-06 11:32:08 +02:00
Ilya Tregubov 34a0ba3232 Merge branch 'MDL-71610-master' of git://github.com/bmbrands/moodle 2021-09-29 15:40:39 +02:00
Bas Brands 09f6ce9fed MDL-71610 theme_boost: add a edit mode switch 2021-09-29 09:25:36 +02:00
sam marshall e332d1849d MDL-72643 core: Improve display_size
Allows display_size to use a fixed unit for easy comparison of
multiple results, and fixed decimal places for the same reason.

Improves behaviour by using consistent decimal places and a
consistent space before the unit (the previous one only has a space
before 'bytes', not before 'KB').

Of existing uses, all the ones that displayed a 'maxbytes' type
configuration setting (which are likely to have an 'exact' size
and would be better shown as 512 KB rather than 512.0 KB) have been
changed to use 0 decimal places, to preserve previous behaviour.
All the uses which were showing an actual file or memory size have
been left as default (1 decimal place).
2021-09-27 16:52:33 +01:00
Bas Brands 646109ec3b MDL-72305 theme_boost: user initials as profile picture placeholder 2021-09-27 14:02:45 +02:00
Dongsheng Cai a2d5d43223 MDL-71964 dashboard: add welcome message for all users 2021-09-23 10:42:04 +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
Bas Brands eed2498215 MDL-72032 core: Fix aria roles moremenu
- Part of: MDL-69588
2021-08-23 17:47:24 +08:00
Bas Brands da33265d73 MDL-72032 core_behat: secondary navigation behat fixes
- Part of: MDL-69588
2021-08-23 17:47:02 +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
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
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
Andrew Nicols 530322e2ce MDL-69918 core: Update uses of legacy form change checker 2021-08-10 23:54:01 +08:00
Bas Brands c36972b2c0 MDL-71293 theme_boost: improve navbar for new navigation 2021-06-23 12:03:10 +02:00
Jun Pataleta daa9992215 MDL-71342 mod: Conditionally display activity info
* The activity information output component is still being displayed
even in the case when the activity does not have dates to show and
completion tracking is not enabled.
This also causes a horizontal line to be rendered in activity view pages
below the activity heading which does not serve much purpose when
there's no activity information to be shown.
The activity information output component should only be displayed
if there's completion information to show or if there are activty dates
to show. Otherwise, there's no need to render it.
2021-04-15 23:10:03 +08:00
Jun Pataleta dd32d65f3a MDL-70817 core_course: Create an activity information output component
The activity information output component displays information about
an activity module that can contain:
1. Activity dates
2. Completion information
   a. A manual completion button; or
   b. A list of automatic completion conditions and their statuses.

This patch also includes a new JS module called
core_course/manual_completion_toggle for toggling the
completion state of activities that support manual completion.
2021-04-02 21:53:20 +08:00
Eloy Lafuente (stronk7) f35e3f09c2 MDL-69474 accessibility: page->url can be not set, protect against that
Both in unit tests, but also in other areas (say blocks, for example)
it's possible that page->url has not been set yet.

So, let's change current code to always check if we have something
(page->url) to compare.

Note the use of has_set_url() is needed, because page->url is magic
method and it doesn't work as expected. Hate magics!
2021-03-16 00:52:28 +01:00
hiendinh bc6997a889 MDL-69474 Accessibility: Profile image changes 2021-03-11 16:29:11 +07:00
Shamim Rezaie 612a1741f6 MDL-70172 output: pages with main logo should have a first-level header 2021-03-02 05:35:14 +11:00
Víctor Déniz 4e26c93473 Merge branch 'MDL-70536-reset-page-cli' of https://github.com/brendanheywood/moodle 2021-02-18 00:31:39 +00:00
Shamim Rezaie 6df239900e MDL-70173 core: Use a meaningful first level header 2021-02-09 16:16:09 +11:00
Shamim Rezaie c0e3a4108c MDL-70173 output: All pages should have a heading
In MDL-63040, it was decided that the page header for the dashboad page
should be removed.
However, Based on Success Criteria 1.3.1 and 2.4.6 from the WebAIM's
WCAG 2 Checklist, all pages should have an <h1> element.
So I put an sr-only heading on the dashboard and all other pages, where
no page header is shown.
2021-02-09 16:16:09 +11:00
Shamim Rezaie b0b3a53521 MDL-70173 output: use an empty alt to hide user pic from screen readers
There is no need to use WAI-ARIA to hide images from screen readers.
See https://www.w3.org/WAI/tutorials/images/decorative/
2021-02-09 16:16:09 +11:00
Brendan Heywood a87ddbd685 MDL-70536 cli: Fixed cli progress bar when 100% more than once 2021-02-07 00:36:01 +11:00
Brendan Heywood ded82b7f5b MDL-70583 cli: Allow progress bars to be rendered in cli scripts 2021-02-02 22:07:14 +11:00
Mikhail Golenkov b01eb0b3f8 MDL-68792 theme_boost: Do not move blocks on embedded layout. 2020-12-18 12:06:03 +11:00
Mikhail Golenkov 8325c83b20 MDL-68792 theme_boost: Show the fake blocks on embedded layout. 2020-12-18 12:06:03 +11:00
Tim Hunt 5a96b5427f MDL-69735 core renderer notifications: make closebutton option usable 2020-12-11 19:54:39 +00:00
Víctor Déniz c064f06ea1 Merge branch 'MDL-62678-core-fetch-notifications' of https://github.com/brendanheywood/moodle 2020-10-06 22:59:24 +01:00
Brendan Heywood f3844e595e MDL-62678 core: Improve efficiency of notifications and avoid ajax call 2020-09-30 13:55:30 +10:00
David Mudrák 9ce768008c MDL-69050 lang: Stop using the term blacklist in mustache output engine 2020-09-24 19:41:58 +02:00
Bas Brands 1a2a52d121 MDL-69454 core_search: consistent navbar search 2020-09-21 10:15:11 +02:00
Eloy Lafuente (stronk7) 6e6a1785df Merge branch 'MDL-69395-master' of git://github.com/bmbrands/moodle into master 2020-09-17 08:43:51 +02:00
Davo Smith 6ea01b6e99 MDL-68564 outputrenderers: extend before_footer hook to allow output 2020-09-17 08:43:51 +02:00
Bas Brands 609d8b380e MDL-69395 theme_boost: improve colour contrast for form input fields
- for this issue the atto styles.css was moved into theme boost so
we can use our preset variable for $gray-500
2020-09-09 09:59:08 +02:00
Bas Brands 4394f9e358 MDL-67735 theme_boost: remove bs2 and bs4alpha compatibility css 2020-08-17 08:16:42 +00:00
Andrew Nicols 452497da41 Merge branch 'MDL-68334-master' of git://github.com/lucaboesch/moodle 2020-08-12 11:05:54 +08:00
Luca Bösch 4994817908 MDL-68334 user: Display name in footer as elsewhere. 2020-08-08 10:38:56 +02:00
Gareth Barnard da4ded8a16 MDL-64818 blocks: blocks_for_region() is inefficient. 2020-08-07 13:58:35 +01:00
Shamim Rezaie e505618f08 MDL-68931 core: No feedback link on footer if the feature is disabled 2020-06-09 19:05:16 +10:00
Shamim Rezaie a3a9539bd7 MDL-68076 core: display the feedback link on footer 2020-06-04 11:57:24 +10:00
Jake Dallimore 0fbc2c11f5 Merge branch 'MDL-67874-master' of git://github.com/bmbrands/moodle 2020-05-27 13:54:51 +08:00