Browse Source

Add link domain as mouseover to link source

This will allow people to mouseover a site name/icon if they want to
check which domain its from. Mousing over the title and checking the
link in the status bar would generally accomplish the same thing, but I
think this might feel a bit more intuitive.
merge-requests/86/head
Deimos 5 years ago
parent
commit
c1ae7d222c
  1. 4
      tildes/tildes/templates/macros/topics.jinja2

4
tildes/tildes/templates/macros/topics.jinja2

@ -94,7 +94,9 @@
{% if topic.is_user_treated_as_source %}
aria-label="Posted by">{{ link_to_user(topic.user) }}
{% else %}
aria-label="Link source">
aria-label="Link source"
title="{{ topic.link_domain }}"
>
{% if topic.is_link_type %}
<div class="topic-icon topic-icon-{{ topic.link_domain.replace('.', '_') }}"></div>
{% endif %}

Loading…
Cancel
Save