diff --git a/mod/forum/templates/discussion_list.mustache b/mod/forum/templates/discussion_list.mustache index 30bf5791c92..8ae2552a39c 100644 --- a/mod/forum/templates/discussion_list.mustache +++ b/mod/forum/templates/discussion_list.mustache @@ -42,12 +42,13 @@ }}data-gradable-itemtype="forum" {{! }}{{#firstgradeduserid}}data-initialuserid="{{firstgradeduserid}}" {{/firstgradeduserid}}{{! }}> - {{{groupchangemenu}}} {{#notifications}} {{> core/notification}} {{/notifications}} + {{{groupchangemenu}}} + {{#forum.capabilities.create}}
| + | {{#state.sortorder.isgroupdesc}} {{#str}}group{{/str}} {{#pix}}t/downlong, core, {{#str}}desc, core{{/str}}{{/pix}} {{/state.sortorder.isgroupdesc}} @@ -119,7 +120,7 @@ {{/state.sortorder.isgroupdesc}} | {{/forum.state.groupmode}} -+ | {{#state.sortorder.isstarterdesc}} {{#str}}startedby, mod_forum{{/str}} {{#pix}}t/downlong, core, {{#str}}desc, core{{/str}}{{/pix}} {{/state.sortorder.isstarterdesc}} @@ -132,7 +133,7 @@ {{/state.sortorder.isstarterasc}} {{/state.sortorder.isstarterdesc}} | -+ | {{#state.sortorder.islastpostdesc}} {{#str}}lastpost, mod_forum{{/str}} {{#pix}}t/downlong, core, {{#str}}desc, core{{/str}}{{/pix}} {{/state.sortorder.islastpostdesc}} @@ -146,7 +147,7 @@ {{/state.sortorder.islastpostdesc}} | {{#forum.capabilities.viewdiscussions}} -+ | {{#state.sortorder.isrepliesdesc}} {{#str}}replies, mod_forum{{/str}} {{#pix}}t/downlong, core, {{#str}}desc, core{{/str}}{{/pix}} {{/state.sortorder.isrepliesdesc}} @@ -164,7 +165,7 @@ | {{/forum.capabilities.viewdiscussions}} {{#forum.capabilities.subscribe}} -{{#str}} subscribed, mod_forum {{/str}} | +{{#str}} notsubscribed, mod_forum {{/str}} | {{/forum.capabilities.subscribe}}{{#str}}actions{{/str}} @@ -213,7 +214,7 @@ | {{#forum.state.groupmode}} -+ |
{{#discussion.group}}
| + |
{{#firstpostauthor}}
-
+
- {{fullname}}
-
- {{#userdate}}{{discussion.times.created}}, {{#str}}strftimedatemonthabbr, langconfig{{/str}}{{/userdate}}
+
{{/firstpostauthor}}
|
- + |
{{! TODO Check q&a, eachuser }}
- {{#latestpostid}}
-
- {{#userdate}}
- {{discussion.times.modified}}, {{#str}}strftimedateshortmonthabbr, langconfig{{/str}}
- {{/userdate}}
-
- {{/latestpostid}}
+ {{#latestpostauthor}}
+
+
+ {{/latestpostauthor}}
+
+
+ |
{{#forum.capabilities.viewdiscussions}}
- + | {{replies}} {{#forum.userstate.tracked}} {{#unread}} @@ -275,7 +288,7 @@ | {{/forum.capabilities.viewdiscussions}} {{#forum.capabilities.subscribe}} -+ | {{#discussion}} {{/forum.capabilities.subscribe}} - | + |
{{#discussion}}
{{#hasanyactions}}
diff --git a/theme/boost/scss/moodle/modules.scss b/theme/boost/scss/moodle/modules.scss
index 2525dadc461..8fad103429e 100644
--- a/theme/boost/scss/moodle/modules.scss
+++ b/theme/boost/scss/moodle/modules.scss
@@ -174,6 +174,26 @@ select {
margin-bottom: 0;
}
+#page-mod-forum-view {
+ table {
+ .fit-content {
+ width: 1px;
+ white-space: nowrap;
+ }
+
+ .limit-width {
+ max-width: 200px;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+
+ .author-info {
+ max-width: calc(100% - 35px - .5rem);
+ }
+ }
+ }
+}
+
#page-mod-forum-discuss .discussioncontrols {
width: auto;
margin: 0;
diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css
index 20aed1df789..8a7532858d7 100644
--- a/theme/boost/style/moodle.css
+++ b/theme/boost/style/moodle.css
@@ -16305,6 +16305,18 @@ select {
.forumsearch input[type=text] {
margin-bottom: 0; }
+#page-mod-forum-view table .fit-content {
+ width: 1px;
+ white-space: nowrap; }
+
+#page-mod-forum-view table .limit-width {
+ max-width: 200px;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden; }
+ #page-mod-forum-view table .limit-width .author-info {
+ max-width: calc(100% - 35px - .5rem); }
+
#page-mod-forum-discuss .discussioncontrols {
width: auto;
margin: 0; }
diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css
index 06f6444369d..0a47e472861 100644
--- a/theme/classic/style/moodle.css
+++ b/theme/classic/style/moodle.css
@@ -16577,6 +16577,18 @@ select {
.forumsearch input[type=text] {
margin-bottom: 0; }
+#page-mod-forum-view table .fit-content {
+ width: 1px;
+ white-space: nowrap; }
+
+#page-mod-forum-view table .limit-width {
+ max-width: 200px;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden; }
+ #page-mod-forum-view table .limit-width .author-info {
+ max-width: calc(100% - 35px - .5rem); }
+
#page-mod-forum-discuss .discussioncontrols {
width: auto;
margin: 0; }
|
|---|