MDL-58146 block_myoverview: format summary using shortentext helper
authorSimey Lameze <simey@moodle.com>
Thu, 9 Mar 2017 03:02:04 +0000 (11:02 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 3 Apr 2017 03:37:06 +0000 (11:37 +0800)
Part of MDL-55611 epic.

blocks/myoverview/templates/course-summary.mustache
blocks/myoverview/templates/courses-view-course-item.mustache

index 0dbb7c9..cfaa65b 100644 (file)
@@ -40,7 +40,7 @@
             {{startdate}} - {{enddate}}
         </div>
         <div class="row text-muted">
-            {{{summary}}}
+            {{#shortentext}} 140, {{{summary}}}{{/shortentext}}
         </div>
     </div>
 </div>
index 58ea29f..ba1b740 100644 (file)
@@ -44,7 +44,7 @@
                     {{startdate}} - {{enddate}}
                 </div>
                 <div class="row text-muted">
-                    {{{summary}}}
+                    {{#shortentext}} 140, {{{summary}}}{{/shortentext}}
                 </div>
             </div>
         </div>