This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metadata for Websites and Documents ready.
- Loading branch information
Showing
2 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
{% load i18n %} | ||
{% load static %} | ||
|
||
<div class="my-5"> | ||
<div class="w-full block h-px bg-white-200 my-2"></div> | ||
<div style="color: #000; background-color: #c3c3c3; transition: all 0.2s; padding: 0.25rem 0.5rem; border-radius: 0.375rem;"> | ||
<div> | ||
{% for item in metadata_items %} | ||
<div style="margin-bottom: 10px;"> | ||
<strong>{% trans "Source of data" %}:</strong> <a href = "{{ APP_URL }}/{{ item.source }}" target="_blank" title="{{ item.original_filename }}">{% trans "Download" %}</a><br> | ||
<div class="my-5" style="padding-bottom: 2.5em;"> | ||
{% if type == "document" %} | ||
{% for item in metadata_items %} | ||
<div> | ||
<strong>{% trans "Source of data" %}:</strong> <a href = "{{ APP_URL }}/{{ item.source }}" target="_blank" title="{{ item.original_filename }}">{% trans "Download" %}</a> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
{% elif type == "website" %} | ||
{% for item in metadata_items %} | ||
<div> | ||
<strong>{% trans "Webpage to check" %}:</strong> <a href = "{{ item.link }}" target="_blank" title="{{ item.title }}">{% trans "Visit link" %}</a> | ||
</div> | ||
{% endfor %} | ||
{% else %} | ||
<div></div> | ||
{% endif %} | ||
<div><small>{% trans "Generated content may be inaccurate or false. Always doublecheck the result." %}</small></div> | ||
</div> |