Skip to content

Commit

Permalink
Remove some bad titles, use tooltips more.
Browse files Browse the repository at this point in the history
  • Loading branch information
Syfaro committed Feb 7, 2024
1 parent a2f61a2 commit f5cec77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
8 changes: 4 additions & 4 deletions templates/_pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% when Some with (previous_page) %}
<a class="pagination-previous" href="{{ data.url(previous_page) }}">Previous</a>
{% else %}
<a class="pagination-previous is-disabled" href="{{ data.url(0) }}" title="This is the first page" disabled>
<a class="pagination-previous is-disabled" href="{{ data.url(0) }}" data-tooltip="This is the first page" disabled>
Previous
</a>
{% endmatch %}
Expand All @@ -15,7 +15,7 @@
{% when Some with (next_page) %}
<a class="pagination-next" href="{{ data.url(next_page) }}">Next page</a>
{% else %}
<a class="pagination-next is-disabled" href="{{ data.url(last_page) }}" title="This is the last page" disabled>
<a class="pagination-next is-disabled" href="{{ data.url(last_page) }}" data-tooltip="This is the last page" disabled>
Next page
</a>
{% endmatch %}
Expand All @@ -30,7 +30,7 @@
{% when Some with (previous_page) %}
<a class="pagination-previous" href="{{ data.url(previous_page) }}">Previous</a>
{% else %}
<a class="pagination-previous is-disabled" href="{{ data.url(0) }}" title="This is the first page" disabled>
<a class="pagination-previous is-disabled" href="{{ data.url(0) }}" data-tooltip="This is the first page" disabled>
Previous
</a>
{% endmatch %}
Expand All @@ -39,7 +39,7 @@
{% when Some with (next_page) %}
<a class="pagination-next" href="{{ data.url(next_page) }}">Next page</a>
{% else %}
<a class="pagination-next is-disabled" href="{{ data.url(last_page) }}" title="This is the last page" disabled>
<a class="pagination-next is-disabled" href="{{ data.url(last_page) }}" data-tooltip="This is the last page" disabled>
Next page
</a>
{% endmatch %}
Expand Down
4 changes: 1 addition & 3 deletions templates/user/check_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ <h1 class="title has-text-centered">Check Results</h1>
<a href="{{ link.url }}">{{ link.site }} &mdash; {{ link.username }}</a>
{% match link.posted_at %}
{% when Some(posted_at) %}
<span class="ml-2 relative-time"
data-timestamp="{{ posted_at.timestamp() }}"
title="{{ posted_at.to_rfc2822() }}">
<span class="ml-2 relative-time" data-timestamp="{{ posted_at.timestamp() }}">
{{ posted_at }}
</span>
{% else %}
Expand Down
12 changes: 3 additions & 9 deletions templates/user/media/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ <h2 class="subtitle has-text-centered">Matched Images</h2>
{% endmatch %}
</td>
<td>
<span class="relative-time"
data-timestamp="{{ created_at.timestamp() }}"
title="{{ created_at.to_rfc2822() }}">
<span class="relative-time" data-timestamp="{{ created_at.timestamp() }}">
{{ created_at }}
</span>
</td>
Expand Down Expand Up @@ -171,9 +169,7 @@ <h2 class="subtitle has-text-centered">Other Events</h2>
<ul>
{% for event in other_events %}
<li>{{ event.display() }}
<span class="pl-3 has-text-weight-light has-text-grey relative-time"
data-timestamp="{{ event.created_at.timestamp() }}"
title="{{ event.created_at.to_rfc2822() }}">
<span class="pl-3 has-text-weight-light has-text-grey relative-time" data-timestamp="{{ event.created_at.timestamp() }}">
{{ event.created_at }}
</span>
</li>
Expand Down Expand Up @@ -212,9 +208,7 @@ <h2 class="subtitle has-text-centered">My Uploads</h2>
<td>
{% match account.posted_at %}
{% when Some with (posted_at) %}
<span class="relative-time"
data-timestamp="{{ posted_at.timestamp() }}"
title="{{ posted_at.to_rfc2822() }}">
<span class="relative-time" data-timestamp="{{ posted_at.timestamp() }}">
{{ posted_at }}
</span>
{% else %}
Expand Down

0 comments on commit f5cec77

Please sign in to comment.