prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Kinto Admin version not shown in footer
  
  ![screenshot from 2017-01-24 17-01-08](https://cloud.githubusercontent.com/assets/546692/22255110/b87c08e2-e256-11e6-9880-b85014bb9f0a.png)
  
  Looks like the effects of this are lost when packaged as a kinto plugin:
  
  https://github.com/Kinto/kinto-admin/commit/8b184b041121ed4affddfbc2ce98ce658226ee34
  
  </issue>
  <code>
  [start of kinto/plugins/admin/__init__.py]
  1 from pyramid.static import static_view
  2 from pyramid.httpexceptions import HTTPTemporaryRedirect
  3 
  4 
  5 def includeme(config):
  6     # Process settings to remove storage wording.
  7 
  8     # Expose capability.
  9     config.add_api_capability(
  10         "admin",
  11         version="1.8.0",
  12         description="Serves the admin console.",
  13         url="https://github.com/Kinto/kinto-admin/",
  14     )
  15 
  16     build_dir = static_view('kinto.plugins.admin:build', use_subpath=True)
  17     config.add_route('catchall_static', '/admin/*subpath')
  18     config.add_view(build_dir, route_name="catchall_static")
  19 
  20     # Setup redirect without trailing slash.
  21     def admin_redirect_view(request):
  22         raise HTTPTemporaryRedirect(request.path + '/')
  23 
  24     config.add_route('admin_redirect', '/admin')
  25     config.add_view(admin_redirect_view, route_name="admin_redirect")
  26
  [end of kinto/plugins/admin/__init__.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/kinto/plugins/admin/__init__.py b/kinto/plugins/admin/__init__.py
  --- a/kinto/plugins/admin/__init__.py
  +++ b/kinto/plugins/admin/__init__.py
  @@ -8,7 +8,7 @@
       # Expose capability.
       config.add_api_capability(
           "admin",
  -        version="1.8.0",
  +        version="1.8.1",
           description="Serves the admin console.",
           url="https://github.com/Kinto/kinto-admin/",
       )
  
verification_info: {"golden_diff": "diff --git a/kinto/plugins/admin/__init__.py b/kinto/plugins/admin/__init__.py\n--- a/kinto/plugins/admin/__init__.py\n+++ b/kinto/plugins/admin/__init__.py\n@@ -8,7 +8,7 @@\n     # Expose capability.\n     config.add_api_capability(\n         \"admin\",\n-        version=\"1.8.0\",\n+        version=\"1.8.1\",\n         description=\"Serves the admin console.\",\n         url=\"https://github.com/Kinto/kinto-admin/\",\n     )\n", "issue": "Kinto Admin version not shown in footer\n\r\n![screenshot from 2017-01-24 17-01-08](https://cloud.githubusercontent.com/assets/546692/22255110/b87c08e2-e256-11e6-9880-b85014bb9f0a.png)\r\n\r\nLooks like the effects of this are lost when packaged as a kinto plugin:\r\n\r\nhttps://github.com/Kinto/kinto-admin/commit/8b184b041121ed4affddfbc2ce98ce658226ee34\n", "before_files": [{"content": "from pyramid.static import static_view\nfrom pyramid.httpexceptions import HTTPTemporaryRedirect\n\n\ndef includeme(config):\n    # Process settings to remove storage wording.\n\n    # Expose capability.\n    config.add_api_capability(\n        \"admin\",\n        version=\"1.8.0\",\n        description=\"Serves the admin console.\",\n        url=\"https://github.com/Kinto/kinto-admin/\",\n    )\n\n    build_dir = static_view('kinto.plugins.admin:build', use_subpath=True)\n    config.add_route('catchall_static', '/admin/*subpath')\n    config.add_view(build_dir, route_name=\"catchall_static\")\n\n    # Setup redirect without trailing slash.\n    def admin_redirect_view(request):\n        raise HTTPTemporaryRedirect(request.path + '/')\n\n    config.add_route('admin_redirect', '/admin')\n    config.add_view(admin_redirect_view, route_name=\"admin_redirect\")\n", "path": "kinto/plugins/admin/__init__.py"}]}