Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

linkifiers: Display reverse linkification as a checkbox in table.

Shubham Padia95896ff84c2d
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 1aa72910b5c..e8cbbc247fb 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1053,6 +1053,16 @@ input[type="checkbox"] {
td:first-child {
white-space: nowrap;
}
+
+ th.convert-url-heading {
+ display: inline-flex;
+ align-items: center;
+ gap: 3px;
+ }
+
+ td.convert-cell {
+ text-align: center;
+ }
}
#organization-permissions {
diff --git a/web/templates/settings/admin_linkifier_list.hbs b/web/templates/settings/admin_linkifier_list.hbs
index 64e355f5e05..973f34bee4e 100644
--- a/web/templates/settings/admin_linkifier_list.hbs
+++ b/web/templates/settings/admin_linkifier_list.hbs
@@ -15,8 +15,13 @@
<td>
<span class="linkifier_url_template">{{url_template}}</span>
</td>
- <td>
- <span class="linkifier_reverse_template">{{reverse_template}}</span>
+ <td class="convert-cell">
+ <span {{#if ../can_modify}}class="tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Edit the linkifier to modify' }}"{{/if}}>
+ <label class="checkbox">
+ <input type="checkbox" class="linkifier_convert_pasted_urls" {{#if reverse_template}}checked{{/if}} disabled />
+ <span class="rendered-checkbox"></span>
+ </label>
+ </span>
</td>
{{#if ../can_modify}}
<td class="no-select actions">
diff --git a/web/templates/settings/linkifier_settings_admin.hbs b/web/templates/settings/linkifier_settings_admin.hbs
index 436051b1072..e5456b5e8fc 100644
--- a/web/templates/settings/linkifier_settings_admin.hbs
+++ b/web/templates/settings/linkifier_settings_admin.hbs
@@ -39,7 +39,7 @@
<th>{{t "Example" }}</th>
<th>{{t "Pattern" }}</th>
<th>{{t "URL template" }}</th>
- <th>{{t "Convert URLs to" }}</th>
+ <th class="convert-url-heading">{{t "Convert" }}<i class="zulip-icon zulip-icon-link" aria-hidden="true"></i></th>
{{#if is_admin}}
<th class="actions">{{t "Actions" }}</th>
{{/if}}