Add full datetime as tooltips

This commit is contained in:
rubenwardy 2024-07-05 01:19:33 +01:00
parent 576d9dd3e0
commit 9bf91f17d6
8 changed files with 15 additions and 13 deletions

@ -55,7 +55,7 @@
{% endif %} {% endif %}
<div class="col-sm-auto text-muted"> <div class="col-sm-auto text-muted" title="{{ entry.created_at | full_datetime }}">
{{ entry.created_at | datetime }} {{ entry.created_at | datetime }}
</div> </div>
</div> </div>

@ -51,7 +51,8 @@
</a> </a>
<a name="reply-{{ reply.id }}" class="text-muted float-end" <a name="reply-{{ reply.id }}" class="text-muted float-end"
href="{{ url_for('threads.view', id=review.thread.id) }}#reply-{{ reply.id }}"> href="{{ url_for('threads.view', id=review.thread.id) }}#reply-{{ reply.id }}"
title="{{ review.created_at | full_datetime }}">
{{ review.created_at | datetime }} {{ review.created_at | datetime }}
</a> </a>
</div> </div>

@ -34,7 +34,7 @@
{% endif %} {% endif %}
<a name="reply-{{ r.id }}" class="text-muted float-end" <a name="reply-{{ r.id }}" class="text-muted float-end"
href="{{ r.get_url() }}"> href="{{ r.get_url() }}" title="{{ r.created_at | full_datetime }}">
{{ r.created_at | datetime }} {{ r.created_at | datetime }}
</a> </a>
</div> </div>
@ -97,7 +97,7 @@
</div> </div>
<div class="col-auto"> <div class="col-auto">
<a name="reply-{{ r.id }}" class="text-muted float-end" <a name="reply-{{ r.id }}" class="text-muted float-end"
href="{{ r.get_url() }}"> href="{{ r.get_url() }}" title="{{ r.created_at | full_datetime }}">
{{ r.created_at | datetime }} {{ r.created_at | datetime }}
</a> </a>
</div> </div>
@ -239,7 +239,7 @@
<span> <span>
{{ t.author.display_name }} {{ t.author.display_name }}
</span> </span>
<span class="text-muted ms-3"> <span class="text-muted ms-3" title="{{ r.created_at | full_datetime }}">
{{ t.created_at | datetime }} {{ t.created_at | datetime }}
</span> </span>
</div> </div>
@ -257,7 +257,7 @@
<span> <span>
{{ latest.author.display_name }} {{ latest.author.display_name }}
</span><br /> </span><br />
<span class="text-muted"> <span class="text-muted" title="{{ latest.created_at | full_datetime }}">
{{ latest.created_at | datetime }} {{ latest.created_at | datetime }}
</span> </span>
{% endif %} {% endif %}

@ -21,7 +21,7 @@
{{ _("On %(trigger)s, do %(action)s", trigger=config.trigger.value, action=action) }} {{ _("On %(trigger)s, do %(action)s", trigger=config.trigger.value, action=action) }}
{% else %} {% else %}
{{ config.get_message() }}<br /> {{ config.get_message() }}<br />
<span class="text-muted"> <span class="text-muted" title="{{ config.outdated_at | full_datetime }}">
{{ config.outdated_at | datetime }} {{ config.outdated_at | datetime }}
</span> </span>
{% endif %} {% endif %}

@ -642,7 +642,7 @@
<dd><i>{{ _("Unknown") }}</i></dd> <dd><i>{{ _("Unknown") }}</i></dd>
{% endif %} {% endif %}
<dt>{{ _("Added") }}</dt> <dt>{{ _("Added") }}</dt>
<dd>{{ package.created_at | datetime }}</dd> <dd title="{{ package.created_at | full_datetime }}">{{ package.created_at | datetime }}</dd>
<dt>{{ _("Maintainers") }}</dt> <dt>{{ _("Maintainers") }}</dt>
<dd> <dd>
{% for user in package.maintainers %} {% for user in package.maintainers %}

@ -52,7 +52,8 @@
{% endif %} {% endif %}
<a name="reply-{{ r.id }}" class="text-muted float-end" <a name="reply-{{ r.id }}" class="text-muted float-end"
href="{{ url_for('threads.view', id=r.thread.id) }}#reply-{{ r.id }}"> href="{{ url_for('threads.view', id=r.thread.id) }}#reply-{{ r.id }}"
title="{{ r.created_at | full_datetime }}">
{{ r.created_at | datetime }} {{ r.created_at | datetime }}
</a> </a>
</div> </div>

@ -47,7 +47,7 @@
<div class="list-group list-group-flush"> <div class="list-group list-group-flush">
{% for p in packages %} {% for p in packages %}
<a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action"> <a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action">
<span class="float-end" title="Created {{ p.created_at | datetime }}"> <span class="float-end" title="Created {{ p.created_at | full_datetime }}">
<small> <small>
{{ p.created_at | timedelta }} ago {{ p.created_at | timedelta }} ago
</small> </small>
@ -108,7 +108,7 @@
<div class="list-group list-group-flush"> <div class="list-group list-group-flush">
{% for p in license_needed %} {% for p in license_needed %}
<a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action"> <a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action">
<span class="float-end" title="Created {{ p.created_at | datetime }}"> <span class="float-end" title="Created {{ p.created_at | full_datetime }}">
<small> <small>
{{ p.created_at | timedelta }} ago {{ p.created_at | timedelta }} ago
</small> </small>
@ -165,7 +165,7 @@
<div class="list-group list-group-flush" style="max-height: 300px; overflow: hidden auto;"> <div class="list-group list-group-flush" style="max-height: 300px; overflow: hidden auto;">
{% for p in wip_packages %} {% for p in wip_packages %}
<a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action"> <a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action">
<span class="float-end" title="Created {{ p.created_at | datetime }}"> <span class="float-end" title="Created {{ p.created_at | full_datetime }}">
<small> <small>
{{ p.created_at | timedelta }} ago {{ p.created_at | timedelta }} ago
</small> </small>

@ -118,7 +118,7 @@
{% for ver in user.email_verifications %} {% for ver in user.email_verifications %}
{% if not ver.is_expired %} {% if not ver.is_expired %}
<li> <li>
{{ ver.email }}, {{ ver.created_at | datetime }}: {{ ver.email }}, {{ ver.created_at | full_datetime }}:
<a href="{{ url_for('users.verify_email', token=ver.token) }}">verify</a> <a href="{{ url_for('users.verify_email', token=ver.token) }}">verify</a>
</li> </li>
{% endif %} {% endif %}