diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.rs | 4 | ||||
-rw-r--r-- | src/static/help_shares.txt.html (renamed from src/help/shares.txt.html) | 0 | ||||
-rw-r--r-- | src/static/help_users.toml.html (renamed from src/help/users.toml.html) | 0 | ||||
-rwxr-xr-x | src/static/update_hashes.sh | 2 |
4 files changed, 3 insertions, 3 deletions
diff --git a/src/controller.rs b/src/controller.rs index 168bc76..3e9fb29 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -452,10 +452,10 @@ impl Controller for MultiUserController { fn edit_hint_html(&self, ctx: &Context) -> Option<String> { match (ctx.branch.0.as_str(), ctx.path.to_str().unwrap()) { (_, ".shares.txt") => { - return Some(include_str!("help/shares.txt.html").into()); + return Some(include_str!("static/help_shares.txt.html").into()); } ("gitpad", "users.toml") => { - return Some(include_str!("help/users.toml.html").into()); + return Some(include_str!("static/help_users.toml.html").into()); } _ => {} } diff --git a/src/help/shares.txt.html b/src/static/help_shares.txt.html index be5f4c5..be5f4c5 100644 --- a/src/help/shares.txt.html +++ b/src/static/help_shares.txt.html diff --git a/src/help/users.toml.html b/src/static/help_users.toml.html index fe195e2..fe195e2 100644 --- a/src/help/users.toml.html +++ b/src/static/help_users.toml.html diff --git a/src/static/update_hashes.sh b/src/static/update_hashes.sh index ac6c6a1..3bcdb78 100755 --- a/src/static/update_hashes.sh +++ b/src/static/update_hashes.sh @@ -1,5 +1,5 @@ #/bin/sh cd "$(dirname "$0")" -for script in *.css *.js; do +for script in style.css edit_script.js; do printf "'sha256-%s'" $(shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0) > $script.sha done |