Skip to content

Commit

Permalink
refactor(ux): use card header
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Oct 18, 2023
1 parent 025186f commit 257057b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions apis_core/apis_metainfo/templates/generic_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h3 style="margin-bottom:15px;">
Browse {% class_definition %}

{% block list_title %}{% endblock %}

</h3>

{% if get_arche_dump %}
<div class="card-header">
<div class="row">
<div class="col-sm">
<h2 class="mb-0">Browse {% class_definition %}{% block list_title %}{% endblock %}</h2>
</div>
{% if get_arche_dump %}
<a class="btn btn-outline-secondary"
href="{{ get_arche_dump }}{% querystring %}">Dump as RDF</a>
{% endif %}

{% if user.is_authenticated %}

{% if create_view_link %}
<a class ="btn btn-outline-secondary" href="{{ create_view_link }}">Create new {{ class_name }}</a>
{% endif %}
{% endif %}
<div class="col-sm">
{% if user.is_authenticated %}
{% if create_view_link %}
<a class="btn btn-outline-secondary float-right" href="{{ create_view_link }}">Create new {{ class_name }}</a>
{% endif %}
{% endif %}
</div>
</div>
</div>
<div class="card-body">

{% block customView %}{% endblock %}

Expand Down

0 comments on commit 257057b

Please sign in to comment.