mirror of
https://github.com/puppetlabs/infinitory.git
synced 2026-01-26 02:08:41 -05:00
Import SRE inventory code
This commit is contained in:
commit
7364ccbff8
18 changed files with 5348 additions and 0 deletions
16
static/general.js
Normal file
16
static/general.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Update generated at time at bottom of pages
|
||||
(function(){
|
||||
try {
|
||||
var generated_at = document.getElementById("generated-at");
|
||||
var m = moment(generated_at.innerText);
|
||||
var update_generated_at = function () {
|
||||
generated_at.innerText = "Generated on " + m.format("MMMM Do, YYYY")
|
||||
+ " at " + m.format("h:mm a") + " (" + m.fromNow() + ")";
|
||||
}
|
||||
|
||||
update_generated_at()
|
||||
setInterval(update_generated_at, 60*1000);
|
||||
} catch ( e ) {
|
||||
console.error(e);
|
||||
}
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue