mirror of
https://github.com/creyD/asiimov.git
synced 2026-06-17 19:20:20 +02:00
Migrated Changes to DB
- Added Admin Link - Added confirmed trade count
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<div id="footer" style="text-align:center">
|
<div id="footer" style="text-align:center">
|
||||||
<a href="https://github.com/creyD/asiimov" target="_blank">GitHub</a>.<a href="{% url 'imprint' %}">Imprint</a>.<a href="{% url 'help' %}">Help</a>
|
<a href="https://github.com/creyD/asiimov" target="_blank">GitHub</a>.<a href="{% url 'imprint' %}">Imprint</a>.<a href="{% url 'help' %}">Help</a>.<a href="{% url 'admin:index' %}">Admin</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
23
src/core/migrations/0010_auto_20200308_2132.py
Normal file
23
src/core/migrations/0010_auto_20200308_2132.py
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Generated by Django 3.0.2 on 2020-03-08 20:32
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('core', '0009_gamer_inventory_2'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='gamer',
|
||||||
|
name='confirmed_count',
|
||||||
|
field=models.PositiveIntegerField(default=0),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='gamer',
|
||||||
|
name='offer_count',
|
||||||
|
field=models.PositiveIntegerField(default=0),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -97,10 +97,10 @@ class Gamer(models.Model):
|
|||||||
|
|
||||||
# Asiimov specific information
|
# Asiimov specific information
|
||||||
inventory = models.ManyToManyField(ItemInstance) # For skins
|
inventory = models.ManyToManyField(ItemInstance) # For skins
|
||||||
inventory_2 = models.ManyToManyField(ItemType) # For cases, badges usw
|
inventory_2 = models.ManyToManyField(ItemType) # For cases, badges etc
|
||||||
badges = models.ManyToManyField(Badge)
|
badges = models.ManyToManyField(Badge)
|
||||||
offer_count = models.IntegerField(default=0)
|
offer_count = models.PositiveIntegerField(default=0) # How many offers did the user create in the past?
|
||||||
confirmed_count = models.PositiveIntegerField(default=0)
|
confirmed_count = models.PositiveIntegerField(default=0) # How many confirmed trades resulted from those offers?
|
||||||
|
|
||||||
|
|
||||||
class Offer(models.Model):
|
class Offer(models.Model):
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<h3>Links</h3>
|
<h3>Links</h3>
|
||||||
<ul>
|
<ul style="list-style:none; text-align:center">
|
||||||
<a href="{{ gamer.profileurl }}" target="_blank"><li>Steam</li></a>
|
<a href="{{ gamer.profileurl }}" target="_blank"><li>Steam</li></a>
|
||||||
<a href="{% url 'profile_inventory' gamer.steamid %}"><li>Inventory</li></a>
|
<a href="{% url 'profile_inventory' gamer.steamid %}"><li>Inventory</li></a>
|
||||||
<a href="http://csgo.exchange/id/{{ gamer.steamid }}"><li>csgo.exchange</li></a>
|
<a href="http://csgo.exchange/id/{{ gamer.steamid }}"><li>csgo.exchange</li></a>
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
<h3>Statistics</h3>
|
<h3>Statistics</h3>
|
||||||
<p>Live Offers: <b>{{ live_offers }}</b></p>
|
<p>Live Offers: <b>{{ live_offers }}</b></p>
|
||||||
|
<p>Confimed trades: {{ gamer.confirmed_count }}</p>
|
||||||
<p>Offers created: {{ gamer.offer_count }}</p>
|
<p>Offers created: {{ gamer.offer_count }}</p>
|
||||||
<p>Asiimov Member since: {{ gamer.system_user.date_joined }}</p>
|
<p>Asiimov Member since: {{ gamer.system_user.date_joined }}</p>
|
||||||
<p>Last Asiimov Login: {{ gamer.system_user.last_login }}</p>
|
<p>Last Asiimov Login: {{ gamer.system_user.last_login }}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user