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

Added Functionality To Get Player Inventory

This commit is contained in:
2020-01-19 17:49:44 +01:00
parent 349116141f
commit 3640feb612
10 changed files with 207 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
{% extends 'master.html' %}
{% load static %}
{% block header %}
<!-- Adding custom style sheet for profile-->
<link rel="stylesheet" href="{% static 'css/profile.css' %}">
{% endblock %}
{% block content %}
<div class="content_block">
<h3>{{ gamer.personaname }} - Inventory</h3>
{% if request.user.gamer == gamer %}<p><a href="{% url 'profile_inventory_update' gamer.steamid %}">Refresh Inventory Data</a></p>{% endif %}
{% for item in gamer.inventory.all %}
<div>
<h4 style="color: #{{ item.item_class.name_color }}">item.item_class.name</h4>
<p></p>
</div>
{% empty %}
No Invetory Data!
{% endfor %}
</div>
{% endblock %}