diff --git a/db/mobile.php b/db/mobile.php index 5e48962..ffbaffe 100644 --- a/db/mobile.php +++ b/db/mobile.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$addons = array( +$addons = [ 'mod_customcert' => [ // Plugin identifier. 'handlers' => [ // Different places where the plugin will display content. 'issueview' => [ // Handler unique name. @@ -34,6 +34,10 @@ $addons = array( ], 'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the plugin). '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. @@ -45,6 +49,6 @@ $addons = array( ['receiveddate', 'customcert'], ['requiredtimenotmet', 'customcert'], ['selectagroup', 'moodle'] - ], + ] ] -); +]; diff --git a/mobile/styles.css b/mobile/styles.css new file mode 100644 index 0000000..7c3ee69 --- /dev/null +++ b/mobile/styles.css @@ -0,0 +1,3 @@ +.timerewarded { + font-size: 14px; +} diff --git a/templates/mobile_view_activity_page.mustache b/templates/mobile_view_activity_page.mustache index 6371257..1d389e2 100644 --- a/templates/mobile_view_activity_page.mustache +++ b/templates/mobile_view_activity_page.mustache @@ -120,7 +120,7 @@ {{ 'plugin.mod_customcert.selectagroup' | translate }} <%#groups%> - selected<%/selected%>><% name %> + selected<%/selected%>><% name %> <%/groups%> @@ -134,20 +134,20 @@ <% displayname %>
- {{ <% timecreated %> | coreToLocaleString }} +
{{ <% timecreated %> | coreToLocaleString }}
<%#canmanage%> - + <%/canmanage%>