1. Colin Copeland
  2. django-basic-events

Commits

Mikela Clemmons  committed fc45d5f

typo fix

  • Participants
  • Parent commits 194628d
  • Branches default

Comments (0)

Files changed (3)

File 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>

File events/templates/events/tags/latest_events.html

View file
+<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>

File events/templatetags/event_tags.py

View file
 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):