Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ISO 8601 date format #537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions templates/devel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ <h3>My Flagged Packages</h3>
{% endif %}{% endwith %}</td>
<td>{{ pkg.repo.name }}</td>
<td>{{ pkg.arch.name }}</td>
<td>{{ pkg.flag_date|date }}</td>
<td>{{ pkg.last_update|date }}</td>
<td>{{ pkg.flag_date|date:"Y-m-d" }}</td>
<td>{{ pkg.last_update|date:"Y-m-d" }}</td>
</tr>
{% empty %}
<tr class="empty"><td colspan="7"><em>No flagged packages to display</em></td></tr>
Expand Down Expand Up @@ -68,7 +68,7 @@ <h3>Signoff Status</h3>
<td>{{ group.version }}</td>
<td>{{ group.arch.name }}</td>
<td>{{ group.target_repo }}</td>
<td>{{ group.last_update|date }}</td>
<td>{{ group.last_update|date:"Y-m-d" }}</td>
{% if group.specification.known_bad %}
<td class="approval signoff-bad">Bad</td>
{% else %}
Expand Down Expand Up @@ -138,7 +138,7 @@ <h3>Package Todo Lists</h3>
<tr>
<td class="wrap"><a href="{{ todo.get_absolute_url }}"
title="View todo list: {{ todo.name }}">{{ todo.name }}</a></td>
<td>{{ todo.created|date }}</td>
<td>{{ todo.created|date:"Y-m-d" }}</td>
<td>{{ todo.creator.get_full_name }}</td>
<td>{{ todo.pkg_count }}</td>
<td>{{ todo.incomplete_count }}</td>
Expand Down
6 changes: 3 additions & 3 deletions templates/devel/packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ <h3>Filter Packages</h3>
{% else %}
<td>{{ pkg.full_version }}</td>
{% endif %}
<td>{{ pkg.last_update|date }}</td>
<td>{{ pkg.build_date|date }}</td>
<td>{{ pkg.flag_date|date }}</td>
<td>{{ pkg.last_update|date:"Y-m-d" }}</td>
<td>{{ pkg.build_date|date:"Y-m-d" }}</td>
<td>{{ pkg.flag_date|date:"Y-m-d" }}</td>
{% for attr in column_attrs %}
<td>{{ pkg|attribute:attr }}</td>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/news/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2>Arch Linux News Archives</h2>
<tbody>
{% for item in news_list %}
<tr>
<td>{{ item.postdate|date }}</td>
<td>{{ item.postdate|date:"Y-m-d" }}</td>
<td class="wrap"><a href="{{ item.get_absolute_url }}"
title="View: {{ item.title }}">{{ item.title }}</a></td>
<td>{{ item.author.get_full_name }}</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/news/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 itemprop="headline">{{ news.title }}</h2>
</ul>
{% endif %}

<p class="article-info">{{ news.postdate|date }} - {{ news.author.get_full_name }}</p>
<p class="article-info">{{ news.postdate|date:"Y-m-d" }} - {{ news.author.get_full_name }}</p>

