Skip to content

Commit

Permalink
chore(deps): bump apis-highlighter to v0.3.0
Browse files Browse the repository at this point in the history
... and update the `_form.html` template accordingly
  • Loading branch information
b1rger committed Apr 11, 2024
1 parent 92161e0 commit b07e0d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,19 @@

{% block col-one %}

{% if object.oebl_haupttext.text %}
{% if object.oebl_haupttext %}
<div class="card mb-2">
<div class="card-header">
ÖBL Haupttext {% select_highlighter_project request %}
</div>
<div class="card-body">
{{ object.oebl_haupttext | highlight_text:request }}
{% highlight_text object request "oebl_haupttext" %}
</div>
</div>
{% endif %}

{{ block.super }}

<div class="card mt-2">
<div class="card-header">
Texts {% select_highlighter_project request %}
</div>
{% for text in object.texts.all %}
{% if text.text and text != object.oebl_haupttext and text != object.oebl_kurzinfo %}
<div class="mt-2">
<h4>{{ text.kind }}</h4>
{{ text | highlight_text:request }}
</div>
{% endif %}
{% endfor %}
</div>
{% endblock col-one %}

{% block scripts %}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [{include = "apis_ontology"}]
python = "^3.11"
psycopg2 = "^2.9"
apis-core = {git = "https://github.com/acdh-oeaw/apis-core-rdf", rev = "v0.17.0"}
apis-highlighter-ng = "^0.2.1"
apis-highlighter-ng = "^0.3.0"
apis-acdhch-default-settings = "1.0.0"
django-action-logger = "^0.1.5"
django-acdhch-functions = "^0.1.3"
Expand Down

0 comments on commit b07e0d2

Please sign in to comment.