Permalink
Browse files

Merge pull request #4 from dslatten/master

Make GitHub ribbon link dynamically point to specific files
  • Loading branch information...
2 parents de1ebd2 + 14fbb92 commit fa7ea46beb7268d3f92262e02158242046266e64 @blaflamme blaflamme committed Jul 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pylons/layout.html
  2. BIN pylons/static/edit-me-on-github.png
View
@@ -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">
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 fa7ea46

Please sign in to comment.