<div class="article-content" itemprop="articleBody">{{ news.html }}</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/packages/differences.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ <h2>Multilib Differences to Main Packages</h2>
<td><span{% if pkg2.flag_date %} class="flagged"{% endif %}>{{ pkg2.full_version }}</span></td>
<td>{% pkg_details_link pkg2 %}</td>
<td>{{ pkg2.repo }}</td>
<td>{{ pkg1.last_update|date }}</td>
<td>{{ pkg2.last_update|date }}</td>
<td>{{ pkg1.last_update|date:"Y-m-d" }}</td>
<td>{{ pkg2.last_update|date:"Y-m-d" }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion templates/packages/groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Package Groups Overview{% if arch %} - {{ arch }}{% endif %}</h2>
<td><a href="/groups/{{ grp.arch }}/{{ grp.name }}/"
title="Group details for {{ grp.name }}">{{ grp.name }}</a></td>
<td>{{ grp.count }}</td>
<td>{{ grp.last_update|date }}</td>
<td>{{ grp.last_update|date:"Y-m-d" }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions templates/packages/package_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h4>Package Actions</h4>
</li>
{% endif %}
{% if pkg.flag_date %}
<li><span class="flagged">Flagged out-of-date on {{ pkg.flag_date|date }}</span></li>
<li><span class="flagged">Flagged out-of-date on {{ pkg.flag_date|date:"Y-m-d" }}</span></li>
{% with tp=pkg.in_testing %}{% if tp %}
<li><span class="flagged">Version
<a href="{{ tp.get_absolute_url }}"
Expand Down Expand Up @@ -207,7 +207,7 @@ <h4>Versions Elsewhere</h4>
{% endif %}
{% if user.is_authenticated %}{% with flag_request=pkg.flag_request %}{% if flag_request %}<tr>
<th>Last Flag Request:</th>
<td class="wrap">From {{ flag_request.who }} on {{ flag_request.created|date }}:<br/>
<td class="wrap">From {{ flag_request.who }} on {{ flag_request.created|date:"Y-m-d" }}:<br/>
<div class="userdata">{{ flag_request.message|linebreaksbr|default:"{no message}" }}</div></td>
</tr>{% endif %}{% endwith %}{% endif %}
</table>
Expand Down
4 changes: 2 additions & 2 deletions templates/packages/packages_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ <h2>{{ list_title }} - {{ name }} ({{ arch.name }})</h2>
<td>{{ pkg.full_version }}</td>
{% endif %}
<td class="wrap">{{ pkg.pkgdesc }}</td>
<td>{{ pkg.last_update|date }}</td>
<td>{{ pkg.flag_date|date }}</td>
<td>{{ pkg.last_update|date:"Y-m-d" }}</td>
<td>{{ pkg.flag_date|date:"Y-m-d" }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down
8 changes: 4 additions & 4 deletions templates/packages/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ <h2>Package Search</h2>
<td>{{ pkg.full_version }}</td>
{% endif %}
<td class="wrap">{{ pkg.pkgdesc }}</td>
<td>{{ pkg.last_update|date }}</td>
<td>{{ pkg.flag_date|date }}</td>
<td>{{ pkg.last_update|date:"Y-m-d" }}</td>
<td>{{ pkg.flag_date|date:"Y-m-d" }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down Expand Up @@ -115,8 +115,8 @@ <h2>Package Search</h2>
<td>{{ pkg.full_version }}</td>
{% endif %}
<td class="wrap">{{ pkg.pkgdesc }}</td>
<td>{{ pkg.last_update|date }}</td>
<td>{{ pkg.flag_date|date }}</td>
<td>{{ pkg.last_update|date:"Y-m-d" }}</td>
<td>{{ pkg.flag_date|date:"Y-m-d" }}</td>
</tr>
{% empty %}
<tr class="empty"><td colspan="{% if perms.main.change_package %}8{% else %}7{% endif %}"><em>No matching packages found</em></td></tr>
Expand Down
2 changes: 1 addition & 1 deletion templates/packages/signoffs.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h3>Filter Displayed Signoffs</h3>
<td>{{ group.target_repo }}</td>
<td>{{ group.packager|default:"Unknown" }}</td>
<td>{{ group.packages|length }}</td>
<td class="epoch-{{ group.last_update|date:'U' }}">{{ group.last_update|date }}</td>
<td class="epoch-{{ group.last_update|date:'U' }}">{{ group.last_update|date:"Y-m-d" }}</td>
{% if group.specification.known_bad %}
<td class="approval signoff-bad">Bad</td>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion templates/planet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h4>
<a href="{{ entry.url }}"
title="View full article: {{ entry.title }}">{{ entry.title }}</a>
</h4>
<p class="timestamp">{{ entry.publishdate|date }}</p>
<p class="timestamp">{{ entry.publishdate|date:"Y-m-d" }}</p>
<div class="article-content">
{{ entry.summary |safe }}
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h4>
<a href="{{ news.get_absolute_url }}"
title="View full article: {{ news.title }}">{{ news.title }}</a>
</h4>
<p class="timestamp">{{ news.postdate|date }}</p>
<p class="timestamp">{{ news.postdate|date:"Y-m-d" }}</p>
<div class="article-content">
{% if forloop.counter0 == 0 %}{{ news.html|truncatewords_html:300 }}
{% else %}{{ news.html|truncatewords_html:100 }}{% endif %}
Expand All @@ -63,7 +63,7 @@ <h3>
</h3>
<dl class="newslist">
{% endif %}
<dt>{{ news.postdate|date }}</dt>
<dt>{{ news.postdate|date:"Y-m-d" }}</dt>
<dd>
<a href="{{ news.get_absolute_url }}"
title="View full article: {{ news.title }}">{{ news.title }}</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/releng/release_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h2>{{ release.version }}</h2>

<ul>
<li><strong>Release Date:</strong> {{ release.release_date|date }}</li>
<li><strong>Release Date:</strong> {{ release.release_date|date:"Y-m-d" }}</li>
{% if release.kernel_version %}<li><strong>Kernel Version:</strong> {{ release.kernel_version }}</li>{% endif %}
<li><strong>Available:</strong> {{ release.available|yesno|capfirst }}</li>
{% if release.torrent_data %}
Expand Down
2 changes: 1 addition & 1 deletion templates/releng/release_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h2>Releases</h2>
<a href="{{ item.magnet_uri }}"
title="Get magnet link for {{ item.version }}"><img width="12" height="12" src="{% static "magnet.png" %}" alt="Magnet"/></a>
{% endif %}</td>
<td>{{ item.release_date|date }}</td>
<td>{{ item.release_date|date:"Y-m-d" }}</td>
<td><a href="{{ item.get_absolute_url }}" title="Release details for {{ item.version }}">{{ item.version }}</a></td>
<td>{{ item.kernel_version|default:"" }}</td>
<td class="available-{{ item.available|yesno }}">{{ item.available|yesno|capfirst }}</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/todolists/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2>Package Todo Lists</h2>
<tr>
<td class="wrap"><a href="{{ list.get_absolute_url }}"
title="View todo list: {{ list.name }}">{{ list.name }}</a></td>
<td>{{ list.created|date }}</td>
<td>{{ list.created|date:"Y-m-d" }}</td>
<td>{{ list.creator.get_full_name }}</td>
<td>{{ list.pkg_count }}</td>
<td>{{ list.incomplete_count }}</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/todolists/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>{{ list.kind_str | title }} Todo List {{ list.name }}</h2>
{% endif %}
</ul>

<div class="todo-info">{{ list.created|date }} - {{ list.creator.get_full_name }}</div>
<div class="todo-info">{{ list.created|date:"Y-m-d" }} - {{ list.creator.get_full_name }}</div>

<div class="todo-description">
{{list.stripped_description|default:'(no description)'|urlize|linebreaks}}
Expand Down
Loading