mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add CSS classes to associated accounts rows
This commit is contained in:
parent
72441e2c7c
commit
c422520b4a
@ -106,10 +106,9 @@
|
|||||||
{{#if associatedAccountsLoaded}}
|
{{#if associatedAccountsLoaded}}
|
||||||
<table>
|
<table>
|
||||||
{{#each authProviders as |authProvider|}}
|
{{#each authProviders as |authProvider|}}
|
||||||
<tr>
|
|
||||||
<td>{{authProvider.method.prettyName}}</td>
|
|
||||||
|
|
||||||
{{#if authProvider.account}}
|
{{#if authProvider.account}}
|
||||||
|
<tr class="{{dasherize authProvider.method.name}} account-connected">
|
||||||
|
<td>{{authProvider.method.prettyName}}</td>
|
||||||
<td>{{authProvider.account.description}}</td>
|
<td>{{authProvider.account.description}}</td>
|
||||||
<td>
|
<td>
|
||||||
{{#if authProvider.method.can_revoke}}
|
{{#if authProvider.method.can_revoke}}
|
||||||
@ -118,7 +117,10 @@
|
|||||||
{{/conditional-loading-spinner}}
|
{{/conditional-loading-spinner}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
<tr class="{{dasherize authProvider.method.name}}">
|
||||||
|
<td>{{authProvider.method.prettyName}}</td>
|
||||||
<td colspan=2>
|
<td colspan=2>
|
||||||
{{#if authProvider.method.can_connect}}
|
{{#if authProvider.method.can_connect}}
|
||||||
{{d-button action=(action "connectAccount") actionParam=authProvider.method label="user.associated_accounts.connect" class="btn-default" icon="plug" disabled=disableConnectButtons}}
|
{{d-button action=(action "connectAccount") actionParam=authProvider.method label="user.associated_accounts.connect" class="btn-default" icon="plug" disabled=disableConnectButtons}}
|
||||||
@ -126,9 +128,8 @@
|
|||||||
{{i18n 'user.associated_accounts.not_connected'}}
|
{{i18n 'user.associated_accounts.not_connected'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</table>
|
</table>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
Loading…
Reference in New Issue
Block a user