Commit 594bd9f3 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(UIUX): add badge for not published datasets and badges for access models...

fix(UIUX): add badge for not published datasets and badges for access models of published datasets to my data. Fixes #13
parent f2923706
......@@ -415,7 +415,7 @@ body {
}
.badge-curator {
background-color: theme-color("yellow");
background-color: theme-color("warning");
color: theme-color("black");
font-weight: 500;
......@@ -428,6 +428,23 @@ body {
}
.badge-MO {
background-color: theme-color("danger");
color: theme-color("light");
font-weight: 500;
}
.badge-RA {
background-color: theme-color("warning");
color: theme-color("black");
font-weight: 500;
}
.badge-OA {
background-color: theme-color("success");
color: theme-color("black");
font-weight: 500;
}
/*
* User image avatar sizes
......
......@@ -4,7 +4,13 @@
<div class="media">
<div class="media-body row align-items-center">
<div class="col-8">
{% if prep %}{% if dataset.published %}<span class="badge badge-success">Published</span><br>{% endif %}{% endif %}
{% if prep %}
{% if dataset.published %}
<span class="badge badge-success">{% trans 'Published' %}</span> <span class="badge badge-{{ dataset.data_access }}">{{ dataset.get_data_access_display }}</span><br>
{% else %}
<span class="badge badge-private">{% trans "Not published" %}</span>
{% endif %}
{% endif %}
<h4 class="mt-0"><a href="{% if prep %}{% url 'dddatasets:prep_edit' dataset.uuid %}{% else %}{% url 'dddatasets:detail' dataset.uuid %}{% endif %}">{{dataset.title}}</a></h4>
{% if dataset.subtitle %}<h5 class="media-heading">{{ dataset.subtitle }}</h5>{% endif %}
{% if userpage %}
......
......@@ -19,8 +19,6 @@
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#pubwiz-modal-{{ ds.uuid }}">
{% trans "Publish" %} v{{ ds.version }}
</button>
{% else %}
<span class="badge badge-warning">{% trans "not published" %}</span>
{% endif %}
{% endif %}
</td>
......
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