Commit eb46292a authored by Anya Habana's avatar Anya Habana

Added user images to template

parent 20f64a0e
......@@ -10,6 +10,15 @@
{% block content %}
<h1 class="homepage-heading">Widget User Details</h1>
<h2 class="homepage-subheading">{{ widgetuser.last_name }}, {{ widgetuser.first_name }} {{ widgetuser.middle_name }}</h2>
{% if widgetuser.id == 1 %}
<img src="{% static 'user1.jpeg' %}" class="homepage-image" alt="Leni Robredo">
{% elif widgetuser.id == 2 %}
<img src="{% static 'user2.jpeg' %}" class="homepage-image" alt="Lady Gaga">
{% else %}
<img src="{% static 'user3.jpeg' %}" class="homepage-image" alt="Bruno Mars">
{% endif %}
<ul>
<p>ID: {{ widgetuser.id }}</p>
<p>Email: {{ widgetuser.email }}</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment