Commit 85e59254 authored by Maxime Chaillet's avatar Maxime Chaillet

single dataset/session badges to 2 badges smaller badges. Rename...

single dataset/session badges to 2 badges smaller badges. Rename 'underembargo' badge to rescticted access
parent 4337f4fc
......@@ -59,8 +59,17 @@ body {
font-size:3.2rem;
}
.font-1p4rem{
font-size:1.4rem;
}
.whiteFont {
color: #ffffff;
}
.fontSize-20 {
font-size: 20px;
}
/* vertically center the font and sets its color to white */
.whiteVCenteredFont {
......@@ -69,9 +78,7 @@ body {
margin-bottom:auto;
}
.fontSize-20 {
font-size: 20px;
}
.padding-top-15 {
padding-top:15px;
......@@ -85,6 +92,10 @@ body {
padding-left:15px;
}
.marging-right-10 {
marging-right:10px;
}
.padding-bottom-10 {
padding-bottom:10px;
}
......@@ -165,9 +176,7 @@ label {
heigth:100px;
}
.whiteFont {
color: #ffffff;
}
.flexCentered {
display:flex;
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -3,6 +3,11 @@ function DoiData() {
}
/**
* Get the accessibility status
* @param {string} sessionDate The timeStamp the experiment was started
* @param {string} publiclyAccessibleYear The year the data will be publicly accesssible.
* @return {string}
* "Open access" : the data is publicly accessible
* "Restricted access" : the data is still under embargo. Only accessible to experimental team members
*
* */
DoiData.prototype.getAccessibilityStatus = function( sessionDate, publiclyAccessibleYear ) {
......@@ -14,7 +19,7 @@ DoiData.prototype.getAccessibilityStatus = function( sessionDate, publiclyAccess
if ( now > publiclyAvailableDate ) {
return "Open access";
} else if ( now <= publiclyAvailableDate ) {
return "Under embargo";
return "Restricted access";
}
}
console.log( "Failed to determine whether the accessibility of the DOI." );
......
{@eq key=data.resourceTypeGeneral value="Dataset"}
{@eq key=data.resourceType value="Experiment Session"}
<div class="col-auto">
<span class="badge badge-secondary" style="font-size:14px;"> Dataset(s) / session </span>
</div>
{/eq}
{@eq key=data.resourceTypeGeneral value="Dataset"}
<div class="col-auto">
<span class="badge badge-secondary font-1p4rem marging-right-10"> Dataset </span>
</div>
{/eq}
{@eq key=data.resourceType value="Experiment Session"}
<div class="col-auto">
<span class="badge badge-secondary font-1p4rem marging-right-10" > Session </span>
</div>
{/eq}
{@eq key=data.accessibility value="Open access"}
<div class="col-auto">
<span class="badge badge-success" style="font-size:14px;"> Open access </span>
<span class="badge badge-success font-1p4rem marging-right-10"> Open access </span>
</div>
{/eq}
{@eq key=data.accessibility value="Under embargo"}
{@eq key=data.accessibility value="Restricted access"}
<div class="col-auto">
<span class="badge badge-warning" style="font-size:14px;"> Under embargo </span>
<span class="badge badge-warning font-1p4rem marging-right-10"> Restricted access </span>
</div>
{/eq}
\ No newline at end of file
......@@ -6,7 +6,7 @@
</div>
</div>
<div class="col-4">
<div id="badges" class="row py-4"> </div>
<div id="badges" class="row"> </div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment