first commit
This commit is contained in:
29
public_web/templates/game/partials/sidebar_npcs.html
Normal file
29
public_web/templates/game/partials/sidebar_npcs.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{#
|
||||
NPCs Accordion Content
|
||||
Shows NPCs at current location with click to chat
|
||||
#}
|
||||
{% if npcs %}
|
||||
<div class="npc-list">
|
||||
{% for npc in npcs %}
|
||||
<div class="npc-item"
|
||||
hx-get="{{ url_for('game.npc_chat_modal', session_id=session_id, npc_id=npc.npc_id) }}"
|
||||
hx-target="#modal-container"
|
||||
hx-swap="innerHTML">
|
||||
<div class="npc-name">{{ npc.name }}</div>
|
||||
<div class="npc-role">{{ npc.role }}</div>
|
||||
<div class="npc-appearance">{{ npc.appearance }}</div>
|
||||
{% if npc.tags %}
|
||||
<div class="npc-tags">
|
||||
{% for tag in npc.tags %}
|
||||
<span class="npc-tag">{{ tag }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="quest-empty">
|
||||
No NPCs at this location.
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user