Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
moogoo78 committed Aug 28, 2024
1 parent 7527750 commit f532570
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/blueprints/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def modify_frontend_collection_record(collection_id, record_id):
return render_template(f'sites/{site.name}/admin/record-form-view.html', collection_id=collection_id, record_id=record_id)
except TemplateNotFound:
#return send_from_directory('blueprints/admin_static/record-form', 'index.html')
return send_from_directory('/build/admin-record-form', 'index.html')
#return send_from_directory('/build/admin-record-form', 'index.html')
return render_template('admin/record-form2-view.html')

return abort(404)

Expand Down
7 changes: 4 additions & 3 deletions app/templates/sites/hast/specimen-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
<div class="uk-child-width-1-2" uk-grid>
<div>{# left #}
{% with image_url = entity.get_image('_l') %}{# TODO: x #}
<a class="uk-inline" href="{{ image_url }}">
{% if image_url %}<img width="480" height="480" alt="{{ entity }}" src="{{ entity.get_image('_l') }}">{% endif %}
</a>
{% if image_url %}
<img width="480" height="480" alt="{{ entity }}" src="{{ entity.get_image('_l') }}">

{% endif %}
{% endwith %}
{#
<div class="uk-margin">
Expand Down

0 comments on commit f532570

Please sign in to comment.