We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN 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

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `kinto/plugins/admin/__init__.py`
Content:
```
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 FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

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/",
     )

{"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"}], "after_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.1\",\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"}]}