moved media to media folder in app
[~kgodey/maayanwich.git] / templates / base.html
index a910bb1..7de1bc3 100644 (file)
@@ -1,7 +1,8 @@
 <html>
        <head>
 <html>
        <head>
-               <link rel="stylesheet" href="http://127.0.0.1:8000/sandwiches/style.css" type="text/css">
+               <link rel="stylesheet" href="{{ media_url }}sandwiches/style.css" type="text/css">
                <title>{% block title %}Ma'ayanwich Tracker{% endblock %}</title>
                <title>{% block title %}Ma'ayanwich Tracker{% endblock %}</title>
+               {% block extrahead %}{% endblock %}
        </head>
        <body>
                <div id="wrapper">
        </head>
        <body>
                <div id="wrapper">
                                <h3 class="navtitle">Account</h3>
                                <ul class="nav">
                                        {% if user.is_authenticated %}
                                <h3 class="navtitle">Account</h3>
                                <ul class="nav">
                                        {% if user.is_authenticated %}
-                                               <li><a href="http://127.0.0.1:8000/sandwich/add/" class="navlink">Add sandwich</a></li>
-                                               <li><a href="http://127.0.0.1:8000/logout/" class="navlink">Logout</a></li>
+                                               <li><a href="{% url sandwich_user username=request.user.username %}" class="navlink">My Sandwiches</a></li>
+                                               <li><a href="{% url add_sandwich %}" class="navlink">Add sandwich</a></li>
+                                               <li><a href="{% url edit_user gusername=request.user.username %}" class="navlink">User Settings</a></li>
+                                               <li><a href="{% url logout %}" class="navlink">Logout</a></li>
                                        {% else %}
                                        {% else %}
-                                               <li><a href="http://127.0.0.1:8000/login/" class="navlink">Login</a></li>
-                                               <li><a href="http://127.0.0.1:8000/signup/" class="navlink">Signup</a></li>
+                                               <li><a href="{% url login %}" class="navlink">Login</a></li>
+                                               <li><a href="{% url signup %}" class="navlink">Signup</a></li>
                                        {% endif %}
                                </ul>
                                <h3 class="navtitle">Newest</h3>
                                        {% endif %}
                                </ul>
                                <h3 class="navtitle">Newest</h3>
                                <h3 class="navtitle">Sandwiches</h3>
                                <ul class="newest">
                                        {% for m in monthly %}
                                <h3 class="navtitle">Sandwiches</h3>
                                <ul class="newest">
                                        {% for m in monthly %}
-                                       <li><a href="http://127.0.0.1:8000/sandwich/{{ m.year }}/{{ m.month }}/"> {{ m|date:"F" }} {{m.year}} </a></li>
+                                       <li><a href="{% url sandwich_by_month year=m.year, month=m.month %}"> {{ m|date:"F" }} {{m.year}} </a></li>
                                        {% endfor %}
                                </ul>
                                <ul class="newest">
                                        {% endfor %}
                                </ul>
                                <ul class="newest">
-                                       <li><a href="http://127.0.0.1:8000/sandwich/all/" class="navlink">All sandwiches</a></li>
+                                       <li><a href="{% url index_sandwich %}" class="navlink">All sandwiches</a></li>
                                </ul>
                        </div>
                        <div id="content">
                                </ul>
                        </div>
                        <div id="content">