Ticket #65 (reopened enhancement)
Changes separated by day
| Reported by: | BayleShanks | Owned by: | sheep |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Hatta Wiki | Version: | 1.4.1dev |
| Keywords: | Cc: |
Description
If you replace templates/Changes.html with this, you get the Changes separated by day, which makes them easier to read -- ~BayleShanks :
{% extends "page_special.html" %} {% block page_title %}<h1>{{ _("Recent changes") }}</h1>{% endblock %} {% block title %}{{ _("Recent changes") }} - {{ wiki.site_name }}{% endblock %} {% block content %} <p><ul class="changes"> {% for date, date_url, title, author, comment in changes %} {% if date.date() != lastdate %} </ul></p> {{ date.strftime('<abbr class="date" title="%Y-%m-%d">%Y-%m-%d</abbr>') | safe }} <p><ul class="changes"> {% endif %} {% set lastdate = date.date() %} <li><a href="{{ date_url }}">{{ date.strftime('<abbr class="date" title="%H:%M:%SZ">%H:%M</abbr>')|safe }}</a> <b>{{ page.wiki_link(title)|safe }}</b> . . . . <i>{{ page.wiki_link("~%s" % author, author)|safe }}</i> <div class="comment">{{ comment }}</div> </li> {% endfor %} </ul></p> {% endblock %}
Change History
comment:1 Changed 13 months ago by sheep
- Status changed from new to closed
- Resolution set to wontfix
comment:2 Changed 13 months ago by sheep
- Status changed from closed to reopened
- Resolution wontfix deleted
It would actually be possible to improve the JavaScript post-processing to either move the entries, or -- I think that would be easier -- to remove the day headings and reinsert them in the right spots. I need to think about how to do it best.
comment:3 Changed 13 months ago by sheep
By the way, I didn't thank you for your contribution, sorry, I do appreciate it, and sorry for moving it from the wiki, but it's much easier to track issues with an actual issue tracker.
comment:4 Changed 13 months ago by Bayle Shanks <http://bayleshanks.com/>
No prob, I'm happy for it to be moved; I looked for pages about development on hatta-wiki.org to see where you wanted suggestions to be sent, but I couldn't find anything, so I just posted it there.
I made a link to this Trac from http://hatta-wiki.org/Development
Thanks again for all your effort making Hatta, by the way! I'm using it as a project wiki.

That won't work. Remember that Hatta does a little post-processing of the page with JavaScript to make all the times and dates fit your timezone. But that script can't move the entires between days.