From 923d33222cfab259586d9fa11bd2cbc1dad4002c Mon Sep 17 00:00:00 2001 From: Nemo <me@captnemo.in> Date: Fri, 26 Jan 2018 03:14:16 +0530 Subject: [PATCH] Adds home page changes to gitea --- docker/gitea.tf | 13 +++++++++++++ docker/conf/gitea/extra_links.tmpl | 7 +++++++ docker/conf/gitea/home.tmpl | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) diff --git a/docker/gitea.tf b/docker/gitea.tf index 737d752..5eacf57 100644 --- a/docker/gitea.tf +++ a/docker/gitea.tf @@ -33,6 +33,9 @@ host_path = "${docker_volume.gitea_volume.mountpoint}" } + # Logos + # TODO: Add svg + upload { content = "${file("${path.module}/conf/gitea/public/img/gitea-lg.png")}" file = "/data/gitea/public/img/gitea-lg.png" @@ -51,14 +54,20 @@ upload { content = "${file("${path.module}/conf/humans.txt")}" file = "/data/gitea/public/humans.txt" + } + + # Extra Links in header + # TODO: Doesn't work + upload { + content = "${file("${path.module}/conf/gitea/extra_links.tmpl")}" + file = "/data/gitea/templates/custom/extra_links.tmpl" } + # This is the main configuration file upload { content = "${data.template_file.gitea-config-file.rendered}" file = "/data/gitea/conf/app.ini" } - - # TODO: Add svg memory = 256 restart = "unless-stopped" diff --git a/docker/conf/gitea/extra_links.tmpl b/docker/conf/gitea/extra_links.tmpl new file mode 100644 index 0000000..87d4e38 100644 --- /dev/null +++ a/docker/conf/gitea/extra_links.tmpl @@ -1,0 +1,7 @@ +<a class="item" href="https://captnemo.in/contact/"> + Contact +</a> + +<a class="item" href="https://status.captnemo.in/"> + Status +</a> diff --git a/docker/conf/gitea/home.tmpl b/docker/conf/gitea/home.tmpl new file mode 100644 index 0000000..b2134a1 100644 --- /dev/null +++ a/docker/conf/gitea/home.tmpl @@ -1,0 +1,36 @@ +{{template "base/head" .}} +<div class="home"> + <div class="ui stackable middle very relaxed page grid"> + <div class="sixteen wide center aligned centered column"> + <div> + <img class="logo" src="{{AppSubUrl}}/img/gitea-lg.png" /> + </div> + <div class="hero"> + <h1 class="ui icon header title"> + Nemo's Code + </h1> + <h2>under-the-tv code hosting service</h2> + </div> + </div> + </div> + <div class="ui stackable middle very relaxed page grid"> + <div class="eight wide center column"> + <h1 class="hero ui icon header"> + <i class="octicon octicon-rocket"></i> + Run by friends + </h1> + <p class="large"> + This service is run by <a href="https://captnemo.in">Nemo</a> + </p> + </div> + <div class="eight wide center column"> + <h1 class="hero ui icon header"> + <i class="octicon octicon-flame"></i> Uptime not guaranteed + </h1> + <p class="large"> + Run for fun and not profit. + </p> + </div> + </div> +</div> +{{template "base/footer" .}} -- rgit 0.1.5