-
- {{ card.name|title }}
-
- {% include 'cards/manacost.html' %}
-
-
-
-
-
- {{ card.type|title }}
- —
- {% for attr in card.attributes.all %}
- {{ attr|title }}
- {% endfor %}
-
-
- {% for key, rarity in card.rarities.items %}
- {% if key == card.rarity %}{{ rarity }}{% endif %}
- {% endfor %}
-
-
-
-
- {% for ability in abilities %}
- {{ ability }}
- {% endfor %}
-
-
+{% block title %}Card: {{ card.name }}{% endblock %}
+
+{% block content %}
+
+
+ {{ card.name|title }}
+
+ {% include 'cards/manacost.html' %}
+
-
-
+
+
+
+ {{ card.type|title }}
+ —
+ {% for attr in card.attributes.all %}
+ {{ attr|title }}
+ {% endfor %}
+
+
+ {% for key, rarity in card.rarities.items %}
+ {% if key == card.rarity %}{{ rarity }}{% endif %}
+ {% endfor %}
+
+
+
+
+ {% for ability in abilities %}
+ {{ ability }}
+ {% endfor %}
+
+
+
+{% endblock %}
diff --git a/templates/decks/detail.html b/templates/decks/detail.html
index 6aa6b40..91699ae 100755
--- a/templates/decks/detail.html
+++ b/templates/decks/detail.html
@@ -1,6 +1,12 @@
+{% extends "main.html" %}
+
+{% block title %}Deck: {{ deck.name }}{% endblock %}
+
+{% block content %}
{{deck}}
{% for card in deck.included_set.all %}
{{card.count}}x {{ card.card }}
{% endfor %}
+{% endblock %}
diff --git a/templates/decks/index.html b/templates/decks/index.html
index 273fdf0..a2eeabf 100755
--- a/templates/decks/index.html
+++ b/templates/decks/index.html
@@ -1,6 +1,10 @@
+{% extends "main.html" %}
+
+{% block content %}
Decks
+{% endblock %}
diff --git a/templates/main.html b/templates/main.html
new file mode 100644
index 0000000..8c3fcf9
--- /dev/null
+++ b/templates/main.html
@@ -0,0 +1,37 @@
+
+
+
+
+
+
{% block title %}MTG Armory{% endblock %}
+
+
+
+
+
+ {% block content %}
+ Welcome to the MTG Armory
+
+ Someday this might grow up into yet another deck builder
+ site for folks to flock to and keep track of their stuff.
+ For now, though, it's just an awful looking dumping ground
+ for my own decks and Python experimentation.
+
+
+ This whole thing is just an excercise in learning Django
+ and HTML5, so don't expect too much out of it. Ever.
+
+ {% endblock %}
+
+
+
+
diff --git a/urls.py b/urls.py
index 86ff508..324aea9 100755
--- a/urls.py
+++ b/urls.py
@@ -9,6 +9,7 @@ admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^mtgweb/', include('mtgweb.foo.urls')),
+ (r'^$', 'mtgweb.analyzer.views.index'),
(r'^cards/$', list_detail.object_list, {'queryset': Card.objects.all(), 'paginate_by': 20}),
(r'^cards/(?P
.*?)/$', 'mtgweb.cards.views.display'),
(r'^decks/$', 'mtgweb.decks.views.index'),