MDL-65032 mod_forum: Use correct template context data 'istimelocked'
authorJun Pataleta <jun@moodle.com>
Fri, 26 Apr 2019 07:42:54 +0000 (15:42 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 26 Apr 2019 07:42:54 +0000 (15:42 +0800)
mod/forum/templates/forum_discussion.mustache

index 0555e76..e660461 100644 (file)
 {{#html}}
     <div class="d-flex flex-wrap flex-row-reverse m-b-1" data-container="discussion-tools" style="text-align: right;">
         {{#capabilities.manage}}
 {{#html}}
     <div class="d-flex flex-wrap flex-row-reverse m-b-1" data-container="discussion-tools" style="text-align: right;">
         {{#capabilities.manage}}
-            {{^timelocked}}
+            {{^istimelocked}}
             <div class="pl-1 discussionlock">
                 {{> forum/discussion_lock_toggle }}
             </div>
             <div class="pl-1 discussionlock">
                 {{> forum/discussion_lock_toggle }}
             </div>
-            {{/timelocked}}
+            {{/istimelocked}}
         {{/capabilities.manage}}
         <div class="pl-1">{{{subscribe}}}</div>
     </div>
         {{/capabilities.manage}}
         <div class="pl-1">{{{subscribe}}}</div>
     </div>