Skip to content

Commit 5873216

Browse files
committed
INTEGRITY: Move html text file to static folder.
1 parent 72c8da7 commit 5873216

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pagination.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def create_page(
136136

137137
# Initial html code including the navbar is stored in a separate html file.
138138
html = ""
139-
with open("templates/pagination/navbar.html", "r") as f:
139+
navbar_path = os.path.join(app.root_path, "static", "navbar.html.txt")
140+
with open(navbar_path, "r") as f:
140141
html = f.read()
141142

142143
# Generate HTML
File renamed without changes.

templates/config.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,14 @@ <h4>Field Widths for Log Dashboard</h4>
204204
document.getElementById('{{ field_name }}').addEventListener('input', function () {
205205
const value = parseInt(this.value);
206206
if (value < 1) this.value = 1;
207-
if (value > 50) this.value = 50;
207+
if (value > 70) this.value = 70;
208208
});
209209
{% endfor %}
210210
{% for field_name, label in log_fields %}
211211
document.getElementById('{{ field_name }}').addEventListener('input', function () {
212212
const value = parseInt(this.value);
213213
if (value < 1) this.value = 1;
214-
if (value > 50) this.value = 50;
214+
if (value > 70) this.value = 70;
215215
});
216216
{% endfor %}
217217

0 commit comments

Comments
 (0)