nicer oauth forms
[wolnelektury.git] / wolnelektury / templates / catalogue / book_detail.html
index 99bbb39..3d0b92d 100644 (file)
                             </ul>
                         {% endif %}
                     </div> <!-- /audiobooks -->
                             </ul>
                         {% endif %}
                     </div> <!-- /audiobooks -->
-                    <p>{% blocktrans with '<a href="http://czytamysluchajac.pl">CzytamySłuchając</a>' as cs %}Audiobooks were prepared as a part of the {{ cs }} project.{% endblocktrans %}
-                    </p>
+                    {% if projects|length > 1 %}
+                        <p>{% trans "Audiobooks were prepared as a part of the projects:" %}</p>
+                        <ul>
+                        {% for cs, fb in projects %}
+                            <li>
+                            {% if fb %}
+                                {% blocktrans %}{{ cs }}, funded by {{ fb }}{% endblocktrans %}
+                            {% else %}
+                                {{ cs }}
+                            {% endif %}
+                            </li>
+                        {% endfor %}
+                        </ul>
+                    {% else %}
+                        <p>
+                        {% with projects.0.0 as cs %}
+                        {% with projects.0.1 as fb %}
+                            {% if fb %}
+                                {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project funded by {{ fb }}.{% endblocktrans %}
+                            {% else %}
+                                {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project.{% endblocktrans %}
+                            {% endif %}
+                        {% endwith %}
+                        {% endwith %}
+                        </p>
+                    {% endif %}
                 {% endif %}
             </div>
         </div>
                 {% endif %}
             </div>
         </div>