Commit Graph

220 Commits

Author SHA1 Message Date
Jun Pataleta 1eb8ee32bb MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles

* With the site name now being appended to the page titles, there
is no need to manually append the page titles.
2023-09-09 08:58:54 +08:00
Mikel Martín bd7cc81be6 MDL-78744 completion: Split activity_information in completion and dates
Deprecate core_course\output\activity_information class and move its code to two
new classes: core_course\output\activity_completion and core_course\output\activity_dates.
In this process refactor activity_completion improving readability and and also deprecate
renderer_base::activity_information() and core_course_renderer::render_activity_information().
2023-09-04 11:37:20 +02:00
Sara Arjona 7430208d56 MDL-78884 files: Deprecate size parameter for icons
The parameter $size of the following functions has been deprecated and is not used any more:
  - file_extension_icon
  - file_file_icon
  - file_folder_icon
  - file_mimetype_icon
  - mimeinfo_from_type
  - url_guess_icon

That way, the sized icons (xxxxxxx-yyy.png) can be removed and replaced by SVG, to make it easier
to keep them updated because once they are replaced, there will only be one single file for each
MIME icon.
2023-08-23 07:30:16 +02:00
Jun Pataleta ec02ec88f3 MDL-79071 course: An empty alt text is needed for decorative images 2023-08-18 17:03:05 +08:00
Paul Holden 5c3f296138 MDL-71331 course: final removal of non-AJAX activity control method. 2023-07-31 09:06:47 +01:00
Shamim Rezaie 316d79d038 MDL-77375 core: Cleanup redundant set_constraint() calls
Also removed the 10rem bottom margin form the quiz editing page. It was
there to make sure that there is enough room for the 'add new question'
dropdown. But it's not needed anymore (hasn't been since long time ago).
2023-07-02 00:41:22 +10:00
Sara Arjona d91a9d5117 Merge branch 'MDL-71183' of https://github.com/paulholden/moodle 2023-06-07 12:38:46 +02:00
Nathan Nguyen 1452caac93 MDL-77353 core: examples of new user function usage 2023-05-24 13:05:13 +10:00
Paul Holden 19e05f0e34 MDL-71183 course: final removal of deprecated 311 renderer method. 2023-05-17 11:38:20 +01:00
Stevani Andolo a78738c855 MDL-76344 course: Fixed course image 'non image file' layout 2023-05-04 10:26:06 +08:00
Ferran Recio dc63d643b8 MDL-74800 core_courseformat: fix accessibility checks 2022-08-08 14:46:42 +02:00
Jun Pataleta 155ef8aece Merge branch 'MDL-68011-master' of https://github.com/mihailges/moodle 2022-07-19 20:52:36 +08:00
Mihail Geshoski 49693c6629 MDL-68011 coourse: Final deprecation of course_modchooser() 2022-07-19 14:33:39 +08:00
Sara Arjona a3de1eff1b Merge branch 'MDL-74160-master' of https://github.com/ferranrecio/moodle 2022-03-22 16:51:05 +01:00
Ferran Recio ce7edab8a8 MDL-74160 core_coureformat: fix legacy renderer methods
To ensure legacy course formats works on Moodle 4.0 some method are
reintroduced (but marked as deprecated) like start_section_list and
end_section_list. Furthermore, the course_section_cm_availability
returns a string again as expected.
2022-03-22 10:59:14 +01:00
Sara Arjona 40894d7c31 MDL-73233 frontpage: Display link to My courses
Before MDL-70801, the "My courses" page didn't exist so the "More"
button displayed bellow the "Enrolled courses" in frontpage pointed
to Dashboard.
I think this is a leftover from the issue when the "My courses" page
was added and it makes more sense using the "My courses" page here
always.
2022-03-16 11:35:08 +01:00
Peter Dias f1959af7f6 MDL-73462 course: Introduce course category tertiary navigation
Update the category management page.
2022-03-01 17:57:24 +08:00
Ferran Recio 3651b85fbe MDL-73547 core_courseformat: add collapsed section update actions
Now content and course index sections have special mutations to store
the collapsed preferences. This way the backend implementation is
independent of the frontend one and can use caches or other kind of
optimizations of necessary.
2022-02-21 12:33:33 +01:00
Bas Brands 7c76e1c349 MDL-72466 core_output: dropdown menu alignment 2022-01-27 17:24:20 +01:00
Paul Holden 8d5e36d55d MDL-73563 course: add vertical space above category action buttons. 2022-01-13 23:13:10 +00:00
Ferran Recio 88e17ccad9 MDL-72911 core_courseformat: fix deprecation messages 2021-12-28 12:50:53 +01:00
Bas Brands f2ddd23ec1 MDL-71457 theme_boost: activity icon styling 2021-12-20 15:02:24 +01:00
Bas Brands 5b76eb6900 MDL-71291 theme_boost: minimal frontpage styling tweaks 2021-12-06 10:29:14 +01:00
Ilya Tregubov 0350d42610 MDL-71211 core_course: Keep the status of course index. 2021-10-19 13:17:25 +02:00
Ilya Tregubov 3b5d4c7818 MDL-71689 course: add activity button design changes. 2021-10-15 10:28:05 +07:00
Ferran Recio d4bebe639f MDL-72578 core_courseformat: fix renderers deprecation messages 2021-10-07 17:17:29 +02:00
Ferran Recio 41b4625693 MDL-72578 course: activity render to output classes 2021-10-07 17:17:29 +02:00
Sara Arjona 72410362bf Merge branch 'MDL-72130-master' of git://github.com/ferranrecio/moodle 2021-09-01 18:15:18 +02:00
Ferran Recio 5672bafcdb MDL-72130 courseformat: fix deprecated course_section_cm 2021-08-26 10:18:34 +02:00
Ferran Recio 830c3eb907 MDL-71209 courseformat: add course index modules
The course index is the first UI component that implements the new
drawers and the reactive components. The course index uses the course
state to present the current course structure and changes whenever
that structure change.
2021-08-20 16:49:06 +02:00
Ferran Recio 21d93554d4 MDL-71863 courseformat: create courseformat subsystem 2021-06-28 13:50:18 +02:00
Peter Dias 25ef989bdb MDL-71926 core: Check capabilities before adding link
Check whether the user has the capability to manage courses before adding any link
2021-06-15 08:37:38 +08:00
Paul Holden e2327b5219 MDL-71682 course: remove deprecated non-AJAX activity chooser call.
The deprecated method to render the dropdown based activity chooser
from 430746d3 was still being called, which produced debugging on
the site when doing so.
2021-06-02 21:00:24 +01:00
Ilya Tregubov 430746d3a2 MDL-66431 core: Remove activity chooser user preference.
This commit removes activity chooser user preference and
course preference page. Separate dropdowns to activity and
resource is also removed.
2021-05-01 16:21:59 +02:00
Jun Pataleta e933044409 MDL-70821 course: Deprecate course_section_cm_completion()
Deprecate \core_course_renderer::course_section_cm_completion(). It is
not being used anymore and is being replaced by
\core_renderer::activity_information().
2021-04-12 11:41:37 +08:00
Jun Pataleta 7d8cc2c610 MDL-70821 course: Remove unused completion info from cm_format
With the activity information output component dealing with the
completion information of the activity, there's no need to pass
completion info to the cm_format renderable.
2021-04-12 11:41:34 +08:00
Jun Pataleta abc5d76175 MDL-70821 course: Render activity information output component in course
Use the activity information output component to render activity
completion details and activity dates for activities on the course
homepage.

