mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 21:16:52 +00:00
Hyperlink emails onto names in commit details
Instead of separating email addresses from author / commiter names, turn them into hyperlinks, reveal the addresses on hover with a tooltip. This allows for a much more compact and aesthetically-pleasing UI. Related: https://gitlab.gnome.org/GNOME/gitg/-/issues/440
This commit is contained in:
parent
e519c95382
commit
fe1e97719e
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ class Gitg.DiffViewCommitDetails : Gtk.Grid
|
|||
var name = Markup.escape_text(author.get_name());
|
||||
var email = Markup.escape_text(author.get_email());
|
||||
|
||||
return "%s <<a href=\"mailto:%s\">%s</a>>".printf(name, email, email);
|
||||
return "<a href=\"mailto:%s\" title=\"%s\">%s</a>".printf(email, email, name);
|
||||
}
|
||||
|
||||
private void update()
|
||||
|
|
Loading…
Reference in a new issue