Example #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])
Example #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 ""
Example #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 ""
Example #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])
Example #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]))