-<html>
- <head>
- <title>Every Ma'ayanwich Ever!</title></head>
- <body>
- <h1>All Ma'ayanwiches</h1>
- {% for s in sandwiches %}
- <h3>{{ s.adjective }}</h3>
- <p>Made on {{ s.date_made }} and added by {{ s.user.username }}.</p>
- <img src="{{ s.picture.url }}">
- <h5>Ingredients</h5>
- <ul>
+{% extends "base.html" %}
+
+{% block content %}
+ {% for s in allsandwiches %}
+ <h3 class="sandwichtitle">{{ s.adjective }}</h3>
+ <p class="metadata">Made on {{ s.date_made|date:"F j Y" }} and added by
+ {% ifequal s.user request.user %} you.
+ <a href="{% url edit_sandwich slug=s.slug %}"> (Edit)
+ {% else %}
+ {% if s.user.first_name %} {{ s.user.first_name }}
+ {% if s.user.last_name %} {{ s.user.last_name }}
+ {% endif %}
+ {% else %}
+ {{ s.user.username }}.
+ {% endif %}
+ {% endifequal %}</p>
+ {% if s.picture %}
+ <img class="sandwichimg" src="{{ s.picture.url }}">
+ {% endif %}
+ <h4 class="sandwichsub">Ingredients</h4>
+ <ul class="ingredients">