From 4802f7a68d515d78ae25988410d62c5dc1f8c8f4 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 24 Dec 2024 10:52:34 +0100 Subject: 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. --- pkgs/by-name/ba/back/src/issues/issue/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/by-name/ba/back/src/issues/issue') diff --git a/pkgs/by-name/ba/back/src/issues/issue/mod.rs b/pkgs/by-name/ba/back/src/issues/issue/mod.rs index ada7593..b78f473 100644 --- a/pkgs/by-name/ba/back/src/issues/issue/mod.rs +++ b/pkgs/by-name/ba/back/src/issues/issue/mod.rs @@ -16,6 +16,8 @@ use gix::{bstr::ByteSlice, Commit, Id, ObjectId, Repository}; use raw::{Operation, RawIssue}; use rocket::response::content::RawHtml; +use crate::SOURCE_CODE_REPOSITORY; + use super::format::{BackString, Markdown}; mod raw; @@ -315,6 +317,7 @@ impl<'a> Issue<'a> { @@ -322,6 +325,7 @@ impl<'a> Issue<'a> { "#, + SOURCE_CODE_REPOSITORY.get().expect("This should be set") )) } } -- cgit 1.4.1