Includes fixup from Shamim Rezaie <shamim@moodle.com>
2021-04-12 11:40:54 +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
Ferran Recio 8e7dc42440 MDL-65974 course: move format renderers to outputs 2021-03-11 17:36:34 +01:00
Shamim Rezaie 2896cb83cc MDL-70172 output: Fix empty links
The approach taken is inline with font-awesome documentation:
https://fontawesome.com/how-to-use/on-the-web/other-topics/accessibility
2021-03-02 05:19:36 +11:00
Luca Bösch 531ce52940 MDL-65448 core_course: Restyle non-JS activity moving. 2020-10-16 14:50:21 +02:00
Bas Brands 968cd48336 MDL-69454 core_search: consistent frontpage course search 2020-09-21 10:15:11 +02:00
Peter Dias c8388ead0f MDL-69065 course: Provide the id for the sr param
* Pass the section return id to the activity chooser
* Additional behat test to cover the case
2020-06-23 13:19:07 +08:00
Bas Brands 91de0ed823 MDL-67874 theme_boost: make focus outline accessible 2020-05-26 09:54:12 +02:00
Sara Arjona 16b55f1cad Merge branch 'MDL-68177-master_course_renderer_split_methods' of https://github.com/roland04/moodle 2020-05-25 17:11:03 +02:00
Mikel Martín ebd08abce8 MDL-68177 course: split course_info_box into different methods 2020-05-25 16:14:37 +02:00
Mathew May e146a2ca74 MDL-68662 core_course: Add new tabs to the chooser
We now have two more tabs in the chooser.
Activities & Resources aer now offered in different tabs.
2020-05-20 15:53:06 +08:00
Víctor Déniz Falcón 50d3cc3268 Merge branch 'MDL-68235' of git://github.com/Chocolate-lightning/moodle 2020-05-06 20:05:32 +01:00
Mathew May edf52a0e65 MDL-68235 core_course: Sections work after drag and drop reordering 2020-05-06 16:14:48 +08:00
Mihail Geshoski 255a62ff88 MDL-68330 media_videojs: Fix videojs player rendering issue 2020-04-24 14:57:02 +08:00