x x x
x

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




HTML
<style>
.rw_page_left_section{
	background: unset!important;
	border: unset!important;
	padding: unset!important;
}
</style><script>

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}' OR cf[10804] ~ '${AJS.params.remoteUser}') ORDER BY updated DESC`
    })
  }).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>


HTML
<!--
To add:

- Redirect for admins to admin dashboard & judges to judging dashboard

-->


HTML
<style>

.rw_page_left_section{
	background: unset!important;
	border: unset!important;
	padding: unset!important;
}

@media only screen and (min-width: 580px){
.dash-sqaure{
    width: 250px!important;
    min-width: 250px!important;
    max-width: 250px!important;
}

}
@media only screen and (min-device-width: 320px) and (max-device-width: 480px){
	.button_container{
		background: white!important;
	}
	.mobile-menu-sticky .button_container.active{
		background: var(--mobile-menu-background)!important;
	}
}

.aboutcard{
	height: fit-content!important;
}
@media only screen and (max-width: 580px) {
	.arrow-right{
		display: none!important;
	}
	#main-content .dash-banner{
		padding-bottom: 0!important;
		flex-direction: column!important;
		height: fit-content!important;
	}
	.banner-segment{
		width: 100%!important;
		height: fit-content!important;
		overflow: visible!important;
		padding: 0!important;
	}
	.second-segment{
		height: 250px!important;
	}
	.dashboard-content{
		flex-direction: column!important;
	}
	.aboutcard{
		flex-direction: column-reverse!important;
	}
	.dashimg-container{
		display: none!important;
	}
	.dates-container{
		width: 100%!important;
	}
	.headertext{
		text-align: center;
	}
}

div#announcements-wrapper .header {
    color: white;
}
 </style>

...