diff mbox series

[wotmate] Make the nodes representing a key a link to their respective graph

Message ID 20250305232923.2902664-2-u.kleine-koenig@baylibre.com (mailing list archive)
State New
Headers show
Series [wotmate] Make the nodes representing a key a link to their respective graph | expand

Commit Message

Uwe Kleine-König March 5, 2025, 11:29 p.m. UTC
With the URL property set, the nodes (in some renderers) become links to
the graphs of the key represented by the node.

---
 wotmate/__init__.py | 1 +
 1 file changed, 1 insertion(+)


base-commit: 93e1fbb1bab72162c75ba3311513daa6f8abd231

Comments

Konstantin Ryabitsev March 7, 2025, 10:03 p.m. UTC | #1
On Thu, 06 Mar 2025 00:29:24 +0100, Uwe Kleine-König wrote:
> With the URL property set, the nodes (in some renderers) become links to
> the graphs of the key represented by the node.
> 
> 

Applied, thanks!

[1/1] Make the nodes representing a key a link to their respective graph
      commit: f4624640df1c3113e7122f8f160b7a86cbba80b9

Best regards,
diff mbox series

Patch

diff --git a/wotmate/__init__.py b/wotmate/__init__.py
index 128a183f2c9a..32f91cf2a75b 100644
--- a/wotmate/__init__.py
+++ b/wotmate/__init__.py
@@ -224,6 +224,7 @@  def make_graph_node(c, p_rowid, show_trust=False):
         anode.set('label', '{{%s\n%s|{val: %s|tru: %s}}|%s}' % (name, show, val, trust, keyline))
     else:
         anode.set('label', '{%s\n%s|%s}' % (name, show, keyline))
+    anode.set('URL', '%s.svg' % kid)
     return anode