prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Kalender-URL schöner anzeigen
  Als Nutzer möchte ich auf meiner Profilseite ein read-only-Feld sehen, in dem die URL zu meinem Kalender-Feed steht. Der Link soll nicht klickbar sein, damit die ics-Datei nicht heruntergeladen wird. Neben dem Link soll ein Button zum Kopieren der URL vorhanden sein.
  
  </issue>
  <code>
  [start of ephios/extra/context.py]
  1 import importlib
  2 import subprocess
  3 
  4 from django.templatetags.static import static
  5 from django.utils.translation import get_language
  6 
  7 from ephios.extra.signals import footer_link
  8 
  9 try:
  10     EPHIOS_VERSION = (
  11         subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode().strip()
  12     )
  13 except (subprocess.CalledProcessError, FileNotFoundError):
  14     # suggested in https://github.com/python-poetry/poetry/issues/273
  15     EPHIOS_VERSION = "v" + importlib.metadata.version("ephios")
  16 
  17 
  18 def ephios_base_context(request):
  19     footer = {}
  20     for receiver, result in footer_link.send(None, request=request):
  21         for label, url in result.items():
  22             footer[label] = url
  23 
  24     datatables_translation_url = None
  25     if get_language() == "de-de":
  26         datatables_translation_url = static("datatables/german.json")
  27 
  28     return {
  29         "footer": footer,
  30         "datatables_translation_url": datatables_translation_url,
  31         "ephios_version": EPHIOS_VERSION,
  32     }
  33
  [end of ephios/extra/context.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/ephios/extra/context.py b/ephios/extra/context.py
  --- a/ephios/extra/context.py
  +++ b/ephios/extra/context.py
  @@ -5,6 +5,7 @@
   from django.utils.translation import get_language
   
   from ephios.extra.signals import footer_link
  +from ephios.settings import SITE_URL
   
   try:
       EPHIOS_VERSION = (
  @@ -29,4 +30,5 @@
           "footer": footer,
           "datatables_translation_url": datatables_translation_url,
           "ephios_version": EPHIOS_VERSION,
  +        "SITE_URL": SITE_URL,
       }
  
verification_info: {"golden_diff": "diff --git a/ephios/extra/context.py b/ephios/extra/context.py\n--- a/ephios/extra/context.py\n+++ b/ephios/extra/context.py\n@@ -5,6 +5,7 @@\n from django.utils.translation import get_language\n \n from ephios.extra.signals import footer_link\n+from ephios.settings import SITE_URL\n \n try:\n     EPHIOS_VERSION = (\n@@ -29,4 +30,5 @@\n         \"footer\": footer,\n         \"datatables_translation_url\": datatables_translation_url,\n         \"ephios_version\": EPHIOS_VERSION,\n+        \"SITE_URL\": SITE_URL,\n     }\n", "issue": "Kalender-URL sch\u00f6ner anzeigen\nAls Nutzer m\u00f6chte ich auf meiner Profilseite ein read-only-Feld sehen, in dem die URL zu meinem Kalender-Feed steht. Der Link soll nicht klickbar sein, damit die ics-Datei nicht heruntergeladen wird. Neben dem Link soll ein Button zum Kopieren der URL vorhanden sein.\n", "before_files": [{"content": "import importlib\nimport subprocess\n\nfrom django.templatetags.static import static\nfrom django.utils.translation import get_language\n\nfrom ephios.extra.signals import footer_link\n\ntry:\n    EPHIOS_VERSION = (\n        subprocess.check_output([\"git\", \"rev-parse\", \"--short\", \"HEAD\"]).decode().strip()\n    )\nexcept (subprocess.CalledProcessError, FileNotFoundError):\n    # suggested in https://github.com/python-poetry/poetry/issues/273\n    EPHIOS_VERSION = \"v\" + importlib.metadata.version(\"ephios\")\n\n\ndef ephios_base_context(request):\n    footer = {}\n    for receiver, result in footer_link.send(None, request=request):\n        for label, url in result.items():\n            footer[label] = url\n\n    datatables_translation_url = None\n    if get_language() == \"de-de\":\n        datatables_translation_url = static(\"datatables/german.json\")\n\n    return {\n        \"footer\": footer,\n        \"datatables_translation_url\": datatables_translation_url,\n        \"ephios_version\": EPHIOS_VERSION,\n    }\n", "path": "ephios/extra/context.py"}]}