Skip to content

Commit c95c090

Browse files
committed
update back button
1 parent 727bae9 commit c95c090

File tree

7 files changed

+34
-24
lines changed

7 files changed

+34
-24
lines changed

about.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ <h5 class="offcanvas-title" id="offcanvasNavbarLabel">&lt;MANO&gt;</h5>
5757
</nav>
5858

5959
<div class="container mt-4">
60-
<div class="container">
61-
<button onclick="history.back()" class="btn btn-sm btn-outline-secondary">&larr; Back</button>
62-
</div>
63-
<h1 class="page-title">About the &lt;MANO&gt; project
64-
</a></h1>
60+
61+
<button onclick="history.back()" class="btn back-btn btn-sm btn-outline-secondary">Back</button>
62+
63+
<h1 class="page-title">About the &lt;MANO&gt; project</h1>
6564

6665

6766

collection.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ <h5 class="offcanvas-title" id="offcanvasNavbarLabel">&lt;MANO&gt;</h5>
5858

5959

6060
<div class="container mt-4 mb-5">
61-
62-
<div class="container">
63-
<button onclick="history.back()" class="btn btn-sm btn-outline-secondary">&larr; Back</button>
64-
</div>
61+
62+
<button onclick="history.back()" class="btn back-btn btn-sm btn-outline-secondary">Back</button>
63+
6564
<h1 class="page-title">Metadata Collection</h1>
6665

6766
<div class="row my-4 align-items-end">
@@ -249,6 +248,8 @@ <h5 class="modal-title" id="recordModalLabel">Manuscript Record</h5>
249248

250249
function createTableRow(entry) {
251250
const row = document.createElement("tr");
251+
row.id = "ms-" + (entry.idno || entry.msTitle).replace(/\s+/g, "_");
252+
252253

253254
// Always just the value
254255
const repoDisplay = displayField(entry.repository);
@@ -276,7 +277,7 @@ <h5 class="modal-title" id="recordModalLabel">Manuscript Record</h5>
276277
<button class="btn btn-sm btn-secondary" onclick='showFullRecord(${JSON.stringify(entry).replace(/'/g, "&apos;")})'>See complete record</button>
277278
</td>
278279
`;
279-
280+
280281
// Fix dataset values for filtering
281282
row.dataset.country = entry.countryIdent?.value || entry.countryIdent || "";
282283
row.dataset.century = getCentury(entry.dateOrigin) || "";
@@ -948,7 +949,6 @@ <h5 class="border-bottom pb-1">${title}</h5>
948949
renderFilterSidebar();
949950
}
950951

951-
//Replace original loadMetadata() call
952952
loadMetadataWithFilters();
953953

954954

converter.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ <h5 class="offcanvas-title" id="offcanvasNavbarLabel">&lt;MANO&gt;</h5>
8181
</nav>
8282

8383
<div class="container mt-4 mb-3">
84-
<div class="container">
85-
<button onclick="history.back()" class="btn btn-sm btn-outline-secondary">&larr; Back</button>
86-
</div>
84+
<button onclick="history.back()" class="btn back-btn btn-sm btn-outline-secondary">Back</button>
85+
8786

8887
<h1 class="page-title">Convert PAGE-XML into TEI-XML</h1>
8988
<p class="text-center">Upload one or more PAGE-XML files. The converter will merge them into a single TEI file.</p>

css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ section h2 {
165165
.accordion-body h6 {
166166
padding-left:8px;
167167
}
168+
.back-btn{
169+
display: none;
170+
}
168171
}
169172

170173

editor.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ <h5 class="offcanvas-title" id="offcanvasNavbarLabel">&lt;MANO&gt;</h5>
5858
</nav>
5959

6060
<div class="container container-page mt-4 mb-5">
61-
<div class="container">
62-
<button onclick="history.back()" class="btn btn-sm btn-outline-secondary">&larr; Back</button>
63-
</div>
61+
<button onclick="history.back()" class="btn back-btn btn-sm btn-outline-secondary">Back</button>
62+
6463
<h1 class="page-title">Metadata Editor</h1>
6564

6665
<div class="container data-enter">

resources.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,18 @@
1616
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>
1717
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
1818

19-
19+
<style>
20+
body {
21+
display: flex;
22+
flex-direction: column;
23+
}
24+
.container {
25+
flex: 1;
26+
}
27+
footer {
28+
margin-top: auto; /* push footer to the bottom */
29+
}
30+
</style>
2031
</head>
2132
<body>
2233
<nav class="navbar bg-body-tertiary ">
@@ -58,9 +69,9 @@ <h5 class="offcanvas-title" id="offcanvasNavbarLabel">&lt;MANO&gt;</h5>
5869
</nav>
5970

6071
<div class="container mt-4">
61-
<div class="container">
62-
<button onclick="history.back()" class="btn btn-sm btn-outline-secondary">&larr; Back</button>
63-
</div>
72+
73+
<button onclick="history.back()" class="btn back-btn btn-sm btn-outline-secondary">Back</button>
74+
6475
<h1 class="page-title">Resources</h1>
6576

6677

viewer.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ <h5 class="offcanvas-title" id="offcanvasNavbarLabel">&lt;MANO&gt;</h5>
7878
</nav>
7979

8080
<div class="container mt-4 mb-3">
81-
<div class="container">
82-
<button onclick="history.back()" class="btn btn-sm btn-outline-secondary">&larr; Back</button>
83-
</div>
81+
<button onclick="history.back()" class="btn back-btn btn-sm btn-outline-secondary">Back</button>
82+
8483
<h1 class="page-title">Transcription Viewer</h1>
8584

8685
<div class="row align-items-end my-4">

0 commit comments

Comments
 (0)