зеркало из
1
0
Форкнуть 0
opensource-management-portal/views/link.pug

105 строки
4.1 KiB
Plaintext

//-
//- Copyright (c) Microsoft.
//- Licensed under the MIT license. See LICENSE file in the project root for full license information.
//-
extends layout
block content
//- Conditions for this page:
// - not yet linked
// - authenticated with AAD
div.container
div.row
div.col-md-8.col-lg-8
form(method='post')
if graphUser && graphUser.mail
input(type='hidden', name='sam', value=graphUser.mail)
if isServiceAccountCandidate
if false
h1 Create a service account link
p.lead Service accounts are often used for continuous integration, deployment and test systems
h5 Service account contact
p This account is a Service Account at #{config.brand.companyName}. Since many mail-enabled service accounts are not regularly monitored for communications, we need to record an e-mail address to associate with the maintainers of this account.
input(type='hidden', name='sa', value='1')
input.form-control(name='serviceAccountMail', type='text', placeholder='Discussion list, security group, or e-mail address of the primary maintainer')
h3 Service Account linking is not available
h5 Link details
else
h1 Link your accounts
p.lead.
#{graphUser && graphUser.givenName ? graphUser.givenName + ', get' : 'Get'} access to
#{config.brand.companyName} repos and enable self-service tools by linking
your #{config.brand.companyName} & GitHub accounts
table.table
thead
tr
th GitHub Username
th
th #{config.brand.companyName} Directory
tbody
tr
td
if user && user.github
= user.github.username
td
div.text-center
i.glyphicon.glyphicon-link
td
if user && user.azure
= user.azure.username
p By continuing, you agree the following are true:
ul
if isServiceAccountCandidate && user && user.azure
li This GitHub account is a service account, #{user.azure.username}
if user && user.azure
li This GitHub account is controlled by #{user.azure.username}
li The GitHub account's passwords and personal access tokens are safe and secure
li This account will use two-factor authentication on GitHub.com
if isServiceAccountCandidate
li The e-mail address(es) associated with this service account can be used to communicate with those controlling the account regarding policy, operations, and outages
p(style='margin-top:24px')
if isServiceAccountCandidate
p.btn.btn-lg.btn-default Link (not available currently)
else
input.btn.btn-lg.btn-primary(type='submit', value='Link')
p  
h3 Your onboarding progress
h5
| Sign in to your GitHub & #{config.brand.companyName} accounts 
i.glyphicon.glyphicon-ok
h5.text-primary
strong Link your accounts
h5
| Join your first GitHub organization
h5
| Profile review
h5
| Publish your membership #[small: em optional]
h5
| Join a team #[small: em optional]
div.col-md-4.col-lg-4
if user && user.github && user.github.id
.alert-gray.pad
if config && config.corporate && config.corporate.trainingResources
- var footers = config.corporate.trainingResources.footer
if footers
// These same resources appear on every single auth page footer, too.
h3 Open Source Resources
each categoryList, category in footers
h5= category
ul.list-unstyled
each item in categoryList
li
a(href=item.link, target='_new')
= item.title