summary refs log tree commit diff stats
path: root/pkgs/by-name/ba/back/src/issues
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ba/back/src/issues')
-rw-r--r--pkgs/by-name/ba/back/src/issues/issue/mod.rs4
-rw-r--r--pkgs/by-name/ba/back/src/issues/mod.rs11
2 files changed, 12 insertions, 3 deletions
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> {
          <footer>
             <nav>
             <a href="/issues/open">Open Issues</a>
+            <a href="{}">Source code</a>
             <a href="/issues/closed">Closed Issues</a>
             </nav>
          </footer>
@@ -322,6 +325,7 @@ impl<'a> Issue<'a> {
    </body>
 </html>
 "#,
+                SOURCE_CODE_REPOSITORY.get().expect("This should be set")
             ))
         }
     }
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")
     ))
 }