Skip to content

Commit f8ba85a

Browse files
committed
improve url tooltips
1 parent 41b4786 commit f8ba85a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

afm-list-manager.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,11 @@ def export_to_html(path, table_id="afmlist-table", tr_class="afmlist-header",
231231
icon = '<img src="{}" style="height:1em;">'.format(ip)
232232
else:
233233
icon = value
234-
value = '<a href="{}" title="{} of {}">{}</a>'.format(
235-
value, name, ent["Name"], icon)
234+
if name == "Cite":
235+
title = f'Cite {ent["Name"]}'
236+
else:
237+
title = f'{ent["Name"]} {name}'
238+
value = f'<a href="{value}" title="{title}">{icon}</a>'
236239
lines.append("<td> {} </td>".format(value))
237240
lines.append("</tr>")
238241
lines.append('</table>')

0 commit comments

Comments
 (0)