Skip to content

Commit df41d7a

Browse files
committed
INTEGRITY: Fix the navbar on top.
1 parent 8575f8e commit df41d7a

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

fileset.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ def index():
4242
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
4343
</head>
4444
<body>
45-
<nav style="padding: 3px; border-bottom: 1px solid #ccc;">
45+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
4646
<a href="{{ url_for('index') }}">
4747
<img src="{{ url_for('static', filename='integrity_service_logo_256.png') }}" alt="Logo" style="height:60px; vertical-align:middle;">
4848
</a>
4949
</nav>
50-
<h1>Fileset Database</h1>
50+
<h1 style="margin-top: 80px;">Fileset Database</h1>
5151
<h2>Fileset Actions</h2>
5252
<ul>
5353
<li><a href="{{ url_for('fileset') }}">Fileset</a></li>
@@ -143,12 +143,12 @@ def fileset():
143143
<link rel="stylesheet" type="text/css" href="{{{{ url_for('static', filename='style.css') }}}}">
144144
</head>
145145
<body>
146-
<nav style="padding: 3px; border-bottom: 1px solid #ccc;">
146+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
147147
<a href="{{{{ url_for('index') }}}}">
148148
<img src="{{{{ url_for('static', filename='integrity_service_logo_256.png') }}}}" alt="Logo" style="height:60px; vertical-align:middle;">
149149
</a>
150150
</nav>
151-
<h2><u>Fileset: {id}</u></h2>
151+
<h2 style="margin-top: 80px;"><u>Fileset: {id}</u></h2>
152152
<table>
153153
"""
154154
html += f"<button type='button' onclick=\"location.href='/fileset/{id}/merge'\">Manual Merge</button>"
@@ -476,12 +476,12 @@ def match_fileset_route(id):
476476
<link rel="stylesheet" type="text/css" href="{{{{ url_for('static', filename='style.css') }}}}">
477477
</head>
478478
<body>
479-
<nav style="padding: 3px; border-bottom: 1px solid #ccc;">
479+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
480480
<a href="{{{{ url_for('index') }}}}">
481481
<img src="{{{{ url_for('static', filename='integrity_service_logo_256.png') }}}}" alt="Logo" style="height:60px; vertical-align:middle;">
482482
</a>
483483
</nav>
484-
<h2>Matched Filesets for Fileset: {id}</h2>
484+
<h2 style="margin-top: 80px;">Matched Filesets for Fileset: {id}</h2>
485485
<table>
486486
<tr>
487487
<th>Fileset ID</th>
@@ -568,12 +568,12 @@ def merge_fileset(id):
568568
<link rel="stylesheet" type="text/css" href="{{{{ url_for('static', filename='style.css') }}}}">
569569
</head>
570570
<body>
571-
<nav style="padding: 3px; border-bottom: 1px solid #ccc;">
571+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
572572
<a href="{{{{ url_for('index') }}}}">
573573
<img src="{{{{ url_for('static', filename='integrity_service_logo_256.png') }}}}" alt="Logo" style="height:60px; vertical-align:middle;">
574574
</a>
575575
</nav>
576-
<h2>Search Results for '{search_query}'</h2>
576+
<h2 style="margin-top: 80px;">Search Results for '{search_query}'</h2>
577577
<form method="POST">
578578
<input type="text" name="search" placeholder="Search fileset">
579579
<input type="submit" value="Search">
@@ -607,12 +607,12 @@ def merge_fileset(id):
607607
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
608608
</head>
609609
<body>
610-
<nav style="padding: 3px; border-bottom: 1px solid #ccc;">
610+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
611611
<a href="{{ url_for('index') }}">
612612
<img src="{{ url_for('static', filename='integrity_service_logo_256.png') }}" alt="Logo" style="height:60px; vertical-align:middle;">
613613
</a>
614614
</nav>
615-
<h2>Search Fileset to Merge</h2>
615+
<h2 style="margin-top: 80px;">Search Fileset to Merge</h2>
616616
<form method="POST">
617617
<input type="text" name="search" placeholder="Search fileset">
618618
<input type="submit" value="Search">
@@ -666,12 +666,12 @@ def possible_merge_filesets(id):
666666
<link rel="stylesheet" type="text/css" href="{{{{ url_for('static', filename='style.css') }}}}">
667667
</head>
668668
<body>
669-
<nav style="padding: 3px; border-bottom: 1px solid #ccc;">
669+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
670670
<a href="{{{{ url_for('index') }}}}">
671671
<img src="{{{{ url_for('static', filename='integrity_service_logo_256.png') }}}}" alt="Logo" style="height:60px; vertical-align:middle;">
672672
</a>
673673
</nav>
674-
<h2>Possible Merges for fileset-'{id}'</h2>
674+
<h2 style="margin-top: 80px;">Possible Merges for fileset-'{id}'</h2>
675675
<table>
676676
<tr><th>ID</th><th>Game Name</th><th>Platform</th><th>Language</th><th>Extra</th><th>Details</th><th>Action</th></tr>
677677
"""
@@ -778,12 +778,12 @@ def highlight_differences(source, target):
778778
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
779779
</head>
780780
<body>
781-
<nav style="padding: 3px; border-bottom: 1px solid #ccc;">
781+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
782782
<a href="{{ url_for('index') }}">
783783
<img src="{{ url_for('static', filename='integrity_service_logo_256.png') }}" alt="Logo" style="height:60px; vertical-align:middle;">
784784
</a>
785785
</nav>
786-
<h2>Confirm Merge</h2>
786+
<h2 style="margin-top: 80px;">Confirm Merge</h2>
787787
<table border="1">
788788
<tr><th>Field</th><th>Source Fileset</th><th>Target Fileset</th></tr>
789789
"""

pagination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ def create_page(
141141
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
142142
</head>
143143
<body>
144-
<nav style="padding: 3px; margin-bottom: 20px; border-bottom: 1px solid #ccc;">
144+
<nav style="position: fixed; top: 0; left: 0; right: 0; background: white; padding: 3px; border-bottom: 1px solid #ccc;">
145145
<a href="{{ url_for('index') }}">
146146
<img src="{{ url_for('static', filename='integrity_service_logo_256.png') }}" alt="Logo" style="height:60px; vertical-align:middle;">
147147
</a>
148148
</nav>
149149
<form id='filters-form' method='GET' onsubmit='remove_empty_inputs()'>
150-
<table>
150+
<table style="margin-top: 80px;">
151151
"""
152152
if not results:
153153
return "No results for given filters"

0 commit comments

Comments
 (0)