diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-24 10:52:34 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-24 10:52:34 +0100 |
commit | 4802f7a68d515d78ae25988410d62c5dc1f8c8f4 (patch) | |
tree | 98de946773fb0073b3afc1144c8d64fbedcfecc7 /pkgs/by-name/ba/back/src/issues/mod.rs | |
parent | feat(hosts/server1): Configure back for the `nixos-server` repo (diff) | |
download | nixos-server-4802f7a68d515d78ae25988410d62c5dc1f8c8f4.tar.gz nixos-server-4802f7a68d515d78ae25988410d62c5dc1f8c8f4.zip |
feat(pkgs/back): Add a link to the source code
This is required by the AGPL license and should probably also be done, because we do not have a reason to hide or obfuscate the code.
Diffstat (limited to 'pkgs/by-name/ba/back/src/issues/mod.rs')
-rw-r--r-- | pkgs/by-name/ba/back/src/issues/mod.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/by-name/ba/back/src/issues/mod.rs b/pkgs/by-name/ba/back/src/issues/mod.rs index df3e57e..744d5ba 100644 --- a/pkgs/by-name/ba/back/src/issues/mod.rs +++ b/pkgs/by-name/ba/back/src/issues/mod.rs @@ -11,7 +11,11 @@ use std::path::Path; -use crate::issues::issue::{Issue, Status}; +use crate::{ + issues::issue::{Issue, Status}, + SOURCE_CODE_REPOSITORY, +}; +use format::BackString; use gix::{refs::Target, Repository}; use issue_show::BackPrefix; use rocket::{ @@ -74,6 +78,7 @@ pub fn issue_list_boilerplate(wanted_status: Status, counter_status: Status) -> <main> <div class="issue-links"> <a href="/issues/{counter_status_lower}/">View {counter_status} issues</a> + <a href="{}">Source code</a> <!-- <form class="issue-search" method="get"> <input name="search" title="Issue search query" type="search"> @@ -82,14 +87,14 @@ pub fn issue_list_boilerplate(wanted_status: Status, counter_status: Status) -> --> </div> <ol class="issue-list"> - {} + {issue_list} </ol> </main> </div> </body> </html> "#, - issue_list + SOURCE_CODE_REPOSITORY.get().expect("This should be set") )) } |