Skip to content
Snippets Groups Projects
Commit 4e63dd6a authored by anonymous's avatar anonymous
Browse files

ODPSH-273: change layout

parent 67c098dc
Branches
Tags
No related merge requests found
...@@ -402,6 +402,7 @@ label.rangesearch.disabled { ...@@ -402,6 +402,7 @@ label.rangesearch.disabled {
.container-fluid.odsh-dataset-item { .container-fluid.odsh-dataset-item {
padding: 20px 0px 20px 0px; padding: 20px 0px 20px 0px;
border-bottom: 2px solid #DBDBDB; border-bottom: 2px solid #DBDBDB;
display: table;
} }
.container-fluid.odsh-dataset-item:hover { .container-fluid.odsh-dataset-item:hover {
background-color: rgb(246,247,249); background-color: rgb(246,247,249);
...@@ -437,8 +438,9 @@ a:hover.organization-item ,a:focus.organization-item ...@@ -437,8 +438,9 @@ a:hover.organization-item ,a:focus.organization-item
} }
.dataset-content { .dataset-content {
float:left;
width: 470px; width: 470px;
display: table-cell;
position: relative;
} }
.dataset-heading { .dataset-heading {
...@@ -446,6 +448,10 @@ a:hover.organization-item ,a:focus.organization-item ...@@ -446,6 +448,10 @@ a:hover.organization-item ,a:focus.organization-item
font-weight: normal; font-weight: normal;
font-size: 20px; font-size: 20px;
} }
.dataset-content p{
font-size: 12px;
margin: 0 0 5px;
}
.dataset-heading a{ .dataset-heading a{
text-decoration: none; text-decoration: none;
} }
...@@ -456,9 +462,11 @@ a:hover.organization-item ,a:focus.organization-item ...@@ -456,9 +462,11 @@ a:hover.organization-item ,a:focus.organization-item
} }
.dataset-meta { .dataset-meta {
float:right;
width: 225px; width: 225px;
/* width: 30%; */ /* width: 30%; */
height: 100%;
display: table-cell;
position: relative;
} }
ul.dataset-resources { ul.dataset-resources {
...@@ -541,6 +549,11 @@ a.odsh-star:hover { ...@@ -541,6 +549,11 @@ a.odsh-star:hover {
white-space: nowrap; white-space: nowrap;
} }
.dataset-info.issued {
position: absolute;
bottom: 0px;
}
.toolbar .breadcrumb>li a { .toolbar .breadcrumb>li a {
font-weight: normal !important; font-weight: normal !important;
font-size: 15px; font-size: 15px;
...@@ -1742,3 +1755,17 @@ span.clear { ...@@ -1742,3 +1755,17 @@ span.clear {
width: 225px; width: 225px;
} }
.package-info-pill
{
display: inline-block;
padding: 3px 10px;
background-color: #dbdbdb;
border-radius: 5px;
font-size: 12px;
}
p.package-info-categorie
{
margin-top: 15px;
margin-bottom: 0px;
}
\ No newline at end of file
...@@ -40,6 +40,7 @@ Example: ...@@ -40,6 +40,7 @@ Example:
{% block content %} {% block content %}
<div class="dataset-content"> <div class="dataset-content">
{% block heading %} {% block heading %}
<p>{{org}}</p>
<h3 class="dataset-heading"> <h3 class="dataset-heading">
{% block heading_private %} {% block heading_private %}
{% if package.private %} {% if package.private %}
...@@ -70,11 +71,13 @@ Example: ...@@ -70,11 +71,13 @@ Example:
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block notes %} {% block notes %}
{% if notes %} <div class='package-info-pill'>
<div>{{ notes|urlize }}</div> {{timerange}}
{% else %} </div>
<p class="dataset-empty">{{ _("This dataset has no description") }}</p> <div class='package-info-pill'>
{% endif %} {{h.odsh_get_spatial_text(package) }}
</div>
<p class='package-info-categorie'>{{ _('Kategorie') }}: {{ categories}} </p>
{% endblock %} {% endblock %}
</div> </div>
<div class="dataset-meta"> <div class="dataset-meta">
...@@ -97,20 +100,12 @@ Example: ...@@ -97,20 +100,12 @@ Example:
{% snippet "qa/stars.html", stars=stars %} {% snippet "qa/stars.html", stars=stars %}
</div> </div>
<div class="dataset-info"> <div class="dataset-info issued">
<p>{{ _('Kategorie') }}: {{ categories}} </p>
<p> {{_('Lizenz')}}: {{license}}</p>
<p> {{_('Herausgeber')}}: {{org}} </p>
<p> {{timerange_label}}: {{timerange}}</p>
<p>{{ _('issued') }}: {{issued}} </p> <p>{{ _('issued') }}: {{issued}} </p>
</div> </div>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
</div> </div>
{% block package_openness %}
<div class="module module-narrow module-shallow context-info">
</div>
{% endblock %}
{% endblock %} {% endblock %}
</div> </div>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment