Upload templates/history.html with huggingface_hub
Browse files- templates/history.html +4 -4
templates/history.html
CHANGED
|
@@ -78,7 +78,7 @@
|
|
| 78 |
</td>
|
| 79 |
<td class="small spec-cell" style="max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;"
|
| 80 |
title="{{ r.specificity or '' }}">
|
| 81 |
-
{{ r.specificity
|
| 82 |
</td>
|
| 83 |
<td class="small">{{ r.submitted_by or '' }}</td>
|
| 84 |
<td class="text-nowrap">
|
|
@@ -102,8 +102,8 @@ window.addEventListener('DOMContentLoaded', function() {
|
|
| 102 |
document.querySelectorAll('.spec-cell').forEach(td => {
|
| 103 |
const orig = td.textContent.trim();
|
| 104 |
if (!orig || orig === '(-)') return;
|
| 105 |
-
|
| 106 |
-
|
| 107 |
const m = seg.match(/^([^(]+)(\([^)]*\))?$/);
|
| 108 |
if (!m) return seg;
|
| 109 |
const sero = m[1];
|
|
@@ -115,7 +115,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
|
| 115 |
a ? '<span style="color:#374151;">' + a + '</span>' : a
|
| 116 |
).join(' ');
|
| 117 |
return seroHtml + '(' + alleleHtml + ')';
|
| 118 |
-
}).join('');
|
| 119 |
});
|
| 120 |
});
|
| 121 |
|
|
|
|
| 78 |
</td>
|
| 79 |
<td class="small spec-cell" style="max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;"
|
| 80 |
title="{{ r.specificity or '' }}">
|
| 81 |
+
{{ r.specificity if r.specificity and r.specificity != '(-)' else '(-)' }}
|
| 82 |
</td>
|
| 83 |
<td class="small">{{ r.submitted_by or '' }}</td>
|
| 84 |
<td class="text-nowrap">
|
|
|
|
| 102 |
document.querySelectorAll('.spec-cell').forEach(td => {
|
| 103 |
const orig = td.textContent.trim();
|
| 104 |
if (!orig || orig === '(-)') return;
|
| 105 |
+
const tokens = orig.match(/\S+?\([^)]*\)|\S+/g) || [];
|
| 106 |
+
td.innerHTML = tokens.map(seg => {
|
| 107 |
const m = seg.match(/^([^(]+)(\([^)]*\))?$/);
|
| 108 |
if (!m) return seg;
|
| 109 |
const sero = m[1];
|
|
|
|
| 115 |
a ? '<span style="color:#374151;">' + a + '</span>' : a
|
| 116 |
).join(' ');
|
| 117 |
return seroHtml + '(' + alleleHtml + ')';
|
| 118 |
+
}).join(' ');
|
| 119 |
});
|
| 120 |
});
|
| 121 |
|