Skip to content

Commit

Permalink
show program version on index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Nov 3, 2018
1 parent 4d48323 commit 7cf512a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cicero/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import requests
import json
from .version import __version__

blueprint = flask.Blueprint('git', __name__)

Expand Down Expand Up @@ -34,7 +35,7 @@ def set_url_base(host, port):

@blueprint.route('/')
def home():
return flask.render_template('index.html', url_base=URL_BASE)
return flask.render_template('index.html', url_base=URL_BASE, version=__version__)


def render_url_markdown(path, engine, engine_version):
Expand Down
2 changes: 1 addition & 1 deletion cicero/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h3>Why Cicero</h3>
<div class="col">
<br>
<p>
Cicero (c)
Cicero <font color="#909090">v{{ version }}</font> (c)
<a href="https://bast.fr" target="_blank">Radovan Bast</a>,
<a href="https://github.com/olemb" target="_blank">Ole Martin Bj&oslash;rndalen</a>, and
<a href="http://totaltrash.xyz" target="_blank">Roberto Di Remigio</a>
Expand Down
2 changes: 1 addition & 1 deletion cicero/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections import namedtuple

__version__ = '0.1.0'
__version__ = '0.1.1-beta-1'

version_info = namedtuple('version_info',
['major', 'minor', 'micro', 'releaselevel'])
Expand Down

0 comments on commit 7cf512a

Please sign in to comment.