From 495e1b5615afc5fa94a14091c3de55f9cb294c43 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 20 Nov 2018 11:38:51 +0800 Subject: [PATCH] MDL-64092 block_timeline: Separate the activity view and submission link * Reintroduce separate links similar to 35 * Hide submission links if not actionable --- .../templates/event-list-item.mustache | 23 +++++++++++------- .../block_timeline/event-list-item.mustache | 24 +++++++++++-------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/blocks/timeline/templates/event-list-item.mustache b/blocks/timeline/templates/event-list-item.mustache index 40fe0dccf4e..1ff653ced1a 100644 --- a/blocks/timeline/templates/event-list-item.mustache +++ b/blocks/timeline/templates/event-list-item.mustache @@ -41,23 +41,28 @@ } } }} - + >
-
+
{{#icon}}{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}{{/icon}}
-
{{{name}}}
+
{{{name}}}
{{{course.fullnamedisplay}}} + {{#action.actionable}} +
+ {{{action.name}}} +
+ {{/action.actionable}}
{{#userdate}} {{timesort}}, {{#str}} strftimetime24, core_langconfig {{/str}} {{/userdate}} +
- +
diff --git a/theme/bootstrapbase/templates/block_timeline/event-list-item.mustache b/theme/bootstrapbase/templates/block_timeline/event-list-item.mustache index af008b17919..981a6c40565 100644 --- a/theme/bootstrapbase/templates/block_timeline/event-list-item.mustache +++ b/theme/bootstrapbase/templates/block_timeline/event-list-item.mustache @@ -42,13 +42,7 @@ } }}
  • - +