Skip to content
Browse files

dynamic GitHub ribbon link points to each file

  • Loading branch information...
1 parent de1ebd2 commit 14fbb923ec9f66e6e5ebe415cd8ee99d51593b5f @dslatten dslatten committed Jul 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pylons/layout.html
  2. BIN pylons/static/edit-me-on-github.png
View
4 pylons/layout.html
@@ -17,8 +17,8 @@
<img style="position: fixed; display: block; width: 165px; height: 165px; bottom: 60px; right: 0; border: 0;" src="{{ pathto('_static/in_progress.png', 1) }}" alt="Documentation in progress"></a>
{% endif %}
-{% if theme_github_url %}
-<a href="{{ theme_github_url }}"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/camo.github.com/7afbc8b248c68eb468279e8c17986ad46549fb71/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
+{% if display_github %}
+<a href="https://github.com/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}.rst"><img style="position: absolute; top: 0; right: 0; border: 0;" src="{{ pathto('_static/edit-me-on-github.png', 1) }}" alt="Edit me on GitHub"></a>
{% endif %}
<div class="header-small">
View
BIN pylons/static/edit-me-on-github.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 14fbb92

Please sign in to comment.
Something went wrong with that request. Please try again.