fix home.tmpl changes to forgjeo
This commit is contained in:
parent
99cdbdd49c
commit
f0a7c9a2ca
2 changed files with 21 additions and 24 deletions
|
@ -57,13 +57,13 @@ in
|
|||
HTTP_PORT = 3000;
|
||||
SSH_PORT = 62;
|
||||
|
||||
# STATIC_ROOT_PATH = pkgs.runCommand "patch-templates" { } ''
|
||||
# mkdir -p $out
|
||||
# ${pkgs.lib.getExe' pkgs.coreutils "cp"} -r ${pkgs.forgejo.data}/* $out
|
||||
# chmod u+w $out/templates/home.tmpl
|
||||
# ${pkgs.lib.getExe' pkgs.coreutils "cp"} -f ${./home.tmpl} $out/templates/home.tmpl
|
||||
# chmod u-w $out/templates/home.tmpl
|
||||
# '';
|
||||
STATIC_ROOT_PATH = pkgs.runCommand "patch-templates" { } ''
|
||||
mkdir -p $out
|
||||
${pkgs.lib.getExe' pkgs.coreutils "cp"} -r ${config.services.forgejo.package.data}/* $out
|
||||
chmod u+w $out/templates/home.tmpl
|
||||
${pkgs.lib.getExe' pkgs.coreutils "cp"} -f ${./home.tmpl} $out/templates/home.tmpl
|
||||
chmod u-w $out/templates/home.tmpl
|
||||
'';
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
actions = {
|
||||
|
@ -88,8 +88,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
openssh = {
|
||||
ports = [ 62 ];
|
||||
settings = {
|
||||
|
|
29
home.tmpl
29
home.tmpl
|
@ -1,19 +1,18 @@
|
|||
{{template "base/head" .}}
|
||||
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
|
||||
<div class="tw-mb-8 tw-px-8">
|
||||
<div class="center">
|
||||
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||
<div class="hero">
|
||||
<h1 class="ui icon header title">
|
||||
{{AppDisplayName}}
|
||||
</h1>
|
||||
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
|
||||
<!-- <h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
|
||||
<h2>Das ist der Entwicklungsserver der PTS.</h2>
|
||||
<h2>Zur PTS-Website geht es <a href="https://www.ptspaper.de/de/">hier</a></h2> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "home_forgejo" .}}
|
||||
<div class="tw-mb-8 tw-px-8">
|
||||
<div class="center">
|
||||
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||
<div class="hero">
|
||||
<h1 class="ui icon header title">
|
||||
{{AppDisplayName}}
|
||||
</h1>
|
||||
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
|
||||
<h2>Das ist der Entwicklungsserver der PTS.</h2>
|
||||
<h2>Zur PTS-Website geht es <a href="https://www.ptspaper.de/de/">hier</a></h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "home_forgejo" .}}
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
||||
|
|
Loading…
Reference in a new issue