Stephen McDonald avatar Stephen McDonald committed f9e4ed3 Draft

Link table headers to their URLs

Comments (0)

Files changed (2)

gnotty/templates/gnotty/calendar.html

 
 <div class="span4">
 <table class="table table-striped calendar">
-    <tr><th colspan="7"><h2>{{ month.month|date:"N Y" }}</h2></th></tr>
+    <tr><th colspan="7"><h2><a href="{% url gnotty_month month.month.year month.month.month %}">{{ month.month|date:"N Y" }}</a></h2></th></tr>
     {% for week in month.weeks %}
     <tr>
     {% for day in week %}

gnotty/templates/gnotty/messages.html

 {% for message in messages %}
 {% with message.message_time.date as day %}
 {% ifchanged day %}
-<tr><th colspan="{% if request.GET.q %}4{% else %}3{% endif %}"><h2>{{ day }}</h2></th></tr>
+<tr>
+    <th colspan="{% if request.GET.q %}4{% else %}3{% endif %}">
+        <h2><a href="{% url gnotty_day day.year day.month day.day %}">{{ day }}</a></h2>
+    </th>
+</tr>
 {% endifchanged %}
 <tr id="message-{{ message.id }}">
     {% if request.GET.q %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.