Skip to content
Snippets Groups Projects
Commit d1b176a5 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Use date formats from settings instead of hardcoding them.

parent c17fdaec
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="feed__content js-feed-content"> <div class="feed__content js-feed-content">
<div class="feed__meta js-feed-meta"> <div class="feed__meta js-feed-meta">
<p class="feed__label feed__label--{{ activity.type }} feed__label--mobile">{{ activity.type|capfirst }}</p> <p class="feed__label feed__label--{{ activity.type }} feed__label--mobile">{{ activity.type|capfirst }}</p>
<p class="feed__meta-item"><span>{{ activity|display_author:request.user }}</span> – {{ activity.timestamp|date:"Y-m-d H:i" }}</p> <p class="feed__meta-item"><span>{{ activity|display_author:request.user }}</span> – {{ activity.timestamp|date:"SHORT_DATETIME_FORMAT" }}</p>
{% if editable %} {% if editable %}
{% if activity.user == request.user %} {% if activity.user == request.user %}
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</p> </p>
{% endif %} {% endif %}
<p class="feed__meta-item feed__meta-item--last-edited" {% if not activity.edited %} hidden {% endif %}> <p class="feed__meta-item feed__meta-item--last-edited" {% if not activity.edited %} hidden {% endif %}>
(Last edited: <span class="js-last-edited">{{ activity.edited|date:"Y-m-d H:i" }}</span>) (Last edited: <span class="js-last-edited">{{ activity.edited|date:"SHORT_DATETIME_FORMAT" }}</span>)
</p> </p>
{% endif %} {% endif %}
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{% if reviewer.role %}{% image reviewer.role.icon max-12x12 %}{% endif %} {% if reviewer.role %}{% image reviewer.role.icon max-12x12 %}{% endif %}
</div> </div>
</a> </a>
<div class="reviews-sidebar__date">{{ reviewer.review.created_at|date:"Y-m-d" }}</div> <div class="reviews-sidebar__date">{{ reviewer.review.created_at|date:"SHORT_DATE_FORMAT" }}</div>
</div> </div>
{% else %} {% else %}
<div class="reviews-sidebar__name"> <div class="reviews-sidebar__name">
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<p> {{ round.fund|default_if_none:"-" }} </p> <p> {{ round.fund|default_if_none:"-" }} </p>
<p class="round-block__date"> <p class="round-block__date">
{% if round.end_date %} {% if round.end_date %}
{{ display_text }} {{ round.end_date|date:"Y-m-d" }} {{ display_text }} {{ round.end_date|date:"SHORT_DATE_FORMAT" }}
{% else %} {% else %}
Open Open
{% endif %} {% endif %}
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<td> <td>
{% if submission.last_update %} {% if submission.last_update %}
<strong>by {{ submission.last_user_update }}</strong><br/> <strong>by {{ submission.last_user_update }}</strong><br/>
{{ submission.last_update|date:"Y-m-d \a\t H:i" }} {{ submission.last_update|date:"SHORT_DATETIME_FORMAT" }}
{% else %} {% else %}
&mdash; &mdash;
{% endif %} {% endif %}
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<h5>Approved By:</h5> <h5>Approved By:</h5>
{% for approval in approvals %} {% for approval in approvals %}
<p>{{ approval.by }} - {{ approval.created_at|date:"Y-m-d" }}</p> <p>{{ approval.by }} - {{ approval.created_at|date:"SHORT_DATE_FORMAT" }}</p>
{% endfor %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="admin-bar"> <div class="admin-bar">
<div class="admin-bar__inner"> <div class="admin-bar__inner">
<h1 class="beta heading heading--no-margin heading--bold">Review</h1> <h1 class="beta heading heading--no-margin heading--bold">Review</h1>
<h5>For <a href="{% url "funds:submissions:detail" review.submission.id %}">{{ review.submission.title }}</a> by {{ review.author }} at {{ review.created_at|date:"Y-m-d" }} {% if review.is_updated %}<small>(Last updated: {{ review.updated_at|date:"Y-m-d" }})</small>{% endif %}</h5> <h5>For <a href="{% url "funds:submissions:detail" review.submission.id %}">{{ review.submission.title }}</a> by {{ review.author }} at {{ review.created_at|date:"SHORT_DATE_FORMAT" }} {% if review.is_updated %}<small>(Last updated: {{ review.updated_at|date:"SHORT_DATE_FORMAT" }})</small>{% endif %}</h5>
{% include 'review/includes/review_opinions_list.html' with opinions=review.opinions.all %} {% include 'review/includes/review_opinions_list.html' with opinions=review.opinions.all %}
</div> </div>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<h6 class="listing__teaser">{{ n.listing_summary|default:n.introduction }}</h6> <h6 class="listing__teaser">{{ n.listing_summary|default:n.introduction }}</h6>
{% endif %} {% endif %}
<span class="listing__meta"> <span class="listing__meta">
{{ n.display_date|date:"Y-m-d" }} {{ n.display_date|date:"SHORT_DATE_FORMAT" }}
{% if n.authors.all %} {% if n.authors.all %}
| By: | By:
{% for author in n.authors.all %} {% for author in n.authors.all %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment