upload avatars (nonfunctional)
This commit is contained in:
parent
dae9b5c023
commit
5080de9c6b
8 changed files with 49 additions and 6 deletions
|
@ -26,7 +26,7 @@
|
|||
<div id="account">
|
||||
{% if user.is_authenticated %}
|
||||
<form name="logout" action="/logout/" method="post">
|
||||
Welcome, {{ request.user.username }}
|
||||
Welcome, {% if request.user.localname %}{{ request.user.localname }}{% else %}{{ request.user.username }}{% endif %}
|
||||
<input type="submit" value="Log out"></input>
|
||||
</form>
|
||||
{% else %}
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
<div id="main">
|
||||
<div class="user-profile">
|
||||
<img class="user-pic" src="/static/images/profile.jpg">
|
||||
<h1>{{ user.username }}</h1>
|
||||
<h1>{% if user.localname %}{{ user.localname }}{% else %}{{ user.username }}{% endif %}</h1>
|
||||
{% if is_self %}<a href="/user/{{ user.localname }}/edit">Edit profile</a>
|
||||
<p>Since {{ user.created_date }}</p>
|
||||
{% endif %}
|
||||
{% if not is_self %}
|
||||
{% if not following %}
|
||||
<form action="/follow/" method="post">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue