Skip to content

Commit 86f9ac8

Browse files
committed
rename CI job to github-pages-app-dev for ui; add lastmodified to footer and styles.
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
1 parent 1ec6704 commit 86f9ac8

4 files changed

Lines changed: 28 additions & 8 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
name: github-pages
1+
name: github-pages-app-dev
22

33
on:
4-
schedule:
5-
- cron: '0 7 * * *'
6-
# https://cron.help/#0/30_*_*_*_*
7-
84
push:
95
branches:
106
- app/dev

src/docs/_static/script.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function () {
2121
showTotalRecords();
2222
attachSearch();
2323
filterPaginatedData();
24-
24+
lastUpdated()
2525
});
2626

2727
});
@@ -31,6 +31,11 @@ function reloadData() {
3131
document.dispatchEvent(reload)
3232
}
3333

34+
function lastUpdated() {
35+
let updated = document.lastModified;
36+
document.getElementById("lastmodified").innerHTML = updated;
37+
}
38+
3439
function fetchData() {
3540
return fetch('_static/sample_db_prd.json')
3641
.then(res => res.json())

src/docs/_static/styles.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,3 +1109,12 @@ ul.help li {
11091109
background-clip: padding-box;
11101110
}
11111111

1112+
#footer-container{
1113+
text-align: left;
1114+
}
1115+
1116+
#footer-blk-1, #footer-blk-2{
1117+
display: inline;
1118+
padding-left: 5px;
1119+
padding-right: 5px;
1120+
}

src/docs/_templates/base.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,18 @@
6060
</div>
6161
{% block footer %}
6262
<footer>
63-
&copy; Copyright 2023 Intel Corporation.
64-
<a href="https://www.intel.com/content/www/us/en/legal/trademarks.html">*Trademarks</a>
63+
<div id="footer-container">
64+
<div id="footer-blk-1">
65+
&copy; Copyright 2023 Intel Corporation.
66+
<a href="https://www.intel.com/content/www/us/en/legal/trademarks.html">*Trademarks</a>
67+
</div>
68+
69+
<div id="footer-blk-2">
70+
Last updated:
71+
<span id="lastmodified"></span>
72+
(Pacific Time)
73+
</div>
74+
</div>
6575
</footer>
6676
{% endblock %}
6777
{% set script_files = script_files + ["_static/script.js"] %}

0 commit comments

Comments
 (0)