|
1 | | -{% load static %} |
2 | | -{% load thumbnail %} |
3 | | - |
4 | | -<div class="card-body"> |
5 | | - <h4 class="card-title" > |
6 | | - {{ title }} |
7 | | - </h4> |
8 | | - <ul class="list-group list-group-flush"> |
9 | | - {% for other_sys in systems %} |
10 | | - {% if not limit or forloop.counter0 < limit %} |
11 | | - <li class="list-group-item list-group-item-action"> |
12 | | - <a href="{{ other_sys.get_absolute_url }}" title="{{ other_sys.name }}"> |
13 | | - {% if other_sys.current.logo %} |
14 | | - <img class="logo-recommendation" src="{% if other_sys.current.logo.url|lower|slice:"-3:" == "svg" %}{{ other_sys.current.logo.url }}{% else %}{{ other_sys.current.logo|thumbnail_url:'recommendation' }}{% endif %}" alt="{{ other_sys.name }}" /> |
15 | | - {% else %} |
16 | | - <img src="{% static 'core/images/database-nologo.svg' %}" alt="{{ other_sys.name }}" /> {{ other_sys.name }} |
17 | | - {% endif %} |
18 | | - </a> |
19 | | - </li> |
20 | | - {% endif %} |
21 | | - {% endfor %} |
22 | | - </ul> |
23 | | - {% if limit and systems|length > limit %} |
24 | | - <div class="card-footer text-muted p-1 font-weight-bold"> |
25 | | - <a href="{% url 'browse' %}?{{ field }}={{ slug }}">View All ({{ systems|length }})</a> |
26 | | - </div> |
27 | | - {% endif %} |
28 | | -</div> |
| 1 | +{% load static %} |
| 2 | +{% load thumbnail %} |
| 3 | + |
| 4 | +<div class="card-body"> |
| 5 | + <h4 class="card-title" > |
| 6 | + {{ title }} |
| 7 | + </h4> |
| 8 | + <ul class="list-group list-group-flush"> |
| 9 | + {% for other_sys in systems %} |
| 10 | + {% if not limit or forloop.counter0 < limit %} |
| 11 | + <li class="list-group-item list-group-item-action"> |
| 12 | + <a href="{{ other_sys.get_absolute_url }}" title="{{ other_sys.name }}"> |
| 13 | + {% if other_sys.current.logo %} |
| 14 | + <img class="logo-recommendation" src="{% if other_sys.current.logo.url|lower|slice:"-3:" == "svg" %}{{ other_sys.current.logo.url }}{% else %}{{ other_sys.current.logo|thumbnail_url:'recommendation' }}{% endif %}" alt="{{ other_sys.name }}" /> |
| 15 | + {% else %} |
| 16 | + <img class="logo-recommendation" src="{% static 'core/images/database-nologo-icon.svg' %}" alt="{{ other_sys.name }}" /> {{ other_sys.name }} |
| 17 | + {% endif %} |
| 18 | + </a> |
| 19 | + </li> |
| 20 | + {% endif %} |
| 21 | + {% endfor %} |
| 22 | + </ul> |
| 23 | + {% if limit and systems|length > limit %} |
| 24 | + <div class="card-footer text-muted p-1 font-weight-bold"> |
| 25 | + <a href="{% url 'browse' %}?{{ field }}={{ slug }}">View All ({{ systems|length }})</a> |
| 26 | + </div> |
| 27 | + {% endif %} |
| 28 | +</div> |
0 commit comments