Skip to content

Commit

Permalink
Add export functionality and sidebar link
Browse files Browse the repository at this point in the history
  • Loading branch information
Adasjo committed Feb 9, 2024
1 parent b5838c1 commit c500597
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Empty file added routes/export.js
Empty file.
22 changes: 22 additions & 0 deletions views/export.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
extends layout

block content
div(id='content')
script(type="text/javascript").

div(class='row')
include sidebar
div(class='col-sm-8 col-md-9')
h1 Aktuella mandat
table(class='table')
thead
tr
th KTH-ID
tbody
each rolemandate in rolemandates
each mandate in rolemandate.Mandates
tr
th
= mandate.User.kthid
div(class='clear')

4 changes: 4 additions & 0 deletions views/sidebar.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ div(class='col-sm-4 col-md-3')
if issearch
li
a(href='/kthpeople') Användarsökningsfunktion
if isadmin
li
a(href='/export') Användarexport
if isadmin
li
a(href='/admin') Adminstrativt

0 comments on commit c500597

Please sign in to comment.