elixir/templates
Théo Lebrun 0b65c2c459 web: refactor showSidebar computation
The local storage API returns strings and has no way to set a default
value in case no value exists. We must therefore check for the "true"
string or the null value.

Let's extract it from the if boolean expression. We go from:

    if (isWidescreen && (showSidebar === "true" || showSidebar === null))

To:

    if (isWidescreen && showSidebar)

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
2024-09-11 11:20:17 +02:00
..
error.html Generate pretty HTML for more errors 2024-07-31 11:33:53 +02:00
header.html templates: Remove png version of logo 2024-09-09 16:33:12 +02:00
ident.html Generate different meta tag descriptions for different views 2024-08-20 10:35:17 +02:00
layout.html web: refactor showSidebar computation 2024-09-11 11:20:17 +02:00
sidebar.html web: Add ability to hide sidebar on desktop layout 2024-09-11 11:13:13 +02:00
source.html Add support for 'raw' parameter for source files 2024-09-05 14:12:53 +02:00
topbar.html Quick fix for searching identifiers with commas 2024-08-02 13:43:14 +02:00
tree.html Generate different meta tag descriptions for different views 2024-08-20 10:35:17 +02:00