Skip to content

Commit

Permalink
feat(ui): use dl tag instead of p tag in user-info ui (argoproj#6505)
Browse files Browse the repository at this point in the history
Signed-off-by: Tetsuya Shiota <[email protected]>
  • Loading branch information
shioshiota committed Aug 9, 2021
1 parent 5b8f797 commit d1d96b0
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions ui/src/app/userinfo/components/user-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,30 @@ export class UserInfo extends BasePage<RouteComponentProps<any>, State> {
</h3>
{this.state.userInfo && (
<>
<p>Issuer: {this.state.userInfo.issuer || '-'}</p>
<p>Subject: {this.state.userInfo.subject || '-'}</p>
<p>Groups: {(this.state.userInfo.groups && this.state.userInfo.groups.length > 0 && this.state.userInfo.groups.join(', ')) || '-'}</p>
<p>Email: {this.state.userInfo.email || '-'}</p>
<p>Email Verified: {this.state.userInfo.emailVerified || '-'}</p>
<p>Service Account: {this.state.userInfo.serviceAccountName || '-'}</p>
<dl>
<dt>Issuer:</dt>
<dd>{this.state.userInfo.issuer || '-'}</dd>
</dl>
<dl>
<dt>Subject:</dt>
<dd>{this.state.userInfo.subject || '-'}</dd>
</dl>
<dl>
<dt>Groups:</dt>
<dd>{(this.state.userInfo.groups && this.state.userInfo.groups.length > 0 && this.state.userInfo.groups.join(', ')) || '-'}</dd>
</dl>
<dl>
<dt>Email:</dt>
<dd>{this.state.userInfo.email || '-'}</dd>
</dl>
<dl>
<dt>Email Verified:</dt>
<dd>{this.state.userInfo.emailVerified || '-'}</dd>
</dl>
<dl>
<dt>Service Account:</dt>
<dd>{this.state.userInfo.serviceAccountName || '-'}</dd>
</dl>
</>
)}
<a className='argo-button argo-button--base-o' href={uiUrl('login')}>
Expand Down

0 comments on commit d1d96b0

Please sign in to comment.