blob: 824f0bd5ba833ef51858870771d7fea64b62b8f1 [file] [log] [blame]
Afshan8546b712020-06-17 16:16:59 +05301{% extends "templates/web.html" %}
2
3{% block content %}
4<section class="section section-padding-top section-padding-bottom">
5 <div class='container'>
6 <div class="hero-content">
7 <h1 class="h1">{{ _(greeting_title) or _("We're here to help") }}</h1>
8 <p class="hero-subtitle">{{ greeting_subtitle or _("Browse help topics.") }}</p>
9 </div>
10 </div>
11</section>
12
13{% if favorite_article_list %}
14<section class="section section-padding-top section-padding-bottom">
15 <div class='container'>
16 <h3>{{ _("Frequently Read Articles") }}</h3>
17 <div class="row">
18 {% for favorite_article in favorite_article_list %}
19 <div class="mt-4 col-12 col-sm-6 col-lg-4">
20 <div class="card card-md h-100">
21 <div class="card-body">
22 <h6 class="card-subtitle mb-2 text-uppercase small text-muted">{{ favorite_article['category'] }}</h6>
23 <h3 class="card-title">{{ favorite_article['title'] }}</h3>
24 <p class="card-text">{{ favorite_article['description'] }}</p>
25 </div>
26 <a href="{{ favorite_article['route'] }}" class="stretched-link"></a>
27 </div>
28 </div>
29 {% endfor %}
30 </div>
31 </div>
32</section>
33{% endif %}
34
35{% if help_article_list %}
36<section class="section section-padding-top section-padding-bottom bg-light">
37 <div class='container'>
38 <h3>{{ _("Help Articles") }}</h3>
39 <div class="row">
40 {% for item in help_article_list %}
41 <div class="mt-5 col-12 col-sm-6 col-lg-4">
42 <h5>{{ item['category'].name }}</h5>
43 <div>
44 {% for article in item['articles'] %}
45 <a href="{{ article.route }}" class="mt-2 d-block">{{ article.title }}</a>
46 {% endfor %}
47 </div>
48 </div>
49 {% endfor %}
50 </div>
51 </div>
52</section>
53{% endif %}
54
55{% endblock %}