Commit graph

104692 commits

Author SHA1 Message Date
Mihail Geshoski
5a1e70573d MDL-73169 core_backup: Update course category breadcrumb nodes 2022-03-02 17:27:38 +08:00
Mihail Geshoski
e949e1a33b MDL-73169 core_filter: Update course category breadcrumb nodes 2022-03-02 17:27:38 +08:00
Mihail Geshoski
0cbe8704ee MDL-73169 core_cohort: Update course category breadcrumb nodes 2022-03-02 17:27:38 +08:00
Mihail Geshoski
8469f9e724 MDL-73169 core_role: Update course category breadcrumb nodes 2022-03-02 17:27:38 +08:00
Mihail Geshoski
805a9eebf5 MDL-73169 core_course: Update course category breadcrumb nodes 2022-03-02 17:27:38 +08:00
Mihail Geshoski
3a333176d1 MDL-73169 course: Add a general setup method for the category pages 2022-03-02 17:27:35 +08:00
Cameron Ball
53d3843955 MDL-54724 qtype_multianswer: Better handle corrupted questions
When questions are deleted, we now check if the parent is in use before deletion.

Prior to this, it would be possible for multianswer questions to reference
questions that have been deleted. This results in fatal errors when the quiz
is viewed.

This patch uses a dummy 'subquestion_replacement' to handle this case and
display some information to the end user about what has happened so that
they may take action to repair the corrupted question.

As a result of the bug described above, the sequence column of
mdl_question_multianswer can contiain references to questions that no
longer exist, and these IDs can make their way in to backups.

When this happens, the backups cannot be restored. To avoid this,
this patch skips trying to restore those questions that reference
question IDs that no longer exist (as there is no way to recover them).
2022-03-02 17:12:19 +08:00
Marc-Alexandre Ghaly
6dc1084c47 MDL-71636 qbank_columnsortorder: Add a columnsortorder settings page
This implementation will introduce a feature "columnsortorder"
which will add the column sort order feature in an external page.
Having this feature will give users the flexibility of sorting plugin
columns in the question bank view.
2022-03-02 09:08:50 +00:00
Amaia Anabitarte
77ca86bf87 MDL-73953 core_adminpresets: Upgrading presets with different language 2022-03-02 09:42:46 +01:00
Marc-Alexandre Ghaly
7c016b3451 MDL-71636 core_question : API changes for column_base
This commit implements methods visibility changes to column_base class
and its child classes.
2022-03-02 08:14:48 +00:00
Jun Pataleta
7fe8e34f7d Merge branch 'MDL-73939-master' of git://github.com/rezaies/moodle 2022-03-02 14:34:12 +08:00
Jake Dallimore
c08caf57c5 Merge branch 'MDL-73645-master-1' of git://github.com/mihailges/moodle 2022-03-02 14:10:19 +08:00
Jun Pataleta
7ac5deaced Merge branch 'MDL-73462-master' of https://github.com/peterRd/moodle 2022-03-02 13:46:10 +08:00
Mihail Geshoski
2a09a3ff76 MDL-73645 theme_boost: Keep section breadcumb item in specific layouts
Avoids removing the section breadcrumb nodes in the course module
context when the course uses the 'One section per page' layout.
Additionaly, it also removes the Courses and Category breadcrumb
nodes in the module contexts to be consistent with the way the
breadcrumbs are displayed in the course context.
2022-03-02 13:01:03 +08:00
Mihail Geshoski
3e24811c00 MDL-73645 course: Update breadcrumb nodes in the course reset page 2022-03-02 13:00:25 +08:00
Mihail Geshoski
1b2c0e6faf MDL-73645 badges: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
Mihail Geshoski
e7d9be51ab MDL-73645 core_contentbank: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
Mihail Geshoski
724578a008 MDL-73645 grades: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
Mihail Geshoski
1060ee827c MDL-73645 core_group: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
Mihail Geshoski
8968b51c6b MDL-73645 core_enrol: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
Mihail Geshoski
2ee1e6053c MDL-73645 theme_boost: Re-implement breadcrumbs in the course context 2022-03-02 13:00:25 +08:00
Peter Dias
4d5a25ffde MDL-73462 navigation: Leverage participants bar for category 2022-03-02 12:27:02 +08:00
Shamim Rezaie
6a1078da7c Merge branch 'MDL-73990-master' of https://github.com/sharidas/moodle 2022-03-02 12:55:34 +11:00
Sujith Haridasan
a2b003a917 MDL-73990 mod_assign: Show the activity info and attachments
Show the activity information in the view page and add/edit submission
page.
- Removed the line change to disable activity header. This should help
    - When any additional files are attached to the assignment by the
      teacher/admin they should be displayed in the view and add/edit
      submission page (in the default settings)
