]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/templates/people/index.html
people: Allow to modify if people want to receive promotional updates
[ipfire.org.git] / src / templates / people / index.html
index f8173acd4f7309ad17eaa198a73bf51d4d5523b3..1fb58b56a516365daae434371a81f6d055146787 100644 (file)
                        </div>
                </div>
 
+               {% if not current_user.consents_to_promotional_emails %}
+                       <div class="card glow-primary border-primary">
+                               <div class="card-body">
+                                       <h6>{{ _("You are currently not subscribed to important updates from the IPFire Project") }}</h6>
+
+                       <div class="row">
+                           <div class="col-2 d-flex align-items-center justify-content-center">
+                               <i class="fas fa-envelope-open-text fa-3x text-primary"></i>
+                           </div>
+
+                           <div class="col-10 col-lg-6 mb-3 mb-lg-0">
+                               <p class="card-text">
+                                   {{ _("Subscribe to receive notifications about important security updates of IPFire and other news from inside the project") }}
+                               </p>
+                           </div>
+
+                           <div class="col-12 col-lg-4">
+                               <a class="btn btn-success btn-block" href="/subscribe">
+                                   {{ _("Subscribe Now") }}
+                               </a>
+                           </div>
+                       </div>
+                               </div>
+                       </div>
+               {% end %}
+
                {% if hints %}
                        <div class="card my-5">
                                <div class="card-body">