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.
This commit is contained in:
Cynthia Lin 2019-07-16 10:37:22 +00:00 committed by Tim Abbott
parent 50cab76c59
commit 8b538d8b8d
1 changed files with 2 additions and 0 deletions

View File

@ -53,8 +53,10 @@
{{#unless page_params.is_admin}}{{#if page_params.realm_name_changes_disabled}}{{else}}{{#unless page_params.server_name_changes_disabled}}href="#change_email"{{/unless}}{{/if}}{{/unless}}>
<button type="button" class="button small white rounded inline-block" id="full_name"
{{#unless page_params.is_admin}}{{#if page_params.realm_name_changes_disabled}}disabled="disabled"{{else}}{{#if page_params.server_name_changes_disabled}}disabled="disabled"{{/if}}{{/if}}{{/unless}}>
{{~#if true~}}
<span id="full_name_value">{{page_params.full_name}}</span>
<i class="fa fa-pencil"></i>
{{~/if~}}
</button>
</a>
<i class="fa fa-question-circle change_name_tooltip settings-info-icon" data-toggle="tooltip"