- Added more padding to the "Add submission" button.
- Changed the string 'Activity' to 'Activity instructions'.
2022-03-02 07:07:19 +05:30
Eloy Lafuente (stronk7)
1920243b79 Merge branch 'MDL-73756-master' of https://github.com/lameze/moodle 2022-03-01 19:46:21 +01:00
Eloy Lafuente (stronk7)
fba1593893 Merge branch 'MDL-73941' of https://github.com/paulholden/moodle 2022-03-01 16:10:37 +01:00
Eloy Lafuente (stronk7)
9dde12dc99 Merge branch 'MDL-72092-master' of https://github.com/Chocolate-lightning/moodle 2022-03-01 14:55:02 +01:00
Bas Brands
62fadb8ddb MDL-73906 core_my: default dashboard page header 2022-03-01 14:12:22 +01:00
Bas Brands
757b8c636e MDL-73796 theme_boost: mobile navcrumb design 2022-03-01 13:55:32 +01:00
Juan Leyva
c112780113 MDL-74042 vimeo: Support security hash for restricted videos 2022-03-01 13:32:34 +01:00
Bas Brands
fa6e4b2c9e MDL-73593 theme_boost: update boost top margins 2022-03-01 13:09:08 +01:00
Ilya Tregubov
47e880e347 Merge branch 'master_MDL-72448-qank_history' of https://github.com/catalyst/moodle-MDL-70329 2022-03-01 13:49:19 +02:00
Jun Pataleta
0dca278d71 MDL-72737 core: Rebuild JS modules 2022-03-01 19:22:24 +08:00
Mathew May
b0532aedd8 MDL-72092 behat: Add private files block where needed 2022-03-01 19:13:20 +08:00
Peter Dias
f456c349a0 MDL-72092 recentlyaccesseditems: Change the default block location
Add/Change the default location of the block on /my pages
2022-03-01 19:13:20 +08:00
Peter Dias
a190e2defc MDL-72092 timeline: Change the default location for the block
Add/Change the default location of the block on /my pages
2022-03-01 19:13:20 +08:00
Peter Dias
b12508c19a MDL-72092 calendar_month: Change the default location for the block
Add/Change the default location of the block on /my pages
2022-03-01 19:13:20 +08:00
Jun Pataleta
0f35a9b7f9 Merge branch 'MDL-72737-master-2' of https://github.com/bmbrands/moodle 2022-03-01 19:06:52 +08:00
Bas Brands
2faf5e8e48 MDL-72737 theme_boost: update for section header styles 2022-03-01 12:01:59 +01:00
Jun Pataleta
d8cadf7ecf Merge branch 'MDL-73462-master' of https://github.com/peterRd/moodle 2022-03-01 18:32:05 +08:00
Peter Dias
081b255ab0 MDL-73462 navigation: Behat test update 2022-03-01 17:57:24 +08:00
Peter Dias
b9f9aae134 MDL-73462 course: Update visible nodes in a cat context. 2022-03-01 17:57:24 +08: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
Paul Holden
5f810c4724 MDL-74020 course: update how required libraries are loaded in test.
Test data providers are executed before `setUpBeforeClass`, so any
library constants used by the providers must already be present.

Reverts part of the change in 691c5b83.
2022-03-01 09:33:35 +00:00
Jun Pataleta
1569398c56 Merge branch 'wip_MDL-73877_master' of https://github.com/gjb2048/moodle 2022-03-01 10:09:18 +01:00
Shamim Rezaie
54ea9e4f44 Merge branch 'MDL-73679-master-2' of https://github.com/andrewnicols/moodle 2022-03-01 10:05:09 +01:00
Bas Brands
137b2dd638 MDL-73841 block_myoverview: use text for selectors 2022-03-01 09:18:37 +01:00
Andrew Nicols
1c7a3712fd MDL-73679 core_courseformat: Move section content to separate template
Course formats may want to preserve the existing section information,
but either change the wrapper (.section .course-section-header), or
prepend and append additional content to it.

