x
x
x
x
...
HTML |
---|
<style> .carousel-container > div{ width: 100%90%!important; margin: 0 5%!important; } .announcementcard .imgalign{ height: unset!important; } .announcementcard{ padding: 0!important; border-radius: 0!important; height: 250px!important; width: 100%!important; } div.text-encompasser{ box-sizing: border-box!important; padding: 25px!important; border: none!important; } th p{ font-weight: bold!important; color: white!important; } tr a{ color: var(--primary-color)!important; font-weight: bold!important; } .header{ font-size: 30px; font-weight: bold!important; } div#admin-panel{ display: flex; flex-direction: row; } div#admin-panel * { font-weight: bold!important; } .applicationBannerNotStarted, .applicationBannerStarted, .applicationBannerSubmitted{ display: none; } .dash-banner{ height: fit-content!important; } .dash-banner .banner-segment:nth-child(1){ padding: 40px 0!important; height: fit-content!important; } .dash-banner .banner-segment:nth-child(2){ height: unset!important; } .rw_page_left_section{ background: unset!important; border: unset!important; padding: unset!important; margin: unset!important; } .announcementsTable{ display: none; } </style> <script> window.addEventListener('load', ()=>{ showSlides(0) }) const searchJiraApplicationsForUser = async (issueType) => { let jiraRes = await jQuery.ajax({ url: "/rest/scriptrunner/latest/custom/searchJiraTickets", headers: { 'X-Atlassian-Token' : 'nocheck', 'Content-type' : 'application/json' }, type: "POST", processData: false, contentType: false, data: JSON.stringify({ jql: `issuetype = "${issueType}" AND ('Confluence User Key' ~ '${AJS.params.remoteUserKey}') ORDER BY updated DESC` }), success: W=>{ console.log(W) }, error: L=>{ console.log(L) } }).then(res => res); return jiraRes; } const showDynamicApplicationBanner = async (pageTitle, issueType, applicationDeadlinePassed = false) => { var bannerApplicationSubmitted = false; var bannerApplicationComplete = false; var bannerApplicationStarted = false; if (applicationDeadlinePassed) { $(".applicationBannerDeadlinePassed").waitUntilExists(() => { $('.applicationBannerLoading').remove(); $(".applicationBannerDeadlinePassed").show(); }); return; } await searchJiraApplicationsForUser(issueType).then((appsCheck) => { if (appsCheck.issues.length !== 0) { bannerApplicationStarted = true; if (appsCheck.issues[0].fields.customfield_10631) { bannerApplicationSubmitted = true; } } if (bannerApplicationSubmitted) { // show submitted banner $(".applicationBannerSubmitted").waitUntilExists(() => { $('.applicationBannerLoading').remove(); $(".applicationBannerSubmitted").show(); }); } else if (bannerApplicationStarted) { // show started banner $(".applicationBannerStarted").waitUntilExists(() => { $('.applicationBannerLoading').remove(); $(".applicationBannerStarted").show(); }); } else { // show get started banner $(".applicationBannerNotStarted").waitUntilExists(() => { $('.applicationBannerLoading').remove(); $(".applicationBannerNotStarted").show(); }); } }) } </script> |
...