Commit graph

109767 commits

Author SHA1 Message Date
Sara Arjona
af164ce9c7 MDL-78207 resource: Move file type to activity badge
One of the resource settings, the file type, has been moved to the
activity badge near the activity name.
The rest of the information will be displayed using the afterlink
feature.

However, for now, the activity page still displays all the information
together (that's why resource_get_optional_details() supports now one
new parameter, $showtype, to define whether the file type should be
displayed or not).
2023-06-13 12:09:58 +02:00
Sara Arjona
987ceb1b69 MDL-78207 forum: Move unread messages to activity badge 2023-06-13 12:09:58 +02:00
Sara Arjona
6db715f5c3 MDL-78207 course: Add new module badges feature
The new activity card design proposed for Moodle 4.3 differentiates badge
information from other HTML content (displayed using the afterlink feature).
This commit adds a new activitybadge class that can be extended by any
module to display any content in a badge near the activity name. These
are the main features:
- The badge content is always plain text (no HTML).
- The badge style can be set (by default is initialized with badge-none,
but it can be set by any module).
- An optional URL to redirect the user when the badge is clicked.
- An optional ID to add the element in case the module wants to add some
JS to the badge events.
- Optionally, any other extra HTML attributes to the badge element (for
example, data attributes).
2023-06-13 12:09:58 +02:00
Sara Arjona
b6849bd973 MDL-78207 course: Move afterlink at the end of the card 2023-06-13 11:26:08 +02:00
Sara Arjona
3878c85440 MDL-78102 badges: Check empty backpack email/password
For backpack connection using OBv2.0, email and password can't be
blank.
This patch adds some extra checks to validate this and displays an
error to the users before trying to connect to the backpack.
Besides, the error displayed when any error is returned by the
backpack (like invalid credentials), has also been improved, to
make it clearer for the users.
2023-06-13 11:21:13 +02:00
Amaia Anabitarte
cb50c71245 MDL-76715 mod_data: Remove data_records when the last field is deleted 2023-06-13 10:52:56 +02:00
sam marshall
b154e3cd33 MDL-78434 Lib: PHP 8.1 incompatible code relating to LDAP\Connection 2023-06-13 09:46:49 +01:00
Brendan Heywood
38be84b2cf MDL-78313 admin: Improve performance of manage blocks page
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-06-13 17:49:29 +10:00
Ilya Tregubov
621b090ec6
Merge branch 'MDL-76445-master-2' of https://github.com/mihailges/moodle 2023-06-13 15:43:07 +08:00
Mihail Geshoski
c95c632764 MDL-76445 gradereport_singleview: Deprecate load_users()
Replaces current usages of
\gradereport_singleview\local\screen::load_users() with
get_gradable_users() and deprecates load_users(). The only
remaining calls of this method are unit test related.
2023-06-13 15:06:53 +08:00
Mihail Geshoski
41ec352b36 MDL-76445 gradereport_singleview: Deprecate initial zero state view
Deprecates the \gradereport_singleview\local\screen\select class which
is used to generate the initial view to select the singleview item type
and the strings used by the related mustache template.
This view is no longer used as we do not provide direct links to it
anymore.
2023-06-13 15:06:53 +08:00
Mihail Geshoski
26f4584200 MDL-76445 gradereport_singleview: Usability fixes 2023-06-13 15:06:53 +08:00
Mihail Geshoski
6e7ded8feb MDL-76445 gradereport_user: Usability fixes 2023-06-13 15:06:52 +08:00
Mihail Geshoski
620f6322d9 MDL-76445 grade: Helper that returns all gradable users in a course 2023-06-13 15:06:52 +08:00
Jake Dallimore
d8e7c9d3fe
Merge branch 'MDL-73052-master' of https://github.com/sarjona/moodle 2023-06-13 14:44:25 +08:00
Jun Pataleta
ab384ef813 Merge branch 'MDL-78175-master' of https://github.com/ferranrecio/moodle 2023-06-13 13:43:48 +08:00
Andrew Nicols
4aa3e00712
MDL-78297 core: Bump version to update cache config
The missing version bump caused cache configuration to not be updated,
and the static acceleration cache size was therefore not updated. The
result here was that the static acceleration cache was constantly
emptied leading to an increased page load time.
2023-06-13 11:04:25 +08:00
Amaia Anabitarte
f80b1b070b MDL-78310 mod_resource: Change 'Show type' setting default value
Changing 'Show type' admin setting default value to 'Yes'
2023-06-12 17:39:16 +02:00
Jun Pataleta
6d850d2ddc Merge branch 'MDL-74263-master' of https://github.com/jleyva/moodle 2023-06-12 20:37:55 +08:00
Anupama Sarjoshi
fa12b179e8 MDL-78369 Multiple choice: Increase Choice and feedback boxes size 2023-06-12 11:46:23 +01:00
Jun Pataleta
c500ce8b42 Merge branch 'MDL-75937-master' of https://github.com/stevandoMoodle/moodle 2023-06-12 16:10:20 +08:00
Stevani Andolo
b7f41aac8b MDL-75937 admin: Fixed config data display inconsistency 2023-06-12 15:37:12 +08:00
Jake Dallimore
6d4945aed5
Merge branch 'MDL-78167-master' of https://github.com/meirzamoodle/moodle 2023-06-12 15:06:17 +08:00
Andrew Nicols
1f5f716818
Merge branch 'MDL-78166-master' of https://github.com/meirzamoodle/moodle 2023-06-12 12:25:58 +08:00
Andrew Nicols
6d706408f2
Merge branch 'MDL-78355' of https://github.com/paulholden/moodle 2023-06-12 10:26:34 +08:00
Andrew Nicols
a677a02d71
Merge branch 'MDL-78297-master' of https://github.com/MartinGauk/moodle 2023-06-12 10:17:13 +08:00
Paul Holden
3a90d4c837
MDL-77224 mod_h5pactivity: clean up attempt data on activity deletion. 2023-06-11 18:37:03 +01:00
Paul Holden
5ae1b4e5f3
MDL-77993 mod_lesson: ensure report action menu always present. 2023-06-11 18:35:03 +01:00
Andrew Nicols
fe827375f3
MDL-74824 core: Do not treat Stringable objects as arrays
Co-authored-by: Paul Holden <paulh@moodle.com>
2023-06-11 17:40:55 +01:00
Paul Holden
d508cdf111
MDL-74824 user: fix custom change password URL in login notification. 2023-06-11 17:40:54 +01:00
Paul Holden
4c11da246e
MDL-78018 mod_assign: format group name in grading table. 2023-06-11 15:02:24 +01:00
Paul Holden
7953ded152
MDL-77542 mod_assign: remove duplicate grade heading from grader.
It's already part of the subsequent rendered form.
2023-06-11 15:01:23 +01:00
Paul Holden
c18df79c4f
MDL-78172 mod_forum: ensure group names are correctly formatted. 2023-06-11 15:00:16 +01:00
Damian Hippisley
faa41cd791 MDL-73325 core_badges: Add tags field to BadgeClass 2023-06-09 13:41:07 +01:00
Paul Holden
c88d6ad8c3
MDL-70187 user: final removal of deprecated 39/311 methods. 2023-06-09 12:02:45 +01:00
Ilya Tregubov
71c36d2de1
weekly release 4.3dev 2023-06-09 13:14:19 +08:00
Sara Arjona
86edd3d142 Merge branch 'MDL-78415-master-enfix' of https://github.com/vmdef/moodle 2023-06-08 20:33:02 +02:00
Víctor Déniz
9bb5581f4b MDL-78415 lang: Fix typo in Behat tests 2023-06-08 18:46:52 +01:00
Víctor Déniz
7e3b1b1450 MDL-78415 lang: Fix Behat tests regressions after merging en_fix strings 2023-06-08 11:40:13 +01:00
Víctor Déniz
48c161543d MDL-78415 lang: Add parameter to reopencolumn string 2023-06-08 11:38:49 +01:00
Helen Foster
06c5a6c883 MDL-78415 lang: Import fixed English strings (en_fix) 2023-06-08 09:59:04 +01:00
David Woloszyn
5b9a452263 MDL-78237 editor_tiny: Prevent navbar obscuring modal content 2023-06-08 17:14:23 +10:00
David Woloszyn
1e6dcdc3d4 MDL-78237 css: Make navbar height available for non sass-use 2023-06-08 15:52:42 +10:00
Sara Arjona
06bead8e8c Merge branch 'MDL-77946' of https://github.com/paulholden/moodle 2023-06-08 06:56:46 +02:00
Sara Arjona
253b66ec81 Merge branch 'MDL-78308' of https://github.com/paulholden/moodle 2023-06-08 06:48:27 +02:00
Andrew Nicols
9f5d56b7c3
Merge branch 'MDL-75696_master' of https://github.com/marxjohnson/moodle 2023-06-08 12:30:49 +08:00
Andrew Nicols
d11668405f
Merge branch 'MDL-77357-master' of https://github.com/safatshahin/moodle 2023-06-08 12:27:10 +08:00
Safat
7e91f77541 MDL-77357 communication_matrix: Add plugin savepoint 2023-06-08 14:18:25 +10:00
Andrew Nicols
8538341bc8
Merge branch 'MDL-78364' of https://github.com/paulholden/moodle 2023-06-08 12:17:03 +08:00
Andrew Nicols
3daea485f3
Merge branch 'MDL-78008' of https://github.com/timhunt/moodle 2023-06-08 12:09:07 +08:00