[geany/www.geany.org] 07c830: Use absolute URIs for nightly build detail links

Enrico Tröger git-noreply at xxxxx
Sun Jun 9 10:45:20 UTC 2019


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 09 Jun 2019 10:45:20 UTC
Commit:      07c8300f4ce52134a5694c571a977991ba606fe3
             https://github.com/geany/www.geany.org/commit/07c8300f4ce52134a5694c571a977991ba606fe3

Log Message:
-----------
Use absolute URIs for nightly build detail links


Modified Paths:
--------------
    nightlybuilds/templatetags/nightlybuilds_tags.py

Modified: nightlybuilds/templatetags/nightlybuilds_tags.py
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -40,7 +40,7 @@ def get_build_log(nightly_build, log_type):
         else:
             if size > 0:
                 return format_html(
-                    '<a href="/{}/{}">{}</stdout>',
+                    '<a href="https://nightly.geany.org/{}/{}">{}</stdout>',
                     nightly_build.nightly_build_target.folder,
                     log,
                     log_type)
@@ -53,7 +53,7 @@ def get_details(nightly_build):
     header_txt = os.path.join(BASE_DIR, nightly_build.nightly_build_target.folder, 'HEADER.txt')
     if os.path.exists(header_txt):
         return format_html(
-            '<a href="/{}/">Details</a>',
+            '<a href="https://nightly.geany.org/{}/">Details</a>',
             nightly_build.nightly_build_target.folder)
 
     return ''



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list