MDL-64820 forum: add missing classes and tweaks to templates

Added in required classes for behat and tweaks to get the behat
tests passing.
This commit is contained in:
Ryan Wyllie
2019-03-22 09:31:21 +08:00
parent 69aa03623d
commit c5477bfc65
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -81,14 +81,15 @@
{{$discussion_list_body}}
<tbody>
{{#summaries}}
<tr>
<!-- The discussion class is only required for behat tests to identify the row -->
<tr class="discussion">
<td scope="col" class="pinned p-0 text-center align-middle">
{{#discussion.pinned}}
{{#pix}}i/pinned, mod_forum, {{#str}}discussionpinned, mod_forum{{/str}}{{/pix}}
{{/discussion.pinned}}
</td>
<td scope="col" class="topic p-0">
<a class="p-3 p-l-0 w-100 h-100 d-block" href="{{discussion.urls.view}}">{{discussion.name}}</a>
<a class="p-3 p-l-0 w-100 h-100 d-block" href="{{discussion.urls.view}}">{{{discussion.name}}}</a>
</td>
<td scope="col" class="author">
{{#firstpostauthor}}
@@ -33,7 +33,8 @@
{{#posts}}
{{< mod_forum/forum_discussion_post }}
{{$replies}}
<div class="indent">
<!-- The forumthread class is only added for behat -->
<div class="indent forumthread">
{{#replies}}
{{> mod_forum/forum_discussion_threaded_post }}
{{/replies}}