{% from 'widgets/buttons.html' import link %}
{% if app.is_web_app == 1 and app.is_external_url != 1 %} {% set app_event = "launch_web_app('" ~ app.id ~ "', 'http://127.0.0.1:5555/primtuxwebapps/" ~ app.default_path ~ "')" %} {% else %} {% set app_event = "launch_app('" ~ session.type ~ "', '" ~ app.id ~ "', true)" %} {% endif %} {{ link('open-in-new', 'Lancer', 'javascript:' ~ app_event, '', '', '', 'icon-right') }}