Skip to content

Commit a6ec6b0

Browse files
authored
CDN header to subpages; tools-barebone v1.3.0 (#16)
* Updated to barebonesV1.3 to allow header, added CDN delivered header on other pages * Updated header to hamburger version * Updated seekpath versioning * Updated header versioning and injected header onto terms and details page. * hyperlinks now point correctly and using main version of mc-header * hyperlinks now point correctly and using main version of mc-header
1 parent 3d5acaa commit a6ec6b0

6 files changed

Lines changed: 33 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM materialscloud/tools-barebone:1.2.0
1+
FROM materialscloud/tools-barebone:1.3.0
22

33
LABEL maintainer="Giovanni Pizzi <giovanni.pizzi@epfl.ch>"
44

barebone-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tools-barebone==1.2.0
1+
tools-barebone==1.3.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
seekpath==2.0.1
1+
seekpath==2.1.0
22
# The following is needed to get the Brillouin zone
33
scipy==1.5.4

user_templates/visualizer_base.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181

8282
</head>
8383
<body onresize='resize_canvases()'>
84-
8584
<div id="above">
8685

8786
<div id="maintitle">
@@ -648,5 +647,13 @@ <h3>Raw data (JSON)</h3>
648647
</div>
649648

650649
<div style ="position: relative" data-iframe-height></div>
650+
<script>
651+
var breadcrumbsPath = [
652+
{ name: "Work", link: "https://www.materialscloud.org/work" },
653+
{ name: "Tools", link: "https://www.materialscloud.org/work/tools"},
654+
{ name: "SeeK-path: the k-path finder and visualizer", link: "https://www.materialscloud.org/work/tools/seekpath" }
655+
];
656+
</script>
657+
<script src="https://cdn.jsdelivr.net/gh/materialscloud-org/mc-header@main/header.js" defer></script>
651658
</body>
652659
</html>

user_views/bravaissymbol_explanation.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,17 @@ <h3>A note on inversion symmetry</h3>
8080

8181
</div>
8282
<div style="position: relative" data-iframe-height></div>
83-
83+
84+
<script>
85+
var breadcrumbsPath = [
86+
{ name: "Work", link: "https://www.materialscloud.org/work" },
87+
{ name: "Tools", link: "https://www.materialscloud.org/work/tools"},
88+
{ name: "SeeK-path: the k-path finder and visualizer", link: "https://www.materialscloud.org/work/tools/seekpath" },
89+
{ name: "Bravais lattice details", link: null }
90+
91+
];
92+
</script>
93+
<script src="https://cdn.jsdelivr.net/gh/materialscloud-org/mc-header@main/header.js" defer></script>
8494
</body>
8595

8696
</html>

user_views/termsofuse.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ <h2>Contact Us</h2>
5353
<p>If you have any questions about these Terms, please contact us. </p>
5454
</div>
5555
<div style="position: relative" data-iframe-height></div>
56+
57+
<script>
58+
var breadcrumbsPath = [
59+
{ name: "Work", link: "https://www.materialscloud.org/work" },
60+
{ name: "Tools", link: "https://www.materialscloud.org/work/tools"},
61+
{ name: "SeeK-path: the k-path finder and visualizer", link: "https://www.materialscloud.org/work/tools/seekpath" },
62+
{ name: "Terms of Use", link: null }
63+
64+
];
65+
</script>
66+
<script src="https://cdn.jsdelivr.net/gh/materialscloud-org/mc-header@main/header.js" defer></script>
5667
</body>
5768

5869
</html>

0 commit comments

Comments
 (0)