Skip to content

Commit

Permalink
Merge branch 'MDL-76607-master' of https://github.com/davewoloszyn/mo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed Jan 11, 2023
2 parents c81fbbf + 6dc10b6 commit be1c148
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 23 deletions.
2 changes: 1 addition & 1 deletion blocks/timeline/templates/event-list-item.mustache
Expand Up @@ -79,7 +79,7 @@
{{activitystr}}
{{/courseview}}
{{^courseview}}
{{#course.fullnamedisplay}}{{{course.fullnamedisplay}}} · {{/course.fullnamedisplay}}{{activitystr}}
{{activitystr}}{{#course.fullnamedisplay}} · {{{course.fullnamedisplay}}}{{/course.fullnamedisplay}}
{{/courseview}}
</small>
</div>
Expand Down
36 changes: 18 additions & 18 deletions blocks/timeline/tests/behat/block_timeline_dates.feature
Expand Up @@ -39,23 +39,23 @@ Feature: The timeline block allows users to see upcoming activities
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
When I click on "Next 7 days" "link" in the "Timeline" "block"
Then "Test choice 1" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Choice closes" in the "Timeline" "block"
And I should see "Choice closes · Course 2" in the "Timeline" "block"
And "Test feedback 1" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Feedback closes" in the "Timeline" "block"
And I should see "Feedback closes · Course 2" in the "Timeline" "block"
And "Test assign 2" "link" should exist in the "Timeline" "block"
And "Test feedback 4" "link" should exist in the "Timeline" "block"
And "Test choice 2" "link" should not exist in the "Timeline" "block"
And "Test choice 3" "link" should not exist in the "Timeline" "block"
And "Test feedback 3" "link" should not exist in the "Timeline" "block"
And "Test assign 1" "link" should not exist in the "Timeline" "block"
And I should not see "Course 1 · Assignment is due" in the "Timeline" "block"
And I should not see "Assignment is due · Course 1" in the "Timeline" "block"

Scenario: Overdue in date view
Given I log in as "student1"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
When I click on "Overdue" "link" in the "Timeline" "block"
Then "Test assign 1" "link" should exist in the "Timeline" "block"
And I should see "Course 1 · Assignment is due" in the "Timeline" "block"
And I should see "Assignment is due · Course 1" in the "Timeline" "block"
And "Test assign 2" "link" should exist in the "Timeline" "block"
And "Test choice 2" "link" should not exist in the "Timeline" "block"
And "Test feedback 1" "link" should not exist in the "Timeline" "block"
Expand All @@ -69,20 +69,20 @@ Feature: The timeline block allows users to see upcoming activities
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
When I click on "All" "link" in the "Timeline" "block"
Then "Test assign 1" "link" should exist in the "Timeline" "block"
And I should see "Course 1 · Assignment is due" in the "Timeline" "block"
And I should see "Assignment is due · Course 1" in the "Timeline" "block"
And "Test assign 2" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Assignment is due" in the "Timeline" "block"
And I should see "Assignment is due · Course 2" in the "Timeline" "block"
And "Test feedback 1" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Feedback closes" in the "Timeline" "block"
And I should see "Feedback closes · Course 2" in the "Timeline" "block"
And "Test choice 1" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Choice closes" in the "Timeline" "block"
And I should see "Choice closes · Course 2" in the "Timeline" "block"
And "Test feedback 4" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Feedback closes" in the "Timeline" "block"
And I should see "Feedback closes · Course 2" in the "Timeline" "block"
And "Test choice 2" "link" should not exist in the "Timeline" "block"
And "Test feedback 2" "link" should not exist in the "Timeline" "block"
And I click on "Show more activities" "button"
And "Test feedback 2" "link" should exist in the "Timeline" "block"
And I should see "Course 1 · Feedback closes" in the "Timeline" "block"
And I should see "Feedback closes · Course 1" in the "Timeline" "block"
And "Test choice 3" "link" should exist in the "Timeline" "block"
And I should see "Test assign 1" in the "Timeline" "block"
And I should see "Test feedback 1" in the "Timeline" "block"
Expand All @@ -97,20 +97,20 @@ Feature: The timeline block allows users to see upcoming activities
When I click on "All" "link" in the "Timeline" "block"
And I reload the page
Then "Test assign 1" "link" should exist in the "Timeline" "block"
And I should see "Course 1 · Assignment is due" in the "Timeline" "block"
And I should see "Assignment is due · Course 1" in the "Timeline" "block"
And "Test assign 2" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Assignment is due" in the "Timeline" "block"
And I should see "Assignment is due · Course 2" in the "Timeline" "block"
And "Test feedback 1" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Feedback closes" in the "Timeline" "block"
And I should see "Feedback closes · Course 2" in the "Timeline" "block"
And "Test choice 1" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Choice closes" in the "Timeline" "block"
And I should see "Choice closes · Course 2" in the "Timeline" "block"
And "Test feedback 4" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Feedback closes" in the "Timeline" "block"
And I should see "Feedback closes · Course 2" in the "Timeline" "block"
And I should not see "Test choice 2" in the "Timeline" "block"
And I should not see "Test feedback 2" in the "Timeline" "block"
And I click on "Show more activities" "button"
And "Test feedback 2" "link" should exist in the "Timeline" "block"
And I should see "Course 1 · Feedback closes" in the "Timeline" "block"
And I should see "Feedback closes · Course 1" in the "Timeline" "block"
And I should see "Test assign 1" in the "Timeline" "block"
And I should see "Test feedback 1" in the "Timeline" "block"
And I should see "Test feedback 3" in the "Timeline" "block"
Expand All @@ -124,9 +124,9 @@ Feature: The timeline block allows users to see upcoming activities
When I click on "Overdue" "link" in the "Timeline" "block"
And I reload the page
Then "Test assign 1" "link" should exist in the "Timeline" "block"
And I should see "Course 1 · Assignment is due" in the "Timeline" "block"
And I should see "Assignment is due · Course 1" in the "Timeline" "block"
And "Test assign 2" "link" should exist in the "Timeline" "block"
And I should see "Course 2 · Assignment is due" in the "Timeline" "block"
And I should see "Assignment is due · Course 2" in the "Timeline" "block"
And "Test feedback 1" "link" should not exist in the "Timeline" "block"
And "Test feedback 3" "link" should not exist in the "Timeline" "block"
And "Test feedback 4" "link" should not exist in the "Timeline" "block"
Expand Down
1 change: 1 addition & 0 deletions theme/boost/scss/moodle/calendar.scss
Expand Up @@ -736,4 +736,5 @@ table.calendartable caption {

.cal_courses_flt {
color: $gray-600;
max-width: 75%;
}
15 changes: 15 additions & 0 deletions theme/boost/scss/moodle/core.scss
Expand Up @@ -2577,6 +2577,7 @@ input[disabled] {

.custom-select {
width: auto;
max-width: 100%;
}

.fade.in {
Expand Down Expand Up @@ -3030,3 +3031,17 @@ blockquote {
color: $gray-700;
border-left: 5px solid $gray-400;
}

/** Prevent long strings exceeding page width */
.page-header-headings,
.coursename,
.categoryname,
.breadcrumb-item,
.dropdown-item {

&:not(.text-truncate) {
word-break: normal;
overflow-wrap: anywhere;
white-space: normal;
}
}
16 changes: 14 additions & 2 deletions theme/boost/style/moodle.css
Expand Up @@ -11943,7 +11943,8 @@ input[disabled] {
cursor: not-allowed; }

.custom-select {
width: auto; }
width: auto;
max-width: 100%; }

.fade.in {
opacity: 1; }
Expand Down Expand Up @@ -12327,6 +12328,16 @@ blockquote {
color: #495057;
border-left: 5px solid #ced4da; }

/** Prevent long strings exceeding page width */
.page-header-headings:not(.text-truncate),
.coursename:not(.text-truncate),
.categoryname:not(.text-truncate),
.breadcrumb-item:not(.text-truncate),
.dropdown-item:not(.text-truncate) {
word-break: normal;
overflow-wrap: anywhere;
white-space: normal; }

.icon {
font-size: 16px;
width: 16px;
Expand Down Expand Up @@ -13721,7 +13732,8 @@ table.calendartable caption {
margin: 0; }

.cal_courses_flt {
color: #6a737b; }
color: #6a737b;
max-width: 75%; }

.content-bank-container .cb-content-wrapper {
padding: 0.5rem;
Expand Down
16 changes: 14 additions & 2 deletions theme/classic/style/moodle.css
Expand Up @@ -11943,7 +11943,8 @@ input[disabled] {
cursor: not-allowed; }

.custom-select {
width: auto; }
width: auto;
max-width: 100%; }

.fade.in {
opacity: 1; }
Expand Down Expand Up @@ -12327,6 +12328,16 @@ blockquote {
color: #495057;
border-left: 5px solid #ced4da; }

/** Prevent long strings exceeding page width */
.page-header-headings:not(.text-truncate),
.coursename:not(.text-truncate),
.categoryname:not(.text-truncate),
.breadcrumb-item:not(.text-truncate),
.dropdown-item:not(.text-truncate) {
word-break: normal;
overflow-wrap: anywhere;
white-space: normal; }

.icon {
font-size: 16px;
width: 16px;
Expand Down Expand Up @@ -13721,7 +13732,8 @@ table.calendartable caption {
margin: 0; }

.cal_courses_flt {
color: #6a737b; }
color: #6a737b;
max-width: 75%; }

.content-bank-container .cb-content-wrapper {
padding: 0.5rem;
Expand Down

0 comments on commit be1c148

Please sign in to comment.