X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/82c38a77943cf91a084429bf10740edffbd0c195..2f9cb34a07fcd98effda2fa900e48c31813f14c8:/redakcja/templates/main.html?ds=sidebyside diff --git a/redakcja/templates/main.html b/redakcja/templates/main.html new file mode 100644 index 00000000..7dd9633b --- /dev/null +++ b/redakcja/templates/main.html @@ -0,0 +1,142 @@ +{% extends "catalogue/base.html" %} +{% load i18n %} +{% load thumbnail %} +{% load catalogue_files %} + + +{% block content %} + +
+
+
+ +

MIL/PEER +

+ +
+ +
+ +{% blocktrans %} +

Media & Information Literacy
+ Platform for Exchanging
+ Educational Resources
+

+{% endblocktrans %} + {% trans "Create and share your resources
Start tutorial" %}
+
+
+ {% trans "Competition" %} +

{% trans "Joint project by:" %}

+ + +
+
+
+ +
+
+ +{{ block.super }} +{% endblock %} + +{% block inner_content %} + + +
+

{% trans "See active organizations and join" %}

+{% for org in organizations %} +
+ + {% if org.logo %} + {% thumbnail org.logo "160x100" format="PNG" padding=True as th %} + + {% endthumbnail %} + {% endif %} +
{{ org.name }}
+
+
+{% endfor %} +{% if more_organizations %} +

{% trans "More organizations" %}

+{% endif %} +
+ + + + +
+

{% trans "Finished resources" %}

+{% for doc in finished %} +
+ + {% if doc.meta.cover_url %} + {% thumbnail doc.meta.cover_url|as_media_for:doc "180x120" crop="center" format="PNG" as th %} + + {% endthumbnail %} + {% elif doc.owner_organization.logo %} + {% thumbnail doc.owner_organization.logo "160x100" format="PNG" padding=True as th %} + + {% endthumbnail %} + {% endif %} +
{{ doc.meta.title }}
+
+ {% if doc.meta.audience %} + {% trans "Audience" %}: {{ doc.meta.audience }}
+ {% endif %} + {% trans "Owner" %}: {{ doc.owner_organization|default:"" }} + {{ doc.owner_user.first_name }} {{ doc.owner_user.last_name }}
+
+
+
+{% endfor %} +{% if more_finished %} +

{% trans "More finished resources" %}

+{% endif %} +
+ +
+

{% trans "Upcoming resources" %}

+{% for doc in upcoming %} +
+ + {% if doc.meta.cover_url %} + {% thumbnail doc.meta.cover_url|as_media_for:doc "180x120" crop="center" format="PNG" as th %} + + {% endthumbnail %} + {% elif doc.owner_organization.logo %} + {% thumbnail doc.owner_organization.logo "160x100" format="PNG" padding=True as th %} + + {% endthumbnail %} + {% endif %} +
{{ doc.meta.title }}
+
+ {% if doc.meta.audience %} + {% trans "Audience" %}: {{ doc.meta.audience }}
+ {% endif %} + {% trans "Owner" %}: {{ doc.owner_organization|default:"" }} + {{ doc.owner_user.first_name }} {{ doc.owner_user.last_name }}
+
+
+
+{% endfor %} +{% if more_upcoming %} +

{% trans "More upcoming resources" %}

+{% endif %} +
+ + + + + +{% endblock %}