Skip to content

Commit da93462

Browse files
authored
Merge pull request #2453 from crazyserver/MOBILE-3452
Mobile 3452
2 parents 147d106 + 9ee0abd commit da93462

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

scripts/functions.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22

33
LANGPACKSFOLDER='../../moodle-langpacks'
4-
stepnumber=$1
54

65
function check_success_exit {
76
if [ $? -ne 0 ]; then

scripts/lang_functions.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function build_lang($lang, $keys) {
186186
$local = 0;
187187

188188
$langparts = explode('-', $lang, 2);
189-
$parentname = $langparts[0] ?? "";
189+
$parentname = $langparts[0] ? $langparts[0] : "";
190190
$parent = "";
191191

192192
echo "Processing $lang";
@@ -307,8 +307,6 @@ function detect_lang($lang, $keys) {
307307
$langname = $string['thislanguage'];
308308
$title .= " ".$langname." -D";
309309

310-
311-
312310
// Add the translation to the array.
313311
foreach ($keys as $key => $value) {
314312
$string = get_translation_strings($langfoldername, $value->file);

src/addon/mod/workshop/components/index/addon-mod-workshop-index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h2>{{ 'addon.mod_workshop.yoursubmission' | translate }}</h2>
112112
<h2>{{ 'addon.mod_workshop.publishedsubmissions' | translate }}</h2>
113113
</ion-item-divider>
114114
<ng-container *ngFor="let submission of publishedSubmissions">
115-
<addon-mod-workshop-submission [submission]="submission" [courseId]="workshop.course" [module]="module" [workshop]="workshop" [access]="access" summary="true"></addon-mod-workshop-submission>
115+
<addon-mod-workshop-submission [submission]="submission" [courseId]="workshop.course" [module]="module" [workshop]="workshop" [access]="access" summary="true" class="core-as-item"></addon-mod-workshop-submission>
116116
</ng-container>
117117
</ion-card>
118118
</ng-container>
@@ -134,7 +134,7 @@ <h2>{{ 'addon.mod_workshop.assignedassessments' | translate }}</h2>
134134
<p>{{ 'addon.mod_workshop.assignedassessmentsnone' | translate }}</p>
135135
</ion-item>
136136
<ng-container *ngFor="let assessment of (assessments || [])">
137-
<addon-mod-workshop-submission [submission]="assessment.submission" [assessment]="assessment" [courseId]="workshop.course" [module]="module" [workshop]="workshop" [access]="access" summary="true"></addon-mod-workshop-submission>
137+
<addon-mod-workshop-submission [submission]="assessment.submission" [assessment]="assessment" [courseId]="workshop.course" [module]="module" [workshop]="workshop" [access]="access" summary="true" class="core-as-item"></addon-mod-workshop-submission>
138138
</ng-container>
139139
</ion-card >
140140
</ng-container>
@@ -156,7 +156,7 @@ <h2>{{ 'addon.mod_workshop.gradesreport' | translate }}</h2>
156156
</ion-item>
157157

158158
<ng-container *ngFor="let submission of grades">
159-
<addon-mod-workshop-submission [submission]="submission" [courseId]="workshop.course" [module]="module" [workshop]="workshop" [access]="access" summary="true"></addon-mod-workshop-submission>
159+
<addon-mod-workshop-submission [submission]="submission" [courseId]="workshop.course" [module]="module" [workshop]="workshop" [access]="access" summary="true" class="core-as-item"></addon-mod-workshop-submission>
160160
</ng-container>
161161

162162
<ion-grid *ngIf="page > 0 || hasNextPage">

src/addon/mod/workshop/components/submission/addon-mod-workshop-submission.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<core-loading [hideUntil]="loaded">
22
<div *ngIf="!summary">
3-
<ion-list-header text-wrap>
3+
<ion-item text-wrap class="addon-workshop-submission-title">
44
<ion-avatar core-user-avatar [user]="profile" [courseId]="courseId" [userId]="profile && profile.id" item-start></ion-avatar>
55
<h2><core-format-text [text]="submission.title" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text></h2>
66
<p *ngIf="profile && profile.fullname">{{profile.fullname}}</p>
@@ -21,7 +21,7 @@ <h2><core-format-text [text]="submission.title" contextLevel="module" [contextIn
2121
<ng-container *ngIf="submission.offline"><ion-icon name="time"></ion-icon> {{ 'core.notsent' | translate }}</ng-container>
2222
<ng-container *ngIf="submission.deleted"><ion-icon name="trash"></ion-icon> {{ 'core.deletedoffline' | translate }}</ng-container>
2323
</ion-note>
24-
</ion-list-header>
24+
</ion-item>
2525
<ion-item text-wrap *ngIf="submission.content">
2626
<core-format-text [component]="component" [componentId]="componentId" [text]="submission.content" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text>
2727
</ion-item>
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
ion-app.app-root addon-mod-workshop-submission,
2-
ion-app.app-root .card.with-borders addon-mod-workshop-submission {
3-
@include core-as-items();
1+
ion-app.app-root addon-mod-workshop-submission .addon-workshop-submission-title {
2+
3+
&.item-ios {
4+
border-bottom: $list-ios-header-border-bottom;
5+
}
6+
&.item-md {
7+
border-bottom: 1px solid $list-md-border-color;
8+
}
9+
10+
&:last-child {
11+
border: 0;
12+
}
413
}

src/app/app.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ ion-app.app-root {
113113
@include core-as-items();
114114
}
115115

116-
.card.with-borders .item,
117-
.list.with-borders .item {
116+
.card.with-borders > .item,
117+
.list.with-borders > .item {
118118
@include core-items();
119119
}
120120

src/theme/variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ $core-dd-question-colors: $white, $blue-light, #DCDCDC, #D8BFD8, #87CEFA, #DAA52
527527
border-bottom: $hairlines-width solid $list-ios-border-color;
528528
}
529529

530-
&:last-child > .item-inner {
530+
&.item-block:last-child > .item-inner {
531531
border-bottom: 0;
532532
}
533533
}

0 commit comments

Comments
 (0)