1
0
mirror of https://github.com/creyD/asiimov.git synced 2026-06-13 09:32:23 +02:00

Profile and Settings Work

- Added logout button + url
- Added redirect urls
- Fixed bug where the steam name wouldn't show in template
- Added tradeurl to model
- Added simple profile
- Added ability to change own trade url
This commit is contained in:
2020-01-19 11:14:34 +01:00
parent 1f8aaa7277
commit 9d32b12b05
14 changed files with 167 additions and 19 deletions

View File

@@ -13,6 +13,7 @@
<link rel="stylesheet" href="{% static 'css/master.css' %}">
<!-- JQuery for easier HTML manipulation -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
{% block header %}{% endblock %}
</head>
<body>
@@ -22,7 +23,7 @@
</div>
<div id="right_nav" class="nav_box">
{% if user.is_authenticated %}
<a href="{% url 'offer_create' %}">Add Offer</a> | <a href="{% url 'me_settings' %}">settings</a> | Welcome, <a href="{% url 'me' %}">{{ user.gamer.display_name }}</a>
<a href="{% url 'offer_create' %}">Add Offer</a> | <a href="{% url 'me_settings' %}">Settings</a> | Welcome, <a href="{% url 'me' %}">{{ user.gamer.personaname }} <a href="{% url 'logout' %}">(Logout)</a></a>
{% else %}
<a href="{% url 'signup' %}"><img src="{% static 'pic/steam_sign_in.png' %}" /></a>
{% endif %}