]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/people/index.html
people: Remove subscription confirmation page
[ipfire.org.git] / src / templates / people / index.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Home") }}{% end block %}
4
5 {% block content %}
6 <section>
7 <div class="row mb-5">
8 <div class="col col-lg-6">
9 <h1>{{ _("Hello, %s!") % current_user.first_name }}</h1>
10
11 <p>
12 {{ _("Welcome to the IPFire People Portal where you can manage your account and get in touch with others") }}
13 </p>
14 </div>
15 </div>
16
17 {% if not current_user.consents_to_promotional_emails %}
18 <div class="card glow-primary border-primary">
19 <div class="card-body">
20 <h6>{{ _("You are currently not subscribed to important updates from the IPFire Project") }}</h6>
21
22 <div class="row">
23 <div class="col-2 d-flex align-items-center justify-content-center">
24 <i class="fas fa-envelope-open-text fa-3x text-primary"></i>
25 </div>
26
27 <div class="col-10 col-lg-6 mb-3 mb-lg-0">
28 <p class="card-text">
29 {{ _("Subscribe to receive notifications about important security updates of IPFire and other news from inside the project") }}
30 </p>
31 </div>
32
33 <div class="col-12 col-lg-4">
34 <form action="/subscribe" method="POST">
35 {% raw xsrf_form_html() %}
36
37 <button type="submit" class="btn btn-success btn-block">
38 {{ _("Subscribe Now") }}
39 </button>
40 </form>
41 </div>
42 </div>
43 </div>
44 </div>
45 {% end %}
46
47 {% if hints %}
48 <div class="card my-5">
49 <div class="card-body">
50 <div class="row">
51 <div class="col-12 col-md-2 text-center">
52 <i class="far fa-smile-wink fa-4x my-3"></i>
53 </div>
54
55 <div class="col-12 col-md-10">
56 <h4 class="mb-0">{{ _("Tell us more about you!") }}</h4>
57 <p>
58 {{ _("Become a part of our community and allow other people to connect with you!") }}
59 </p>
60 </div>
61 </div>
62 </div>
63
64 <div class="list-group list-group-flush">
65 {% for hint in hints %}
66 <a class="list-group-item list-group-item-action" href="/users/{{ current_user.uid }}/edit">
67 {% if hint == "avatar" %}
68 <h6 class="mb-0">{{ _("Upload an avatar!") }}</h6>
69
70 <p class="card-text">
71 {{ _("A picture says more than a thousand words.") }}
72 </p>
73 {% elif hint == "description" %}
74 <h6 class="mb-0">{{ _("Tell Us Who You Are!" ) }}</h6>
75
76 <p class="card-text">
77 {{ _("Add a couple of lines about yourself to your profile so that others get to know you better!") }}
78 </p>
79 {% end %}
80 </a>
81 {% end %}
82 </div>
83 </div>
84 {% end %}
85 </section>
86 {% end block %}