Fitting Templates with translate tag
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
{% extends '../global.html' %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load responsive_images %}
|
||||
|
||||
{% block content %}
|
||||
{% if created_galleries|length > 0 %}
|
||||
<section class="RV-Images">
|
||||
<h2>Your galleries</h2>
|
||||
<h2>{% translate 'Your galleries '%}</h2>
|
||||
<li class="RV-Images__list">
|
||||
{% for gallery in created_galleries %}
|
||||
<a href="{% url 'gallery' pk=gallery.pk %}" class="RV-Image__link RV-Image__link--detail">
|
||||
{% if gallery.images.all|length <= 0 %}
|
||||
no images
|
||||
{% translate 'no images' %}
|
||||
{% endif %}
|
||||
{% if gallery.images.all|length == 1 %}
|
||||
{% for image in gallery.images.all %}
|
||||
@@ -42,12 +43,12 @@
|
||||
{% endif %}
|
||||
{% if invited_galleries|length > 0 %}
|
||||
<section class="RV-Images">
|
||||
<h2>Galleries you were invited to</h2>
|
||||
<h2>{% translate 'Galleries you were invited to' %}</h2>
|
||||
<li class="RV-Images__list">
|
||||
{% for gallery in invited_galleries %}
|
||||
<a href="{% url 'gallery' pk=gallery.pk %}" class="RV-Image__link RV-Image__link--detail">
|
||||
{% if gallery.images.all|length <= 0 %}
|
||||
no images
|
||||
{% translate 'no images' %}
|
||||
{% endif %}
|
||||
{% if gallery.images.all|length == 1 %}
|
||||
{% for image in gallery.images.all %}
|
||||
|
Reference in New Issue
Block a user