Prior to this change, the only way to do this was by copying the entire
content of the template.

This change moves the content of the .course-section-header to a
separate template.

This means that a course format can replace the .section
.course-section-header wrapper whilst retaining its content by
overriding the content/section template and including the
content/section/content template. For example:

```
<li id="section-{{num}}"{{!
    }} class="section course-section main clearfix{{!
    }}{{#onlysummary}} section-summary{{/onlysummary}}{{!
    }}{{#ishidden}} hidden{{/ishidden}}{{!
    }}{{#iscurrent}} current{{/iscurrent}}{{!
    }}{{#isstealth}} orphaned{{/isstealth}}{{!
    }}"
    data-sectionid="{{num}}"
    data-sectionreturnid="{{sectionreturnid}}"
    data-for="section"
    data-id="{{id}}"
    data-number="{{num}}"{{!
}}>

  <!--
      Add a custom div to the existing wrapper, without replacing the
      entire content of the section/content.
  -->
  <div class="my-custom-content">

    <!--
        The upstream content is here:
    -->
    <div class="course-section-header d-flex"
        data-for="section_title"
        data-id="{{id}}"
        data-number="{{num}}"
    >
        {{$ core_courseformat/local/content/cm/section/content }}
            {{> core_courseformat/local/content/cm/section/content }}
        {{/ core_courseformat/local/content/cm/section/content }}
    </div>

  </div>

</li>
```

It also means that a course format can append additional information to
this wrapper, for example:

```
{{< core_courseformat/local/content/section }}
    {{$ core_courseformat/local/content/cm/section/content }}
        <div class="some-custom-class">
            <!--
                Some custom content appended _before_ the course section
                content but within the wrapper
            -->
        </div>

        {{> core_courseformat/local/content/cm/section/content }}

        <div class="some-custom-class">
            <!--
                Some custom content appended _after_ the course section
                content but within the wrapper
            -->
        </div>
    {{/ core_courseformat/local/content/cm/section/content }}
{{/ core_courseformat/local/content/section }}
```
2022-03-01 12:03:47 +08:00
Andrew Nicols
9771a81a12 MDL-73679 core_courseformat: Move activity content to separate template
Course formats may want to preserve the existing activity information,
but either change the wrapper (.activity-item), or prepend and append
additional content to it.

Prior to this change, the only way to do this was by copying the entire
content of the template.

This change moves the content of the activity-item to a separate
template.

This means that a course format can replace the activity-item wrapper
whilst retaining its content by overriding the cm template and including
the cm/activity template. For example:

```
<div class="my-custom-activity-item {{!
        }}{{#modstealth}}hiddenactivity{{/modstealth}}{{!
        }}{{#modhiddenfromstudents}}hiddenactivity{{/modhiddenfromstudents}}{{!
        }}{{#modinline}}activityinline{{/modinline}}" data-activityname="{{activityname}}">
    {{#moveicon}} {{{moveicon}}} {{/moveicon}}
    {{$ core_courseformat/local/content/cm/activity }}
        {{> core_courseformat/local/content/cm/activity }}
    {{/ core_courseformat/local/content/cm/activity }}
</div>
```

It also means that a course format can append additional information to
this wrapper, for example:

```
{{< core_courseformat/local/content/cm }}
    {{$ core_courseformat/local/content/cm/activity }}
        {{> core_courseformat/local/content/cm/activity }}
    {{#cmmeta}}
    <div class="ct-activity-meta-container">
        {{{cmmeta}}}
    </div>
    {{/cmmeta}}
    {{/ core_courseformat/local/content/cm/activity }}
{{/ core_courseformat/local/content/cm }}
```
2022-03-01 12:03:47 +08:00
Andrew Nicols
ccb7d6db62 MDL-73679 courseformat: Wrap template inclusions in blocks 2022-03-01 12:03:47 +08:00