x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

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

...

Show If
groupmssba-admins, confluence-administrators


Custom section
CustomCSSpadding:30px; width: 80%; margin: 40px auto 40px auto; position: relative; box-shadow: 0 5px 20px 2px rgba(0,0,0,.3); border-radius: 10px !important; flex-direction: column;
Classtablet_view_main_custom_section


Custom section
Classbutton-container


Custom section
Classback-to-dash-button-container

Custom button
CustomCSSborder: none; width: 135px; height: 35.5px; border-radius: 20px; font-family: Avenir-Roman; background-color: var(--primary-color); font-size: 15px; letter-spacing: -1px; color: #ffffff; margin: 10px; outline: none;
Typecustom-button
ButtonClassdashboardbutton
TextBack
Url/display/SBAJ/Admin+Panel


Custom section
CustomCSS justify-content: flex-end;
Classdeactivate-button-container

Admin remove sba
UniqueIdentifierremovecurrentuser
Instancemssba
Groupsmssba-users,mssba-program-users,mssba-mentors,mssba-facilitator-users
DeactivateButtontrue
FormTyperemoveUserScriptrunner
RedirectUrl/display/SBAJ/Admin+Panel
CupFieldcup.field-26



Custom section
Classuser-data-container


Custom column
Width30%


Custom section
CustomCSSmargin: auto; justify-content: center;


HTML
<script>

if(document.referrer.includes('company')){
	document.getElementById('dashboardbutton').href = document.referrer;
} else {
	document.getElementById('dashboardbutton').href = '/display/SBAJ/Admin+Panel';
}
</script>


Admin user basic info
Link/display/SBAN/Facilitator+Profile?facilitatortab=admin&username=*cfkey*



Custom column
CustomCSSmargin-top: 30px;
Width100%


HTML
<div id="analytics-link-container"> </div>

<script> 

const USERNAME_PARAM = getQueryParameterByName("username");
if (USERNAME_PARAM) {
	$("#analytics-link-container").html(`<a href="https://mixpanel.com/project/2626495/view/3164487/app/profile#distinct_id=${USERNAME_PARAM}" target="_blank">View User Analytics</a>`);
}

</script>





HTML
<style>
#profile-button {
	display: none;
}
</style>

<script>
const SHOW_PROF_LINK_GROUPS = ["mssba-program-users","mssba-mentors","mssba-facilitator-users", "mssba-admins", "mssba-judges"];
jQuery.ajax({
	url: `/rest/api/user/memberof?username=${USERNAME_PARAM}`,
 	type: "get",
    dataType: 'json',
    async: true,
    success: function (data) {
      let res = data.results;
      for (let i = 0; i < res.length; i++) {
        	let groupName = res[i].name;
            if (SHOW_PROF_LINK_GROUPS.includes(groupName)) {
				$("#profile-button").show();
				break;
			}
	
      }
    }
})

</script>


...