dating-website

dating website made in python
Log | Files | Refs | README

user.html (2098B)


      1 {% extends "page.html" %}
      2 
      3 {% block content %}
      4 
      5 <section>
      6   <h2>{{ user.firstname }} {{ user.lastname }}</h2>
      7 
      8   <img src="{{ user.profile_picture }}" alt="Profile Picture" style="max-width:200px; border-radius:8px;"><br><br>
      9 
     10   <p><strong>Age:</strong> {{ (date.today() - user.date_of_birth).days // 365 }}</p>
     11   <p><strong>Sex:</strong> {{ user.sex|capitalize }}</p>
     12 </section>
     13 
     14 
     15 {% if user.pictures %}
     16 <section>
     17   <h3>Gallery</h3>
     18   {% for pic in user.pictures %}
     19       <img src="{{ pic }}" style="max-width:120px; margin:5px; border-radius:6px;">
     20   {% endfor %}
     21 </section>
     22 {% endif %}
     23 
     24 
     25 <section>
     26   <h3>Personal Info</h3>
     27   <p><strong>Date of Birth:</strong> {{ user.date_of_birth }}</p>
     28   <p><strong>Race:</strong> {{ user.race or 'Not specified' }}</p>
     29 </section>
     30 
     31 
     32 <section>
     33   <h3>Location</h3>
     34   <p><strong>Country:</strong> {{ user.country }}</p>
     35   <p><strong>City:</strong> {{ user.city or 'Not specified' }}</p>
     36 </section>
     37 
     38 
     39 <section>
     40   <h3>Physical Attributes</h3>
     41   <p><strong>Height:</strong> 
     42     {% if user.height %}
     43       {{ user.height }} m
     44     {% else %}
     45       Not specified
     46     {% endif %}
     47   </p>
     48 
     49   <p><strong>Weight:</strong> 
     50     {% if user.weight %}
     51       {{ user.weight }} kg
     52     {% else %}
     53       Not specified
     54     {% endif %}
     55   </p>
     56 </section>
     57 
     58 
     59 <section>
     60   <h3>Preferences</h3>
     61 
     62   <p><strong>Preferred Age Range:</strong>
     63     {{ user.prefered_age_range or 'Not specified' }}
     64   </p>
     65 
     66   <p><strong>Likes:</strong></p>
     67   {% if user.likes %}
     68     <ul>
     69       {% for like in user.likes %}
     70         <li>{{ like }}</li>
     71       {% endfor %}
     72     </ul>
     73   {% else %}
     74     <p>Not specified</p>
     75   {% endif %}
     76 
     77   <p><strong>Dislikes:</strong></p>
     78   {% if user.dislikes %}
     79     <ul>
     80       {% for dislike in user.dislikes %}
     81         <li>{{ dislike }}</li>
     82       {% endfor %}
     83     </ul>
     84   {% else %}
     85     <p>Not specified</p>
     86   {% endif %}
     87 </section>
     88 
     89 
     90 <section>
     91   <h3>Contacts</h3>
     92   <p><strong>XMPP:</strong> {{ user.xmpp }}</p>
     93   <p><strong>Email:</strong> {{ user.email or 'Not specified' }}</p>
     94   <p><strong>Phone:</strong> {{ user.phone or 'Not specified' }}</p>
     95 </section>
     96 
     97 {% endblock %}