mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Basic user profile
This commit is contained in:
@ -1 +1,7 @@
|
||||
{% extends "sith/base.html" %}
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
Hello, world. You're at the core index.
|
||||
{% endblock %}
|
||||
|
28
core/templates/core/user.html
Normal file
28
core/templates/core/user.html
Normal file
@ -0,0 +1,28 @@
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block title %}
|
||||
{% if profile %}
|
||||
{{ profile.get_display_name }}'s profile
|
||||
{% endif %}
|
||||
{% if user_list %}
|
||||
User list
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if profile %}
|
||||
<h3>User Profile</h3>
|
||||
<p><a href="{% url 'core:user_list' %}">Back to list</a></p>
|
||||
<p>You're seeing the profile of <strong>{{ profile.get_display_name }}</strong></p>
|
||||
{% endif %}
|
||||
|
||||
{% if user_list %}
|
||||
<h3>User list</h3>
|
||||
<ul>
|
||||
{% for u in user_list %}
|
||||
<li><a href="{% url 'core:user_profile' u.id %}">{{ u.get_display_name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user