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.

refactor: Rename `custom_profile_fields_link` to use kebab-case.

Hardik Dharmanif27adec02d19
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index eef433125a0..fc191b5155f 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -132,7 +132,7 @@
}
/* Overriding CSS from bootstrap > nav-list. */
- .custom_profile_fields_link {
+ .custom-profile-fields-link {
padding-top: 0;
padding-bottom: 0;
diff --git a/web/templates/user_custom_profile_fields.hbs b/web/templates/user_custom_profile_fields.hbs
index 4edb33d1d2e..f0c7786aa0e 100644
--- a/web/templates/user_custom_profile_fields.hbs
+++ b/web/templates/user_custom_profile_fields.hbs
@@ -4,9 +4,9 @@
<div class="name">{{this.name}}</div>
{{/unless}}
{{#if this.is_link}}
- <a tabindex="0" href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value custom_profile_fields_link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{this.value}}</a>
+ <a tabindex="0" href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value custom-profile-fields-link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{this.value}}</a>
{{else if this.is_external_account}}
- <a tabindex="0" href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value custom_profile_fields_link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">
+ <a tabindex="0" href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value custom-profile-fields-link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">
{{#if (eq this.subtype "github") }}
<i class="fa fa-github" aria-hidden="true"></i>
{{else if (eq this.subtype "twitter") }}