Commits

Mikela Clemmons committed fc45d5f

typo fix

Comments (0)

Files changed (3)

events/templates/events/tags/lastest_events.html

-<ul class="events">
-{% for event in events %}
-    <li>
-        <a href='{% url view_event event.begin_date.year,event.begin_date.month,event.slug %}'>{{ event }}</a>-
-        {{ event.begin_date|date:"m/d/y" }}
-        <div class='description'>{{ event.description|safe|truncatewords_html:40 }}</div>
-    </li>
-{% endfor %}
-</ul>

events/templates/events/tags/latest_events.html

+<ul class="events">
+{% for event in events %}
+    <li>
+        <a href='{% url view_event event.begin_date.year,event.begin_date.month,event.slug %}'>{{ event }}</a>-
+        {{ event.begin_date|date:"m/d/y" }}
+        <div class='description'>{{ event.description|safe|truncatewords_html:40 }}</div>
+    </li>
+{% endfor %}
+</ul>

events/templatetags/event_tags.py

 register = template.Library()
 
 
-@register.inclusion_tag('events/tags/lastest_events.html')
+@register.inclusion_tag('events/tags/latest_events.html')
 def lastest_events(count):
     events = None
     if isinstance(count, int):