Skip to content

Commit 44913ef

Browse files
committed
portal format, buttons, popovers, headings, anchors, listgroup
1 parent a84421d commit 44913ef

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

apps/accounts/templates/portal.html

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<hr>
9090
<details>
9191

92-
<summary class="h3 text-ishar bg-black" title="Manage Account ({{ request.user.account_name }})">
92+
<summary class="h3 text-ishar bg-black" title="Player: {{ player.name }}">
9393
<span class="text-secondary">
9494
{{ forloop.counter }}.
9595
</span>
@@ -167,16 +167,16 @@ <h4 title="{{ player.player_title }}">
167167
{% endif %}
168168
<hr>
169169
<details open>
170-
<summary id="essence" class="h3 text-ishar" title="Essence ({{ request.user.account_name }})">
171-
<a class="anchor-link" href="#essence" aria-label="Link to this section: Essence ({{ request.user.account_name }})">
170+
<summary id="essence" class="text-ishar" title="Essence ({{ request.user.account_name }})">
171+
<a class="anchor-link h3" href="#essence" aria-label="Link to this section: Essence ({{ request.user.account_name }})">
172172
&#x23;
173173
</a>
174-
Essence
175-
<span class="badge bg-dark text-white rounded-pill small">
174+
<h3>Essence</h3>
175+
<span class="badge bg-dark rounded-pill border border-secondary">
176176
{{ request.user.current_essence }}
177177
</span>
178178
<button
179-
type="button" class="bg-black bi bi-question-circle border-0 p-1 small text-secondary"
179+
type="button" class="bg-black bi bi-question-circle border-0 p-1 text-secondary"
180180
data-bs-toggle="popover" data-bs-html="true" data-bs-title="<strong>Essence?</strong>"
181181
data-bs-content="&quot;<a title='Help: Essence'
182182
href='{% url 'help_page' help_topic='Essence' %}#topic'>Essence</a>&quot;
@@ -197,37 +197,38 @@ <h4 title="{{ player.player_title }}">
197197
</details>
198198
<hr>
199199
<details{% if request.user.upgrades.count > 0 %} open{% endif %}>
200-
<summary id="upgrades" class="h3 text-ishar" title="Account Upgrades ({{ request.user.account_name }}): {{ request.user.upgrades.count }}}">
201-
<a class="anchor-link" href="#upgrades" aria-label="Link to this section: Account Upgrades ({{ request.user.account_name }})">
200+
<summary id="upgrades" class="text-ishar" title="Account Upgrades ({{ request.user.account_name }}): {{ request.user.upgrades.count }}}">
201+
<a class="anchor-link h3" href="#upgrades" aria-label="Link to this section: Account Upgrades ({{ request.user.account_name }})">
202202
&#x23;
203203
</a>
204-
Upgrades
205-
<span class="badge bg-dark text-white rounded-pill small">
204+
<h3>Upgrades</h3>
205+
<span class="badge bg-dark rounded-pill border border-secondary">
206206
{{ request.user.upgrades.count }}
207207
</span>
208208
<button
209-
type="button" class="bg-black bi bi-question-circle border-0 p-1 small text-secondary"
209+
type="button" class="bg-black bi bi-question-circle border-0 p-1 text-secondary"
210210
data-bs-toggle="popover" data-bs-html="true" data-bs-title="<strong>Remort Upgrades?</strong>"
211211
data-bs-content="A list of player remort upgrades
212212
(<em>which can be &quot;bought&quot; with renown points in-game</em>)
213213
<a href='{% url 'upgrades' %}#upgrades'>is available here</a>.">
214214
</button>
215215
</summary>
216216
{% if request.user.upgrades.all %}
217-
<ol class="list-group list-group-horizontal-vertical list-group-numbered">
217+
<ul class="bg-black list-group list-group-unbordered border-0">
218218
{% for upgraded in request.user.upgrades.all %}
219-
<li class="bg-black border-0 list-group-item list-group-item-dark" title="{{ upgraded.upgrade.name }}{% if upgraded.amount > 1 %} (x{{ upgraded.amount }}){% endif %}">
219+
<li class="bg-black list-group-item border-0" title="{{ upgraded.upgrade.name }} (x{{ upgraded.amount }})">
220+
<span class="text-secondary me-3">
221+
{{ forloop.counter }}.
222+
</span>
220223
<span class="list-group-item-text text-white">
221224
{{ upgraded.upgrade.name }}
222225
</span>
223-
{% if upgraded.amount > 1 %}
224226
<span class="badge bg-dark text-ishar rounded-pill">
225-
x{{ upgraded.amount }}
227+
{{ upgraded.amount }}
226228
</span>
227-
{% endif %}
228229
</li>
229230
{% endfor %}
230-
</ol>
231+
</ul>
231232
{% else %}
232233
<p class="fst-italic text-reset" title="You have not purchased any upgrades.">
233234
You have not purchased any upgrades.
@@ -238,11 +239,11 @@ <h4 title="{{ player.player_title }}">
238239
<hr>
239240

240241
<details open>
241-
<summary id="created" class="h3 text-ishar" title="Account Created ({{ request.user.account_name }}): {{ request.user.created_at | naturaltime }}">
242-
<a class="anchor-link" href="#created" aria-label="Link to this section: Account Created ({{ request.user.account_name }}): {{ request.user.created_at | naturaltime }}">
242+
<summary id="created" class="text-ishar" title="Account Created ({{ request.user.account_name }}): {{ request.user.created_at | naturaltime }}">
243+
<a class="anchor-link h3" href="#created" aria-label="Link to this section: Account Created ({{ request.user.account_name }}): {{ request.user.created_at | naturaltime }}">
243244
&#x23;
244245
</a>
245-
Created
246+
<h3>Created</h3>
246247
</summary>
247248
<p>Your account was created:</p>
248249
<blockquote class="blockquote">

0 commit comments

Comments
 (0)