Commit 344f8c74 authored by Sean Madsen's avatar Sean Madsen

home - presenting books as a list

parent 7c185153
......@@ -6,26 +6,32 @@
<h1>CiviCRM Documentation</h1>
<h2>Books</h2>
<ul class="books">
{% for url, book in books %}
<h2><a href="/{{url}}">{{ book.name }}</a></h2>
<p>{{ book.description }}</p>
<ul>
{% for lang, language in book.langs if language.stable is defined %}
<li>
{{ attribute(locales, lang) }}:
<strong><a href="/{{url}}/{{lang}}/stable">Current edition</a></strong>.
Other editions:
{% if language.history is defined %}
{% for version in language.history %}
<a href="/{{url}}/{{lang}}/{{version}}">{{version}}</a>,
{% endfor %}
{% endif %}
<a href="/{{url}}/{{lang}}/latest">latest</a>.
</li>
{% endfor %}
</ul>
<li class="book">
<span class="name"><a href="/{{url}}">{{ book.name }}</a></span> &ndash;
<span class="description">{{ book.description }}</span>
<ul>
{% for lang, language in book.langs if language.stable is defined %}
<li class="lang {{lang}}">
{{ attribute(locales, lang) }}:
<a href="/{{url}}/{{lang}}/stable">Current edition</a>.
Other editions:
{% if language.history is defined %}
{% for version in language.history %}
<a href="/{{url}}/{{lang}}/{{version}}">{{version}}</a>,
{% endfor %}
{% endif %}
<a href="/{{url}}/{{lang}}/latest">latest</a>.
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment