summary refs log tree commit diff stats
path: root/ganarchy/templating/templates.py
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2023-08-22 23:48:27 -0300
committerSoniEx2 <endermoneymod@gmail.com>2023-08-22 23:48:27 -0300
commitcf00ee269c410d7dca3e77735f6f7ebd1c541f62 (patch)
tree7a47bc3b909f532766c3a257e2cc864c38265ab1 /ganarchy/templating/templates.py
parent55cc6f60108cc182cfd219225a2eaa3005f1b63f (diff)
Clean up fedi-to stuff
Diffstat (limited to 'ganarchy/templating/templates.py')
-rw-r--r--ganarchy/templating/templates.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ganarchy/templating/templates.py b/ganarchy/templating/templates.py
index 7d453e4..94ddbdf 100644
--- a/ganarchy/templating/templates.py
+++ b/ganarchy/templating/templates.py
@@ -110,7 +110,11 @@ def get_template_loader():
     </head>
     <body>
         <h1>{{ project_title|e }}</h1>
+        {% if ganarchy.fedito != 0 -%}
         <p>Tracking <span id="project_commit"><a href="https://fedi-to.net/go?target=web%2Bganarchy://{{ base_url.rpartition("//")[-1].partition("/")[0] }}/{{ project_commit }}">{{ project_commit }}</a></span></p>
+        {% else -%}
+        <p>Tracking <span id="project_commit"><a href="web+ganarchy://{{ base_url.rpartition("//")[-1].partition("/")[0] }}/{{ project_commit }}">{{ project_commit }}</a></span></p>
+        {% endif -%}
         <div id="project_body"><p>{{ project_body|e|replace("\n\n", "</p><p>") }}</p></div>
         <h2>Pinned repos</h2>
         <ul>