Skip to content

Commit 4fbdea8

Browse files
committed
format grid.js
1 parent 915f616 commit 4fbdea8

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

ishar/apps/challenges/templates/challenges.html

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,21 @@
4444
{% endfor %}
4545
],
4646
className: {
47-
table: "table table-bordered table-dark table-striped",
47+
table: 'table table-dark table-striped border border-secondary rounded'
48+
},
49+
style: {
50+
table: {'max-width': '50vw'},
51+
th: {'background-color': 'rgba(0, 0, 0, 0.1)'},
4852
},
4953
search: true,
5054
sort: true,
51-
pagination: false,
52-
width: '50%'
55+
pagination: false
5356
}).render(where);
5457
};
5558

5659
</script>
5760
{% endblock scripts %}
5861
{% block content %}
59-
<div class="card bg-dark">
60-
<div class="card-body">
61-
<div class="card-text" id="challenges"></div>
62-
</div>
63-
</div>
64-
<script>
65-
showChallenges(
66-
document.getElementById('challenges')
67-
);
68-
</script>
62+
<div class="bg-black mx-1 my-3 p-1 border border-secondary rounded" id="challenges"></div>
63+
<script>showChallenges(document.getElementById('challenges'));</script>
6964
{% endblock content %}

ishar/apps/leaders/templates/leaders.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,15 @@
7070
{% endfor %}
7171
],
7272
className: {
73-
table: "table table-bordered table-dark table-striped",
73+
table: 'table table-dark table-striped border border-secondary rounded'
74+
},
75+
style: {
76+
table: {'max-width': '50vw'},
77+
th: {'background-color': 'rgba(0, 0, 0, 0.1)'},
7478
},
7579
search: true,
7680
sort: true,
7781
pagination: true,
78-
width: '50%'
7982
}).render(where);
8083
};
8184
</script>
@@ -84,26 +87,26 @@
8487
<ul class="m-1 px-1 py-3 list-group list-group-horizontal">
8588
<li class="list-group-item bg-black" title="All">
8689
{% if game_type %}
87-
<a class="list-group-item-text" href="{% url "leaders" %}">All</a>
90+
<a class="list-group-item-text" href="{% url "leaders" %}#leaders">All</a>
8891
{% else %}
8992
<span class="text-ishar">All</span>
9093
{% endif %}
9194
</li>
9295
<li class="list-group-item bg-black" title="Classic">
9396
{% if game_type != "Classic" %}
94-
<a class="list-group-item-text" href="{% url "classic" %}">Classic</a>
97+
<a class="list-group-item-text" href="{% url "classic" %}#leaders">Classic</a>
9598
{% else %}
9699
<span class="text-ishar">Classic</span>
97100
{% endif %}
98101
</li>
99102
<li class="list-group-item bg-black" title="Survival">
100103
{% if game_type != "Survival" %}
101-
<a class="list-group-item-text" href="{% url "survival" %}">Survival</a>
104+
<a class="list-group-item-text" href="{% url "survival" %}#leaders">Survival</a>
102105
{% else %}
103106
<span class="text-ishar">Survival</span>
104107
{% endif %}
105108
</li>
106109
</ul>
107-
<div class="mx-1 my-3 p-1" id="leaders"></div>
110+
<div class="bg-black mx-1 my-3 p-1 border border-secondary rounded" id="leaders"></div>
108111
<script>showLeaders( document.getElementById('leaders'));</script>
109112
{% endblock content %}

ishar/apps/patches/templates/patches.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</summary>
2929
<blockquote class="border-top border-secondary blockquote m-3">
3030
<p>
31-
<a href="{{ patch.patch_file.url }}" target="_blank" title="{{ patch.patch_file.name }} &lt;{{ patch.patch_file.url }}&gt;">
31+
<a href="{{ patch.patch_file.url }}" target="_blank" title="{{ patch.patch_file.name }} &lt;https://{{ request.META.HTTP_HOST }}{{ patch.patch_file.url }}&gt;">
3232
{{ patch.patch_file.name }}
3333
</a>
3434
<small>

0 commit comments

Comments
 (0)