You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {% extends "oscar/base.html" %}
  2. {% load currency_filters %}
  3. {% load category_tags %}
  4. {% load i18n %}
  5. {% block layout %}
  6. {% block content_wrapper %}
  7. <div id="container">
  8. <div id="header">
  9. <p><a href="{{ homepage_url }}">{% trans "Oscar // Flexible e-commerce for Django" %}</a></p>
  10. <form method="get" action="{% url 'search:search' %}">
  11. {{ search_form.as_p }}
  12. <input type="submit" value="{% trans "Go!" %}" />
  13. </form>
  14. {% if user.is_authenticated %}
  15. <a href="{% url 'customer:summary' %}">{% trans "Profile" %}</a>
  16. <a href="{% url 'customer:logout' %}">{% trans "Logout" %}</a>
  17. {% else %}
  18. <a href="{% url 'customer:login' %}">{% trans "Login" %}</a>
  19. {% endif %}
  20. {% blocktrans with total=basket.total_incl_tax|currency %}Basket total: {{ total }}{% endblocktrans %}
  21. <a href="{% url 'basket:summary' %}">{% trans "View basket" %}</a>
  22. {% category_tree depth=2 as categories %}
  23. {% if categories %}
  24. <ul>
  25. {% for category in categories %}
  26. <li><a href="{{ category.0.get_absolute_url }}">{{ category.0.name }}</a>
  27. {% if category.1 %}
  28. <ul>
  29. {% for subcategory in category.1 %}
  30. <li><a href="{{ subcategory.0.get_absolute_url }}">{{ subcategory.0.name }}</a>
  31. {% endfor %}
  32. </ul>
  33. {% endif %}
  34. </li>
  35. {% endfor %}
  36. </ul>
  37. {% endif %}
  38. {% block header %}
  39. {% endblock %}
  40. </div>
  41. <div id="content">
  42. {% if messages %}
  43. <ul class="messages">
  44. {% for message in messages %}
  45. <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  46. {% endfor %}
  47. </ul>
  48. {% endif %}
  49. {% block content %}{% endblock %}
  50. </div>
  51. <div id="footer">{% block footer %}{% endblock %}</div>
  52. </div>
  53. {% endblock %}
  54. {% endblock %}