mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-02 02:41:34 +00:00
Add updater page, disabled by default
This commit is contained in:
parent
aac358cd65
commit
d6ee6c0411
4 changed files with 123 additions and 1 deletions
32
src/site/pug/admin_update.pug
Normal file
32
src/site/pug/admin_update.pug
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
//- Needs {error} or {formattedLog, numberOfCommits, requiresDeps, requiresRestart}
|
||||
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title Updater | Bibliogram
|
||||
include includes/head
|
||||
body.updater-page
|
||||
if error
|
||||
h1 Aw man.
|
||||
div= error
|
||||
else
|
||||
h1 Bibliogram updater
|
||||
if numberOfCommits > 0
|
||||
div You are #{numberOfCommits} commits behind (most recent first):
|
||||
div.commits
|
||||
each line in formattedLog
|
||||
div.commit
|
||||
code.hash= line.hash
|
||||
span.message= line.message
|
||||
div
|
||||
if requiresDeps
|
||||
span.attention You must run #[code npm install] after pulling.
|
||||
else
|
||||
span No changes to dependencies.
|
||||
div
|
||||
if requiresRestart
|
||||
span.attention You must restart Bibliogram after pulling.
|
||||
else
|
||||
span You do not need to restart Bibliogram after pulling.
|
||||
else
|
||||
div You are running the latest version. Hurrah!
|
||||
Loading…
Add table
Add a link
Reference in a new issue