Skip to content

Commit

Permalink
Add full datetime as tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jul 5, 2024
1 parent 576d9dd commit 9bf91f1
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/templates/macros/audit_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{% 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 }}
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion app/templates/macros/reviews.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
</a>

<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 }}
</a>
</div>
Expand Down
8 changes: 4 additions & 4 deletions app/templates/macros/threads.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{% endif %}

<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 }}
</a>
</div>
Expand Down Expand Up @@ -97,7 +97,7 @@
</div>
<div class="col-auto">
<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 }}
</a>
</div>
Expand Down Expand Up @@ -239,7 +239,7 @@
<span>
{{ t.author.display_name }}
</span>
<span class="text-muted ms-3">
<span class="text-muted ms-3" title="{{ r.created_at | full_datetime }}">
{{ t.created_at | datetime }}
</span>
</div>
Expand All @@ -257,7 +257,7 @@
<span>
{{ latest.author.display_name }}
</span><br />
<span class="text-muted">
<span class="text-muted" title="{{ latest.created_at | full_datetime }}">
{{ latest.created_at | datetime }}
</span>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/macros/todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{ _("On %(trigger)s, do %(action)s", trigger=config.trigger.value, action=action) }}
{% else %}
{{ config.get_message() }}<br />
<span class="text-muted">
<span class="text-muted" title="{{ config.outdated_at | full_datetime }}">
{{ config.outdated_at | datetime }}
</span>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/packages/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ <h3>
<dd><i>{{ _("Unknown") }}</i></dd>
{% endif %}
<dt>{{ _("Added") }}</dt>
<dd>{{ package.created_at | datetime }}</dd>
<dd title="{{ package.created_at | full_datetime }}">{{ package.created_at | datetime }}</dd>
<dt>{{ _("Maintainers") }}</dt>
<dd>
{% for user in package.maintainers %}
Expand Down
3 changes: 2 additions & 1 deletion app/templates/threads/user_comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ <h1>{{ _("Comments by %(user)s", user=self.link()) }}</h1>
{% endif %}

<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 }}
</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/templates/todo/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h3 class="card-header">{{ _("Packages") }}</h3>
<div class="list-group list-group-flush">
{% for p in packages %}
<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>
{{ p.created_at | timedelta }} ago
</small>
Expand Down Expand Up @@ -108,7 +108,7 @@ <h3 class="card-header">{{ _("License Needed") }}</h3>
<div class="list-group list-group-flush">
{% for p in license_needed %}
<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>
{{ p.created_at | timedelta }} ago
</small>
Expand Down Expand Up @@ -165,7 +165,7 @@ <h3 class="card-header">WIP Packages</h3>
<div class="list-group list-group-flush" style="max-height: 300px; overflow: hidden auto;">
{% for p in wip_packages %}
<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>
{{ p.created_at | timedelta }} ago
</small>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/users/modtools.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h3>{{ _("Pending email verifications") }}</h3>
{% for ver in user.email_verifications %}
{% if not ver.is_expired %}
<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>
</li>
{% endif %}
Expand Down

0 comments on commit 9bf91f1

Please sign in to comment.