resources.html 1.79 KB
Newer Older
Pili Guerra's avatar
Pili Guerra committed
1
2
3
4
<div class="row pt-5">
  {% include 'sidenav.html' %}
  <div class="col-sm-12 col-xs-12  ml-sm-auto col-md-9 col-lg-9 {{ bag('alternatives', this.alt, 'order') }}">
    {{ this.body }}
Gus's avatar
Gus committed
5

Pili Guerra's avatar
Pili Guerra committed
6
      <div class="row">
Gus's avatar
Gus committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
        {% for id, item in bag('community-training-materials').items() %}
	{% if item.type=='official' %}
        <div class="col-md-3 col-sm-12 col-xl-3 my-3">
          <div class="card h-100">
            <div class="card-header bg-white border-0">
                <picture>
                  <img src="{{ item.cover }}" class="img-fluid" alt="{{ item.name }}">
                </picture>
            </div>
            <div class="card-body">
              <h5 class="card-title human-name">{{ item.name }}</h5>
              <p>{{ item.description }}</p>

              <p><i>{{ item.languages }}</i></p>
              </p>format: {{ item.formats }}</p>
              <p>Released: {{ item.date }}</p>
              <a href="{{ item.link }}" title="{{ item.name }}" class="btn btn-primary">Check this resource</a>
	</div>
	</div>
                {% else %}
 	<div class="col-md-3 col-sm-12 col-xl-3 my-3">
  	        <div class="card h-100">
   	        <div class="card-header bg-white border-0">
    	            <picture>
                  <img src="{{ item.cover }}" class="img-fluid" alt="{{ item.name }}">
                </picture>
            </div>
            <div class="card-body">
              <h5 class="card-title human-name">{{ item.name }}</h5>
              <p>{{ item.description }}</p>
              <p><i>{{ item.languages }}</i></p>
              <p>Released: {{ item.date }}</p>
              <a href="{{ item.link }}" title="{{ item.name }}" class="btn btn-primary">Download</a>
	</div>
	</div>
                {% endif %}
            </div>
	      {% endfor %}

Pili Guerra's avatar
Pili Guerra committed
46
47
    </div>
  </div>
Gus's avatar
Gus committed
48
</div>