Skip to content

Instantly share code, notes, and snippets.

@camilosanchez
Created January 7, 2014 10:11
Show Gist options
  • Save camilosanchez/8297321 to your computer and use it in GitHub Desktop.
Save camilosanchez/8297321 to your computer and use it in GitHub Desktop.
this is the main view, the one that builds the list of items
{% load url from future %}
<h1>Dashboard</h1>
<h4>Hola {{ user }}</h4>
<a href="/offers/logout/">Logout</a>
<h3>Mis ofertas</h3>
<ul>
{% for offer in offer_list %}
<li><a href="{% url 'edit' offer.pk %}">{{ offer.offer_title }}</a></li>
{% empty %}
<li>Sorry, no offers yet. Check back soon!</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment