Support handling vault-content events in the vault UI

This commit is contained in:
Trever Fischer
2012-11-17 21:33:42 -05:00
parent a306df9df0
commit 690ff8f21e
5 changed files with 124 additions and 33 deletions

View File

@@ -1,8 +1,14 @@
{% extends "base_simple.html" %}
{%load static %}
{% get_static_prefix as STATIC_PREFIX %}
{% block title %}Vault{% endblock %}
{% block sectiontitle %}Your Vault{% endblock %}
{% block extrahead %}
<script type="text/javascript" language="javascript" src="{{STATIC_PREFIX}}/js/vault.js"></script>
{% endblock %}
{% block content %}
<table class="inventory">
<tr>
@@ -11,10 +17,8 @@
</tr>
<tr>
{% endif %}
<td>
{% if slot.item %}
<td data-id="{{slot.id}}" data-position="{{slot.position}}">
{% include 'common/item.html' with quantity=slot.quantity item=slot.item %}
{% endif %}
</td>
{% endfor %}
</tr>