Esempio n. 1
0
def inventree_version(shortstring=False, *args, **kwargs):
    """Return InvenTree version string."""
    if shortstring:
        return _("{title} v{version}".format(
            title=version.inventreeInstanceTitle(),
            version=version.inventreeVersion()))
    return version.inventreeVersion()
Esempio n. 2
0
def inventree_title(*args, **kwargs):
    """ Return the title for the current instance - respecting the settings """
    return version.inventreeInstanceTitle()