Exemplo n.º 1
0
def revision():
    rev = cache.get('current_revision')
    if rev == None:
        from lib.revision_hook import get_revision, set_cache
        rev = get_revision()
        set_cache(rev)
    return "Revision: <a href=\"https://github.com/upTee/upTee/commit/{0}\">{1}</a>".format(rev, rev[:7])
Exemplo n.º 2
0
def revision():
    rev = get_revision()
    if rev:
        return mark_safe(
            f'r<a href="https://github.com/chaosk/teerace/commit/{rev}">{rev[:7]}</a>'
        )
    return ""
Exemplo n.º 3
0
def revision():
    rev = get_revision()
    if rev:
        return mark_safe(
            f'r<a href="https://github.com/chaosk/teerace/commit/{rev}">{rev[:7]}</a>'
        )
    return ""
Exemplo n.º 4
0
def revision():
    rev = cache.get('current_revision')
    if rev == None:
        from lib.revision_hook import get_revision, set_cache
        rev = get_revision()
        set_cache(rev)
    return "Revision: <a href=\"https://github.com/upTee/upTee/commit/{0}\">{1}</a>".format(
        rev, rev[:7])
Exemplo n.º 5
0
def revision():
	rev = cache.get('current_revision')
	if rev == None:
		from lib.revision_hook import get_revision, set_cache
		rev = get_revision()
		set_cache(rev)
	return mark_safe("r<a href=\"https://github.com/chaosk/teerace/commit/%s\">%s</a>" % \
		(rev, rev[:7]))