1
0
Fork 0
auth.rxbn.de/bin/web/views/index.pug

32 lines
860 B
Plaintext
Raw Normal View History

2019-06-18 22:44:35 +00:00
extends blocks/layout.pug
append var
2021-08-14 00:51:44 +00:00
if(session && session.user && session.user.loggedInFull)
2020-08-14 21:44:12 +00:00
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Apps", "active": true}};
- var title = "Apps";
2019-06-18 22:44:35 +00:00
2019-11-23 23:37:01 +00:00
mixin item(name, id, description)
div
.uk-card.uk-card-default
.uk-card-header.uk-card-primary
h3.uk-card-title=name
.uk-card-body
p=description
.uk-card-footer.uk-flex.uk-flex-right
a.uk-button.uk-button-default.uk-button-primary(href="/api/redirect?id="+id) Login
2019-06-18 22:44:35 +00:00
mixin items()
2019-11-23 23:37:01 +00:00
div(class="uk-child-width-1-2@m uk-margin-bottom", uk-grid)
2019-06-18 22:44:35 +00:00
if(apps)
each app in apps
2019-11-23 23:37:01 +00:00
+item(app.name, app.id, app.description)
2019-06-18 22:44:35 +00:00
else
p.text-center No applications were found.
append content
2021-08-14 00:51:44 +00:00
if(session && session.user && session.user.loggedInFull)
2019-09-03 22:07:45 +00:00
.uk-container
h1 Apps
+items()
else
2019-09-12 21:44:59 +00:00
include blocks/login.pug