From dc87792545bb2866f4cb1eac05ba73a4f3368c07 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Fri, 20 Jun 2014 21:32:45 +0000 Subject: [PATCH] Add Python version, fix Markdown cheatsheet --- rophako/__init__.py | 2 ++ rophako/www/layout.html | 2 +- rophako/www/markdown.html | 11 ----------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/rophako/__init__.py b/rophako/__init__.py index 8e6ee35..fac308a 100644 --- a/rophako/__init__.py +++ b/rophako/__init__.py @@ -5,6 +5,7 @@ from flask_sslify import SSLify import jinja2 import os.path import time +import sys import config import rophako.utils @@ -67,6 +68,7 @@ def before_request(): "app": { "name": "Rophako", "version": __version__, + "python_version": "{}.{}".format(sys.version_info.major, sys.version_info.minor), "author": "Noah Petherbridge", "photo_url": config.PHOTO_ROOT_PUBLIC, }, diff --git a/rophako/www/layout.html b/rophako/www/layout.html index 0e1fb21..a4adc76 100644 --- a/rophako/www/layout.html +++ b/rophako/www/layout.html @@ -59,7 +59,7 @@ © 2014 Noah Petherbridge. Web design released along with the Rophako CMS under the GNU General Public License v2.0.
- {{ app["name"] }} v{{ app["version"] }} + {{ app["name"] }} v{{ app["version"] }} on Python {{ app["python_version"] }} diff --git a/rophako/www/markdown.html b/rophako/www/markdown.html index 35a5be2..f31a1a7 100644 --- a/rophako/www/markdown.html +++ b/rophako/www/markdown.html @@ -671,17 +671,6 @@ attempt to thwart e-mail harvesting spam bots.

(Source: <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58; &#97;&#100;&#100;&#114;&#101;&#115;&#115;&#64; &#101;&#120;&#97;&#109;&#112;&#108; &#101;&#46;&#99;&#111;&#109;">&#97; &#100;&#100;&#114;&#101;&#115;&#115; &#64;&#101;&#120;&#97;&#109;&#112; &#108;&#101;&#46;&#99;&#111; &#109;</a>) - - - - ![Alt text][id]

- [id]: /static/avatars/default.png "Optional title attribute" - - - - Alt text - -