Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_topics: Rename and refactor 'muted_topic_ui_row.hbs'.
Prakhar Pratyushb366c37452be
diff --git a/web/src/settings_muted_topics.js b/web/src/settings_muted_topics.jsindex 2a6e8815ec5..e7c70440acd 100644--- a/web/src/settings_muted_topics.js+++ b/web/src/settings_muted_topics.js@@ -1,6 +1,6 @@import $ from "jquery";-import render_muted_topic_ui_row from "../templates/muted_topic_ui_row.hbs";+import render_user_topic_ui_row from "../templates/user_topic_ui_row.hbs";import * as ListWidget from "./list_widget";import * as ui from "./ui";@@ -17,8 +17,8 @@ export function populate_list() {ListWidget.create($muted_topics_table, all_muted_topics, {name: "muted-topics-list",- modifier(muted_topic) {- return render_muted_topic_ui_row({muted_topic});+ modifier(user_topic) {+ return render_user_topic_ui_row({user_topic});},filter: {$element: $search_input,diff --git a/web/styles/settings.css b/web/styles/settings.cssindex c8e1ee0ce2f..574ce1e2392 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -1875,7 +1875,7 @@ $option_title_width: 180px;}}- .topic_date_muted {+ .topic_date_updated {display: none;}diff --git a/web/templates/settings/muted_topics_settings.hbs b/web/templates/settings/muted_topics_settings.hbsindex 8aaff4ffb4f..b5d29fa9948 100644--- a/web/templates/settings/muted_topics_settings.hbs+++ b/web/templates/settings/muted_topics_settings.hbs@@ -8,7 +8,7 @@<thead class="table-sticky-headers"><th data-sort="alphabetic" data-sort-prop="stream">{{t "Stream" }}</th><th data-sort="alphabetic" data-sort-prop="topic">{{t "Topic" }}</th>- <th data-sort="numeric" data-sort-prop="date_muted" class="topic_date_muted">{{t "Date muted" }}</th>+ <th data-sort="numeric" data-sort-prop="date_muted" class="topic_date_updated">{{t "Date muted" }}</th><th class="actions">{{t "Actions" }}</th></thead><tbody id="muted_topics_table" class="required-text" data-empty="{{t 'You have not muted any topics yet.'}}"></tbody>diff --git a/web/templates/muted_topic_ui_row.hbs b/web/templates/user_topic_ui_row.hbssimilarity index 62%rename from web/templates/muted_topic_ui_row.hbsrename to web/templates/user_topic_ui_row.hbsindex 1e995a3858f..b3fce06cac4 100644--- a/web/templates/muted_topic_ui_row.hbs+++ b/web/templates/user_topic_ui_row.hbs@@ -1,8 +1,8 @@-{{#with muted_topic}}-<tr data-stream-id="{{stream_id}}" data-stream="{{stream}}" data-topic="{{topic}}" data-date-muted="{{date_updated_str}}">+{{#with user_topic}}+<tr data-stream-id="{{stream_id}}" data-stream="{{stream}}" data-topic="{{topic}}" data-date-updated="{{date_updated_str}}"><td>{{stream}}</td><td>{{topic}}</td>- <td class="topic_date_muted">{{date_updated_str}}</td>+ <td class="topic_date_updated">{{date_updated_str}}</td><td class="actions"><span><a class="settings-unmute-topic">{{t "Unmute" }}</a></span></td>