mirror of
https://github.com/osnr/TabFS.git
synced 2024-06-15 20:25:18 +02:00
extension: Clean up routes.html formatting a bit.
This commit is contained in:
parent
a6d2df4193
commit
37cdd270bd
|
@ -697,10 +697,13 @@ Routes["/runtime/routes.html"] = makeRouteWithContents(async () => {
|
||||||
</ul>
|
</ul>
|
||||||
</dd>` : '<dd style="background-color: #f99">No usage found!</dd>'}
|
</dd>` : '<dd style="background-color: #f99">No usage found!</dd>'}
|
||||||
${lineRange ?
|
${lineRange ?
|
||||||
`<details>
|
`<dd><details>
|
||||||
<summary>Source code (<a href="https://github.com/osnr/TabFS/blob/master/extension/background.js#L${lineRange[0]}-L${lineRange[1]}">on GitHub</a>)
|
<summary>Source code (<a href="https://github.com/osnr/TabFS/blob/master/extension/background.js#L${lineRange[0]}-L${lineRange[1]}">on GitHub</a>)</summary>
|
||||||
<pre>${jsLines[lineRange[0] - 1]}</pre>
|
<pre><code>${
|
||||||
</details>` : '<dd style="background-color: #f99">No source code found!</dd>'}
|
jsLines[lineRange[0] - 1]
|
||||||
|
// FIXME: get entire range; escape for HTML
|
||||||
|
}</code></pre>
|
||||||
|
</details></dd>` : '<dd style="background-color: #f99">No source code found!</dd>'}
|
||||||
`;
|
`;
|
||||||
}).join('\n') + `
|
}).join('\n') + `
|
||||||
</dl>
|
</dl>
|
||||||
|
|
Loading…
Reference in a new issue