2019-08-26 19:54:28 +03:00
|
|
|
//-
|
2020-04-15 01:57:21 +03:00
|
|
|
//- Copyright (c) Microsoft.
|
2019-08-26 19:54:28 +03:00
|
|
|
//- Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
//-
|
|
|
|
|
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2019-10-03 04:41:16 +03:00
|
|
|
- var moment = viewServices.moment
|
2019-08-26 19:54:28 +03:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-3.col-lg-3
|
|
|
|
include ./menu
|
|
|
|
.col-md-7.col-lg-7
|
2019-10-03 04:41:16 +03:00
|
|
|
if teamResponsibilities && teamResponsibilities.length && teamResponsibilities.length > 0
|
|
|
|
h1 Approvals for Your Review
|
|
|
|
each entry in teamResponsibilities
|
|
|
|
h2(style='padding-bottom: 16px')
|
|
|
|
| Join a team
|
|
|
|
|
|
|
|
|
small Permission Request
|
|
|
|
form(method='post', action='/' + entry.team.organization.name + '/teams/' + entry.team.slug + '/approvals/' + entry.request.approvalId)
|
|
|
|
ul.list-inline
|
|
|
|
//-if entry.issue
|
|
|
|
//- NOTE: Commenting out GitHub links with approval repos, since they have been deprecated
|
|
|
|
li
|
|
|
|
a.btn.btn-sm.btn-muted(href='/' + entry.team.organization.name + '/teams/' + entry.team.slug + '/approvals/' + entry.request.approvalId)
|
|
|
|
i.glyphicon.glyphicon-zoom-in
|
|
|
|
|
|
|
|
|
| Details...
|
|
|
|
li: p
|
|
|
|
a.btn.btn-sm.btn-muted(href='https://github.com/' + entry.request.thirdPartyUsername, target='_new')= entry.request.thirdPartyUsername
|
|
|
|
a.btn.btn-sm.btn-muted-more(href='mailto:' + entry.corporateUsername)= entry.corporateUsername ? entry.corporateUsername : 'Unknown'
|
|
|
|
if entry.request.active === true
|
|
|
|
ul.list-inline
|
|
|
|
li: input.btn.btn-sm.btn-default(type='submit', name='approve', value='Approve')
|
|
|
|
li: input.btn.btn-sm.btn-primary(type='submit', name='approveWithComment', value='Approve with Comment...')
|
|
|
|
li: input.btn.btn-sm.btn-default(type='submit', name='deny', value='Deny...')
|
|
|
|
if entry.request.created
|
|
|
|
h4 Requested
|
|
|
|
p= moment(entry.request.created).fromNow()
|
|
|
|
if entry.request.justification
|
|
|
|
h4 Business Justification
|
|
|
|
p= entry.request.justification
|
2019-08-26 19:54:28 +03:00
|
|
|
|
2019-10-03 04:41:16 +03:00
|
|
|
h1 Requests you have made
|
|
|
|
if usersRequests && usersRequests.length && usersRequests.length > 0
|
|
|
|
each myRequest in usersRequests
|
|
|
|
form(method='post', action='/settings/approvals/' + myRequest.request.approvalId + '/cancel')
|
|
|
|
p
|
|
|
|
input.btn.btn-sm.btn-default(type='submit', value='Cancel my request')
|
|
|
|
if myRequest.ticketType == 'joinTeam'
|
|
|
|
h3 Request to join a team
|
|
|
|
h5 Organization
|
|
|
|
p= myRequest.team.organization.name
|
|
|
|
h5 Team Name
|
|
|
|
p= myRequest.request.teamName
|
|
|
|
h5 GitHub Team ID
|
|
|
|
p= myRequest.request.teamId
|
|
|
|
if myRequest.request.justification
|
|
|
|
h3 My Business Justification
|
|
|
|
blockquote
|
|
|
|
=myRequest.request.justification
|
|
|
|
else
|
|
|
|
p.lead There are no active requests open at this time.
|