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

66 строки
3.1 KiB
Plaintext
Исходник Обычный вид История

//-
2020-04-15 01:57:21 +03:00
//- Copyright (c) Microsoft.
//- Licensed under the MIT license. See LICENSE file in the project root for full license information.
//-
extends ../layout
block content
- var moment = viewServices.moment
.container
.row
.col-md-3.col-lg-3
include ./menu
.col-md-7.col-lg-7
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
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.