Thomas Ip
936366ffaa
org settings: Make emoji list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
d851e2dafc
org settings: Use list_render to create emojis table.
2019-08-21 16:50:22 -07:00
Thomas Ip
e309168d11
org settings: Make linkifiers table sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
8d0bc912f1
org settings: Use list_render to create linkifiers' table.
...
Moved the table to below the "Add linkifier" box for consistency with
the other settings sections. Also added a search box.
2019-08-21 16:50:22 -07:00
Thomas Ip
83ea462a0a
org settings: Make default streams list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
29803db802
org settings: Make deactivated users list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
2eba496968
org settings: Make active users list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
444ce74a8e
org settings: Make bot list sortable.
2019-08-21 16:50:22 -07:00
Pragati Agrawal
5df6065bed
org settings: Deduplicate the template code for logo widget.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
4d0a94a3b1
org settings: Replace usage of ids with classes for delete button.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
c29b197ec7
org settings: Replace usage of ids with classes for upload button.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
67861529ac
org settings: Replace id comparision with `hasClass` function.
...
This is in series of refactoring of code for realm logo settings.
Further, we will remove ids from the template as well and simply use
general classes (.day-settings and .night-settings) to identify to which
theme-mode particular element belongs i.e. day or night as we did in this
change.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
34d2616158
org settings: Use `.realm-logo-file-input-error` to identify input errors.
...
This replaces `realm_logo_file_input_error` and
`realm_night_logo_file_input_error` with one class.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
c214d184d0
org settings: Replace logo's file input ids with `.realm-logo-file-input`.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
a6cd0b8788
org settings: Use `realm-logo-img` class as identifier of realm logo image.
...
This replaces previously being used ids, `realm-settings-logo` and
`realm-settings-night-logo` with a common class `realm-logo-img`.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
6ab2dcf4ac
settings_org: Add ids to the section of day and night logos.
...
- These ids will further be used to represent each section concisely and
deduplicating code.
- Also, removed `realm-night-logo-section` class as it was redundant.
2019-08-21 15:49:25 -07:00
Thomas Ip
cbae51db63
settings: Move API key form into its own modal.
...
The modal is rendered dynamically to avoid password managers
inserting passwords into the input field too aggressively.
Fixes #12523 .
2019-08-14 10:50:45 -07:00
Wyatt Hoodes
f623540409
data export: Add UI to trigger data export.
...
This commit serves as the frontend piece for the "public export"
webapp feature.
Fixes : #11930
2019-08-12 18:21:38 -07:00
Pragati Agrawal
5b324e50ca
users: Apply email_address_visibility policy on the users list.
...
In the emails-hidden case, for non-admins, we should remove the email
field from "Users" list in the organization settings page.
Tweaked by tabbott to correctly handle the bots and deactivated users pages.
2019-08-02 15:28:36 -07:00
Yashashvi Dave
e55afc2629
user settings: Update alert message element in change-full-name modal.
2019-07-25 13:33:44 -07:00
Yashashvi Dave
e1dacb99df
user settings: Update alert message element in change-email modal.
2019-07-25 13:33:44 -07:00
Yashashvi Dave
b3b480709d
user settings: Update alert-msg-elem in change password modal.
2019-07-25 13:33:44 -07:00
Yashashvi Dave
5506b16fa8
user settings: Add separate alert-save widget for profile custom fields.
...
Fixes part of #12748
2019-07-25 13:33:44 -07:00
Yashashvi Dave
3c16b73fcd
account settings: Simplify handlebars conditional logics.
...
This commit simplifies complex handlebars conditional
logic for account settings tooltips and fields.
2019-07-25 13:33:44 -07:00
Tim Abbott
1b9a0367f2
settings: Fix indication for whether push notifications are enabled.
...
This was apparently broken in
981433d13c
, which used an apparently
invalid partial syntax for doing lookups.
2019-07-22 16:14:13 -07:00
Rishi Gupta
7d8d0b2284
settings: Update upgrade text and styling.
...
When we add Plus, the first sentence should change to "Available on Zulip
Standard and Plus".
I copied the styling of .tip out of expediency, but it's also possible that
long term we'll want only 1 tip-like box styling.
The hover styling is a bit random, but I tried to copy other hover styles I
found in settings.scss.
Note that this renames .upgrade_realm_plan_type_suggestion to .upgrade-tip.
2019-07-21 14:32:36 -07:00
Cynthia Lin
fd7cf53190
templates: Eliminate anchor links with nested buttons.
...
Given that all links are now modals triggered by JS, the anchor links are
just invalid HTML that have no purpose. This commit refactors the HTML to
eliminate them by adding the Bootstrap-native btn-link class to maintain
styling. Fixes part of #6126 .
2019-07-19 13:27:37 -07:00
Tim Abbott
d2f1c84001
settings: Rewrite logic for whether users can change name.
...
This moves this somewhat complicated, duplicated logic into a single
JavaScript function.
2019-07-16 11:43:57 -07:00
Cynthia Lin
8b538d8b8d
user settings: Prevent linkifying trailing whitespace in change name button.
...
When user name changes are disabled and the disabled name change info icon
shows, trailing whitespace gets linkified because of the link's
inline-block property. Use Handlebars whitespace omission syntax to
eliminate this behavior.
2019-07-16 11:43:57 -07:00
Cynthia Lin
50cab76c59
user settings: Hide disabled name change info icon for admins.
...
This icon should only show when the user is not an admin and either the
realm or server settings have disabled name changes. Previously the icon
always showed for admin users.
2019-07-16 11:43:57 -07:00
David Wood
9bace3f2cd
notifications: Allow only notifiable in unread count.
...
This commit adds a new setting to the user's notification settings that
will change the behaviour of the unread count in the title bar and
desktop application.
When enabled, the title bar will show the count of unread private messages
and mentions. When disabled, the title bar will act as before, showing
the total number of unread messages.
Fixes #1736 .
2019-07-13 15:49:04 -07:00
Anders Kaseorg
0c565f50be
templates: Use upstream Handlebars partials syntax.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-07-12 21:11:14 -07:00
Anders Kaseorg
3c3471b720
templates: Rename *.handlebars ↦ *.hbs and - ↦ _.
...
Tweaked by tabbott to avoid accidentally disabling the linter for
handlebars templates.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-07-12 21:11:03 -07:00
Cynthia Lin
e5d0448505
user settings: Improve accessibility for new delete profile picture button.
2019-07-12 16:53:25 -07:00
Cynthia Lin
886deaf48d
styles: Remove superflous .white-color class.
...
Class was only used in one location, rendering it unnecessary.
2019-07-12 16:53:25 -07:00
Cynthia Lin
faa556ab5e
user settings: Change delete profile picture button into a x icon.
...
Fixes part of #10255 .
2019-07-12 16:53:25 -07:00
Yashashvi Dave
ff75c77f7a
account settings: Replace logic with existing functions.
...
Replace settings api calls with existing function
`settings_ui.do_settings_change()`. This commit also
adds a ui element for save alert notificaiton.
2019-07-11 13:29:08 -07:00
Yashashvi Dave
ecddc10272
user setting: Fix error message style in change user info modals.
...
This commit fixes style of error message in update-user-info
modals. Commit adds error message element in modal body and
fixes margin.
2019-07-11 13:17:42 -07:00
Yashashvi Dave
27ead227c0
custom fields: Add separate alert-save widget for create field.
...
Add separate alert-notification widget for create-custom-field
in admin view.
Fixes part of #12748
2019-07-11 12:52:21 -07:00
Rishi Gupta
5ecfcb0651
settings: Add a few (?) links to /help articles.
2019-07-10 12:26:38 -07:00
Rishi Gupta
c8d6cfa9b0
settings: Note that alert words are not case sensitive.
...
Hopefully people translating to languages that don't have case will know to
ignore this second sentence.
2019-07-10 12:26:38 -07:00
Yashashvi Dave
d7ee2aced1
models: Add `external_account` in custom profile field types.
...
Add new custom profile field type, External account.
External account field links user's social media
profile with account. e.g. GitHub, Twitter, etc.
Fixes part of #12302
2019-07-09 17:21:54 -07:00
Yashashvi Dave
ecad54e9f1
org settings: Add `wrapped-table` class in deactivated user table.
...
Fix style of deactivated user table list in org setting,
by adding `wrapped-table` class style to table.
2019-07-09 13:07:35 -07:00
Yashashvi Dave
fa5d6bb2d6
org settings: Display deactivated-user section to all.
...
Fixes #12290
2019-07-09 13:07:35 -07:00
Thomas Ip
f6aaf43029
refactor: Use explicit path when referencing handlebars templates.
2019-07-02 16:23:30 -07:00
Rishi Gupta
32435bde3f
settings: Update strings explaining name/email change restrictions.
...
Better to be short and to the point.
2019-06-26 14:10:52 -07:00
Anders Kaseorg
e8d49330f2
templates: Replace logic helpers with sensible logic helpers.
...
`if_not_a_or_b_and_not_c`? Really?
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-06-26 12:03:53 -07:00
Yashashvi Dave
47f9cbf824
display settings: Deduplicate template rendering.
2019-06-24 14:41:53 -07:00
Yashashvi Dave
25dbda1e53
stream settings: Fix bug in deactivate stream modal appearance.
...
Stream deactivation modal should be append to main
unique id, stream overlay element.
This commit also add `new-style` class to modal.
Fixes #12394
2019-06-20 11:09:52 -07:00
Benjamin Melançon
b633092ff1
settings: Fix linkifier settings page example.
...
The Linkifier settings page example crossed wires with GitHub commit
hashes and issue IDs.
Fixes #12591
2019-06-16 16:40:36 -07:00