Skip to content

Commit

Permalink
MDL-35971 mod_forum: Add proper discussion list table description
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jan 8, 2020
1 parent b2c0237 commit 6783597
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mod/forum/lang/en/forum.php
Expand Up @@ -591,7 +591,7 @@
$string['seeallposts'] = 'See all posts made by this user';
$string['settings'] = 'Settings';
$string['shortpost'] = 'Short post';
$string['showingcountoftotaldiscussions'] = 'Showing {$a->count} of {$a->total} discussions';
$string['showingcountoftotaldiscussions'] = 'List of discussions. Showing {$a->count} of {$a->total} discussions';
$string['showsubscribers'] = 'Show/edit current subscribers';
$string['singleforum'] = 'A single simple discussion';
$string['smallmessage'] = '{$a->user} posted in {$a->forumname}';
Expand Down
12 changes: 4 additions & 8 deletions mod/forum/templates/discussion_list.mustache
Expand Up @@ -69,14 +69,10 @@
{{{ pagination }}}
{{/discussion_top_pagination}}
{{$discussion_list_output}}
<span id="discussion-table-description-{{uniqid}}" class="sr-only">
{{#str}} showingcountoftotaldiscussions, mod_forum, {"count": "{{visiblediscussioncount}}", "total":"{{totaldiscussioncount}}"} {{/str}}
</span>
<table
class="table table-hover table-striped discussion-list"
aria-label='{{#str}} showingcountoftotaldiscussions, mod_forum, {"count": "{{visiblediscussioncount}}", "total":"{{totaldiscussioncount}}"} {{/str}}'
aria-describedby="discussion-table-description-{{uniqid}}"
>
<table class="table table-hover table-striped discussion-list">
<caption id="discussion-table-description-{{uniqid}}" class="sr-only">
{{#str}} showingcountoftotaldiscussions, mod_forum, {"count": "{{visiblediscussioncount}}", "total":"{{totaldiscussioncount}}"} {{/str}}
</caption>
{{$discussion_list_header}}
<thead>
<tr>
Expand Down

0 comments on commit 6783597

Please sign in to comment.