Skip to content

Commit

Permalink
Switch to tooltips, because title doesn't work for symbols (#122)
Browse files Browse the repository at this point in the history
* Switch to tooltips, because title doesn't work for auto symbols

* Forgot about html-tooltip in future core

Weird that l:icon support tooltip but not html-tooltip, looks like
an oversight

Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
  • Loading branch information
daniel-beck and daniel-beck authored Jul 2, 2022
1 parent a75be29 commit 6cc99ce
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,24 +92,24 @@ THE SOFTWARE.
</j:forEach>
<local:isEditable sid="${attrs.sid}" type="${attrs.type}">
<td class="stop" style="text-align:left;">
<a href="#" class="selectall">
<img alt="${%Select all}" title="${%selectall(attrs.sid)}" src="${rootURL}/plugin/matrix-auth/images/select-all.svg" style='margin-right:0.2em' height="16" width="16"/>
<a href="#" class="selectall" tooltip="${%selectall(h.escape(attrs.sid))}" html-tooltip="${%selectall(h.escape(attrs.sid))}">
<img alt="${%Select all}" src="${rootURL}/plugin/matrix-auth/images/select-all.svg" style='margin-right:0.2em' height="16" width="16"/>
</a>
<a href="#" class="unselectall">
<img alt="${%Unselect all}" title="${%unselectall(attrs.sid)}" src="${rootURL}/plugin/matrix-auth/images/unselect-all.svg" height="16" width="16"/>
<a href="#" class="unselectall" tooltip="${%unselectall(h.escape(attrs.sid))}" html-tooltip="${%unselectall(h.escape(attrs.sid))}">
<img alt="${%Unselect all}" src="${rootURL}/plugin/matrix-auth/images/unselect-all.svg" height="16" width="16"/>
</a>
<j:if test="${(attrs.sid != 'authenticated' or attrs.type != 'GROUP') and (attrs.sid != 'anonymous' or attrs.type != 'USER')}">
<a href="#" class="remove">
<l:icon alt="${%Remove user/group}" title="${%remove(attrs.sid)}" class="icon-stop icon-sm" />
<a href="#" class="remove" tooltip="${%remove(h.escape(attrs.sid))}" html-tooltip="${%remove(h.escape(attrs.sid))}">
<l:icon alt="${%Remove user/group}" class="icon-stop icon-sm" />
</a>
</j:if>
<j:if test="${attrs.type == 'EITHER'}">
<!-- migration options -->
<a href="#" class="migrate migrate_user">
<l:icon alt="${%Migrate entry to user}" title="${%migrate_user(attrs.sid)}" class="icon-person icon-sm" />
<a href="#" class="migrate migrate_user" tooltip="${%migrate_user(h.escape(attrs.sid))}" html-tooltip="${%migrate_user(h.escape(attrs.sid))}">
<l:icon alt="${%Migrate entry to user}" class="icon-person icon-sm" />
</a>
<a href="#" class="migrate migrate_group">
<l:icon alt="${%Migrate entry to group}" title="${%migrate_group(attrs.sid)}" class="icon-user icon-sm" />
<a href="#" class="migrate migrate_group" tooltip="${%migrate_group(h.escape(attrs.sid))}" html-tooltip="${%migrate_group(h.escape(attrs.sid))}">
<l:icon alt="${%Migrate entry to group}" class="icon-user icon-sm" />
</a>
</j:if>
</td>
Expand Down

0 comments on commit 6cc99ce

Please sign in to comment.