Add is_beta to application data

This commit is contained in:
Taylor Helsper 2021-04-30 23:48:09 -05:00
parent 384a4c8af2
commit 05a552760c
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ def create_application(name="NAME",
short_name="SHORT_NAME",
app_tile_name=None,
is_premium=False,
is_beta=False,
can_reinstall=True,
can_uninstall=False,
requires_lightning=False,
@ -50,6 +51,7 @@ def create_application(name="NAME",
app["is_premium"] = is_premium
app["current_version"] = get_app_current_version(short_name)
app["latest_version"] = get_app_latest_version(short_name)
app["is_beta"] = is_beta
app["is_installed"] = is_installed(app["current_version"])
app["can_reinstall"] = can_reinstall
app["can_uninstall"] = can_uninstall

View File

@ -7,6 +7,9 @@
<div class="app_tile">
<div class="app_status_icon {% if app.can_enable_disable %}clear{% endif %}" id="{{app.short_name}}_status_icon"></div>
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/")}}{{app.short_name}}.png"/></div>
{% if app.is_beta %}
<img class="app_beta_tag_image" src="{{ url_for('static', filename="images/beta.png")}}"/>
{% endif %}
<div class="app_title">{{app.app_tile_name}}</div>
<div class="app_status"id="{{app.short_name}}_status"></div>
<div class="app_contents">