Commit 6611e880 authored by Maxime Chaillet's avatar Maxime Chaillet

put dataset and access badges in a card.

parent 85e59254
This diff is collapsed.
This diff is collapsed.
......@@ -167,9 +167,9 @@ DOIView.prototype.renderBadges = function( data ) {
DOIView.prototype.setDataAccessMessage = function( doiData ) {
if ( doiData.accessibility === "Open access" ) {
return "The data can be accessed by clicking on the link below";
} else if ( doiData.accessibility === "Under embargo" ) {
return "The data is under embargo until <b>" + doiData.publiclyAccessibleYear + "</b> but could be released earlier. </p> " +
" <p> Currently, it is only accessible to proposal team members. </p>";
} else if ( doiData.accessibility === "Restricted access" ) {
return "<p> The data is under embargo until <b>" + doiData.publiclyAccessibleYear + "</b> but could be released earlier." +
" Currently, it is only accessible to proposal team members. </p>";
}
};
<div class="card-body">
<div class="row">
{@eq key=data.resourceTypeGeneral value="Dataset"}
<div class="col-auto">
<span class="badge badge-secondary font-1p4rem marging-right-10"> Dataset </span>
......@@ -21,4 +23,7 @@
<div class="col-auto">
<span class="badge badge-warning font-1p4rem marging-right-10"> Restricted access </span>
</div>
{/eq}
\ No newline at end of file
{/eq}
</div>
</div>
\ No newline at end of file
<div class="container-fluid">
<div class="row padding-top-15">
<div class="col-8">
<div class="col-9">
<div class="row">
<div class="col-12 fontSize-20 text-center text-uppercase font-weight-bold py-3">{data.title}</div>
</div>
</div>
<div class="col-4">
<div id="badges" class="row"> </div>
<div class="col-3">
<div id="badges" class="card"> </div>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<div class="myBorder-left">
<div>
{#data.creator} {?.givenName} {.givenName} {.familyName} ; {:else} {.name} ; {/.givenName} {/data.creator}
<cite>
{#data.creator} {?.givenName} {.givenName} {.familyName} ; {:else} {.name} ; {/.givenName} {/data.creator}
</cite>
</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