gabriel / musehub public
intel_entangle_symbol.html html
93 lines 3.3 KB
Raw
sha256:3c58668648c7323bb9f5c6881cfe6a3f14fc93fcb73b537d253732952a5bf8bf chore: bump version to 0.2.0rc12 Sonnet 4.6 patch 83 days ago
1 {% extends "musehub/base.html" %}
2
3 {% block title %}
4 {% if focus %}{{ focus.name }} · Entangle{% else %}Entangle Symbol{% endif %} · {{ owner }}/{{ repo_slug }}
5 {% endblock %}
6 {% block breadcrumb %}
7 <a href="/{{ owner }}">{{ owner }}</a> /
8 <a href="{{ base_url }}">{{ repo_slug }}</a> /
9 <a href="{{ base_url }}/intel">intel</a> /
10 <a href="{{ base_url }}/intel/entangle">entangle</a> /
11 {% if focus %}{{ focus.name }}{% else %}symbol{% endif %}
12 {% endblock %}
13 {% block repo_nav %}{% include "musehub/partials/repo_nav.html" %}{% endblock %}
14
15 {% block content %}
16 <div class="et-wrap intel-wrap">
17
18 <div class="intel-subhd">
19 <a href="{{ base_url }}/intel/entangle" class="intel-back">← Entangle</a>
20 <div class="intel-subhd-title">
21 {{ icon("zap", 16) }}
22 {% if focus %}{{ focus.name }}{% else %}Symbol Focus{% endif %}
23 </div>
24 {% if focus %}
25 <div class="intel-subhd-desc font-mono">{{ focus.address }}</div>
26 {% endif %}
27 </div>
28
29 {% if focus %}
30
31 {# ── Focus header ──────────────────────────────────────────────────────── #}
32 <div class="et-focus-hd">
33 <div class="et-focus-count-wrap">
34 <span class="et-focus-count">{{ pair_count | fmtnum }}</span>
35 <span class="et-focus-count-label">entangled pair{{ "s" if pair_count != 1 }}</span>
36 </div>
37 <div class="et-focus-addr font-mono">{{ focus.address }}</div>
38 </div>
39
40 {# ── Pair list ─────────────────────────────────────────────────────────── #}
41 {% if pairs %}
42 <div class="et-list">
43 {% for p in pairs %}
44 <div class="et-pair-row">
45
46 <div class="et-symbols">
47 <a href="{{ base_url }}/intel/entangle/symbol?address={{ p.symbol_b.address | urlencode }}"
48 class="et-sym" title="{{ p.symbol_b.address }}">
49 <span class="et-file">{{ p.symbol_b.file }}</span>
50 <span class="et-sep">::</span>
51 <span class="et-name">{{ p.symbol_b.name }}</span>
52 {% if p.b_in_test or p.structurally_linked %}
53 <span class="et-sym-badges">
54 {% if p.b_in_test %}<span class="et-badge et-badge--test">test</span>{% endif %}
55 {% if p.structurally_linked %}<span class="et-badge et-badge--linked">linked</span>{% endif %}
56 </span>
57 {% endif %}
58 </a>
59 </div>
60
61 <div class="et-stats">
62 <span class="et-rate-val">{{ p.rate_pct }}%</span>
63 <span class="et-co-val">{{ p.co_changes | fmtnum }} / {{ p.commits_both_active | fmtnum }}</span>
64 </div>
65
66 <div class="et-bar-wrap">
67 <div class="et-bar-track">
68 <div class="et-bar-fill{% if p.rate_modifier %} et-bar-fill--{{ p.rate_modifier }}{% endif %}"
69 style="width:{{ p.rate_bar_pct }}%"></div>
70 </div>
71 </div>
72
73 </div>
74 {% endfor %}
75 </div>
76 {% else %}
77 <div class="et-empty-state">
78 {{ icon("zap", 32) }}
79 <div>No entangled pairs for this symbol.</div>
80 </div>
81 {% endif %}
82
83 {% else %}
84
85 <div class="intel-empty-state">
86 {{ icon("zap", 32) }}
87 <div>No symbol specified. <a href="{{ base_url }}/intel/entangle" class="intel-back">← Back to entangle</a></div>
88 </div>
89
90 {% endif %}
91
92 </div>
93 {% endblock %}
File History 1 commit
sha256:35d76015db2541686c33edd44343ea2d9f751325b4a5556cc9c4c9c0f84edbbe chore: bump version to 0.2.0rc12 Sonnet 4.6 patch 81 days ago