1
0
mirror of https://github.com/creyD/asiimov.git synced 2026-06-11 16:42:23 +02:00

Repaired Prettified Files

This commit is contained in:
2020-01-22 23:20:30 +01:00
parent 24c586a0d5
commit 4374c2716b
2 changed files with 25 additions and 24 deletions

View File

@@ -1,24 +1,24 @@
{% extends 'master.html' %} {% load static %} {% block header %}
{% extends 'master.html' %}
{% load static %}
{% block header %}
<!-- Adding custom style sheet for profile-->
<link rel="stylesheet" href="{% static 'css/profile.css' %}" />
{% endblock %} {% block content %}
{% endblock %}
{% block content %}
<div class="content_block">
<p><img src="{{ gamer.avatar }}" /></p>
<h2>
{{ gamer.personaname }} {% if request.user.gamer == gamer %}(Your Profile){%
endif %}
{{ gamer.personaname }} {% if request.user.gamer == gamer %}(Your Profile){% endif %}
</h2>
<h3>Links</h3>
<ul>
<a href="{{ gamer.profileurl }}" target="_blank"><li>Steam</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
>
{% if gamer.tradeurl %}<a href="{{ gamer.tradeurl }}" target="_blank"
><li>Trade</li></a
>{% endif %}
<a href="{% url 'profile_inventory' gamer.steamid %}"><li>Inventory</li></a>
<a href="http://csgo.exchange/id/{{ gamer.steamid }}"><li>csgo.exchange</li></a>
{% if gamer.tradeurl %}<a href="{{ gamer.tradeurl }}" target="_blank"><li>Trade</li></a>{% endif %}
</ul>
<h3>Info</h3>
@@ -31,15 +31,14 @@
Comments: {% if gamer.commentpermission %}Allowed{% else %}Denied{% endif %}
</p>
<p>
Locale: {% if gamer.loccountrycode %}{{ gamer.loccountrycode }}{% else %}Not
provided{% endif %}
Locale: {% if gamer.loccountrycode %}{{ gamer.loccountrycode }}{% else %}Not provided{% endif %}
</p>
<h3>Badges</h3>
<p>
{% for badge in gamer.badges.all %}
<img src="{{ badge.icon }}" placeholder="{{ badge.name }}" />
{% empty %} No badges earned yet. {% endfor %}
{% empty %} None earned yet.{% endfor %}
</p>
<h3>Statistics</h3>

View File

@@ -1,21 +1,23 @@
{% extends 'master.html' %} {% load static %} {% block header %}
{% extends 'master.html' %}
{% load static %}
{% block header %}
<!-- Adding custom style sheet for profile-->
<link rel="stylesheet" href="{% static 'css/profile.css' %}" />
{% endblock %} {% block content %}
{% endblock %}
{% block content %}
<div class="content_block">
<h2>Settings</h2>
<a
href="http://steamcommunity.com/id/me/tradeoffers/privacy#trade_offer_access_url"
target="_blank"
>Find your trade URL!</a
>
<a href="{% url 'profile_update' gamer.steamid %}"
>Synchronize profile from Steam</a
>
<h3>Trade URL</h3>
<p><a href="http://steamcommunity.com/id/me/tradeoffers/privacy#trade_offer_access_url" target="_blank">Find your trade URL!</a></p>
<form role="from" method="post" action="{% url 'me_settings' %}">
{% csrf_token %} {{ form.as_p }}
<button type="submit">Set Trade URL</button>
</form>
<h3>Other</h3>
<p><a href="{% url 'profile_update' gamer.steamid %}">Synchronize profile from Steam</a></p>
</div>
{% endblock %}