-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add language page template, view, and styling
temporary
- Loading branch information
“OMosimege”
committed
Jul 23, 2024
1 parent
52fa1ca
commit f5a3f19
Showing
5 changed files
with
75 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
<br/> | ||
<div class="detail"> | ||
<h2>Languages</h2> | ||
<br> | ||
<div class="detail-row row"> | ||
{% for item in language_data %} | ||
<h5>{{ item.language.name }}</h5> | ||
<div class="col-md-6 col-12 detail-col"> | ||
<p><strong>Documents</strong></p> | ||
{% if item.documents.exists %} | ||
<div class="documents"> | ||
<ul> | ||
{% for document in item.documents %} | ||
<li> | ||
<span class="icon-text"><i class="detail-icon bi-file-earmark"></i></span> | ||
<span class="icon-text"><a href="{% url 'document_detail' document.id %}">{{ document.title }}</a></span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% else %} | ||
<p>{% trans "No documents available for this language." %}</p> | ||
{% endif %} | ||
</div> | ||
<div class="col-md-6 col-12 detail-col"> | ||
<p><strong>Projects</strong></p> | ||
{% if item.projects.exists %} | ||
<div class="projects"> | ||
<ul> | ||
{% for project in item.projects %} | ||
<li> | ||
<span class="icon-text"><i class="detail-icon bi-clipboard2"></i></span> | ||
<span class="icon-text"><a href="{% url 'project_detail' project.id %}">{{ project.name }}</a></span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% else %} | ||
<p>{% trans "No projects available for this language." %}</p> | ||
{% endif %} | ||
</div> | ||
<br> | ||
<hr> | ||
<br> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
{% endblock content %} |
Empty file.
File renamed without changes.