#207 Changed font-size for awarded time in the report in mobile view

Also made minor alignment changes.
This commit is contained in:
Mark Nelson 2018-07-09 22:48:49 +08:00
parent 7d2826654d
commit e3675ff267
3 changed files with 19 additions and 12 deletions

View file

@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$addons = array( $addons = [
'mod_customcert' => [ // Plugin identifier. 'mod_customcert' => [ // Plugin identifier.
'handlers' => [ // Different places where the plugin will display content. 'handlers' => [ // Different places where the plugin will display content.
'issueview' => [ // Handler unique name. 'issueview' => [ // Handler unique name.
@ -34,6 +34,10 @@ $addons = array(
], ],
'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the plugin). 'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the plugin).
'method' => 'mobile_view_activity', // Main function in \mod_customcert\output\mobile. 'method' => 'mobile_view_activity', // Main function in \mod_customcert\output\mobile.
'styles' => [
'url' => '/mod/customcert/mobile/styles.css',
'version' => 1
]
] ]
], ],
'lang' => [ // Language strings that are used in all the handlers. 'lang' => [ // Language strings that are used in all the handlers.
@ -45,6 +49,6 @@ $addons = array(
['receiveddate', 'customcert'], ['receiveddate', 'customcert'],
['requiredtimenotmet', 'customcert'], ['requiredtimenotmet', 'customcert'],
['selectagroup', 'moodle'] ['selectagroup', 'moodle']
],
] ]
); ]
];

3
mobile/styles.css Normal file
View file

@ -0,0 +1,3 @@
.timerewarded {
font-size: 14px;
}

View file

@ -134,7 +134,7 @@
<ion-col col-6 class="text-left"> <ion-col col-6 class="text-left">
<% displayname %> <% displayname %>
<br /> <br />
{{ <% timecreated %> | coreToLocaleString }} <div class="timerewarded">{{ <% timecreated %> | coreToLocaleString }}</div>
</ion-col> </ion-col>
<ion-col col-6 class="text-right"> <ion-col col-6 class="text-right">
<button ion-button icon-only clear [core-download-file]="{fileurl: '<% fileurl %>', timemodified: '<% currenttimestamp %>'}" moduleId="<% cmid %>" courseId="<% certificate.course %>" component="mod_customcert"> <button ion-button icon-only clear [core-download-file]="{fileurl: '<% fileurl %>', timemodified: '<% currenttimestamp %>'}" moduleId="<% cmid %>" courseId="<% certificate.course %>" component="mod_customcert">