taler-www

Main taler.net website
Log | Files | Refs | Submodules | README | LICENSE

bibliography.html.j2 (4789B)


      1 {% extends "common/base.j2" %}
      2 {% block subtitle %}{{ _("Bibliography")}}{% endblock subtitle %}
      3 {% block body_content %}
      4 <main id="maincontent">
      5   <div class="container">
      6    <article>
      7     <div class="row">
      8       <div class="col">
      9         <h1>{{ _("GNU Taler Bibliography") }}</h1>
     10       </div>
     11     </div>
     12     <div class="list-group">
     13       {% for item in conf['paperslist'] %}
     14         {% if item['url_pdf'] is defined and item['url_pdf'] and item['url_pdf'] != "" %}
     15           <a href="{{ url(item['url_pdf']) }}" class="list-group-item list-group-item-action" target="_blank" rel="noopener noreferrer">
     16           <div class="d-flex w-100 justify-content-between">
     17             <h5 class="mb-1">{{ item['name'] }}</h5>
     18             <h6 class="mb-1">
     19              <img border=0 align=left alt="PDF" width=32 height=32 src="{{ url_static('images/pdf.svg') }}">
     20            </h6>
     21           </div>
     22           <div class="d-flex w-100 justify-content-between">
     23             <h6 class="mb-1">
     24             {{ _("by") }}
     25             {% if item['authors'] is defined and item['authors'] and item['authors'] != "" %}
     26               {% for name in item['authors'] %}
     27                 {{ name|e }}{% if loop.first %}{% endif %}{% if not loop.last %}, {% endif %}{% if loop.last %}
     28                 {% elif loop.revindex0 == 1 %}
     29                 {% endif %}
     30               {% endfor %}
     31             {% endif %}
     32             </h6>
     33             <h6 class="mb-1">
     34             {% if item['kind'] is defined and item['kind'] and item['kind'] != "" %}
     35             {{ item['kind'] }}{% endif %}
     36             </h6>
     37           </div>
     38           <div class="d-flex w-100 justify-content-between">
     39             <h6 class="mb-1">
     40             {% if item['year'] is defined and item['year'] and item['year'] != "" %}{{ item['year'] }}{% endif %}
     41             </h6>
     42             <h6 class="mb-1">{% if item['comment'] is defined and item['comment'] and item['comment'] != "" %}
     43             <em>{{ item['comment'] }}</em>
     44             {% endif %}
     45             </h6>
     46           </div>
     47 
     48         {% elif item['url_html'] is defined and item['url_html'] and item['url_html'] != "" %}
     49           <a href="{{ item['url_html'] }}" class="list-group-item list-group-item-action" target="_blank" rel="noopener noreferrer">
     50            <div class="d-flex w-100 justify-content-between">
     51             <h5 class="mb-1">{{ item['name'] }}</h5>
     52             <h6 class="mb-1">
     53             <img border=0 align=left alt="HTML" width=32 height=32 src="{{ url_static('images/html.svg') }}">
     54             </h6>
     55           </div>
     56           <div class="d-flex w-100 justify-content-between">
     57             <h6 class="mb-1">
     58             {{ _("by") }}
     59             {% if item['authors'] is defined and item['authors'] and item['authors'] != "" %}
     60               {% for name in item['authors'] %}
     61                 {{ name|e }}{% if loop.first %}{% endif %}{% if not loop.last %}, {% endif %}{% if loop.last %}
     62                 {% elif loop.revindex0 == 1 %}
     63                 {% endif %}
     64               {% endfor %}
     65             {% endif %}
     66             </h6>
     67             <h6 class="mb-1">
     68             {% if item['kind'] is defined and item['kind'] and item['kind'] != "" %}
     69             {{ item['kind'] }}{% endif %}
     70             </h6>
     71           </div>
     72           <div class="d-flex w-100 justify-content-between">
     73             <h6 class="mb-1">
     74             {% if item['year'] is defined and item['year'] and item['year'] != "" %}{{ item['year'] }}{% endif %}
     75             </h6>
     76             <h6 class="mb-1">{% if item['comment'] is defined and item['comment'] and item['comment'] != "" %}
     77             <em>{{ item['comment'] }}</em>
     78             {% endif %}
     79             </h6>
     80           </div>
     81         {% else %}
     82           <a href="" class="list-group-item list-group-item-action">
     83         {% endif %}
     84 
     85         {% if item['url_html'] is defined and item['url_html'] and item['url_pdf'] != "" and item['url_html'] != "" %}
     86           <a href="{{ item['url_html'] }}" class="list-group-item list-group-item-action" target="_blank" rel="noopener noreferrer">
     87           <div class="d-flex w-100 justify-content-between">
     88             <h5 class="mb-1">{{ item['name'] }}</h5>
     89             <h6 class="mb-1">
     90             <img border=0 align=left alt="external link" width=32 height=32 src="{{ url_static('images/html.svg') }}">
     91             </h6>
     92           </div>
     93           <div class="d-flex w-100 justify-content-between">
     94             <h6 class="mb-1">
     95             {% if item['year'] is defined and item['year'] and item['year'] != "" %}{{ item['year'] }}{% endif %}
     96             </h6>
     97             <h6 class="mb-1"><em>external link</em>
     98             </h6>
     99           </div>
    100             {% endif %}
    101         </a>
    102         {% endfor %}
    103       </div>
    104     </article>
    105   </div>
    106 {% endblock body_content %}