devbug/app/views/dash_v1/main.pug

55 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-06-22 17:51:29 +00:00
extends ./template
block content
h3 My Projects
ul(style='list-style-type: none;')
li
a(href='/dash/v1/project/new') Create New Project
table
thead
tr
th(scope='col' style='min-width: 250px') Name
th(scope='col') Actions
tbody
each project in projects
2019-06-21 22:01:34 +00:00
tr
2019-06-22 17:51:29 +00:00
td #{project.name}
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
2019-07-15 15:11:28 +00:00
li.action-li
2019-06-22 17:51:29 +00:00
a.action(href='/dash/v1/project/view/'+project.id) View
2019-07-15 15:11:28 +00:00
li.action-li
2019-06-23 17:17:35 +00:00
a.action(href='/dash/v1/project/share/'+project.id) Share
2019-07-15 15:11:28 +00:00
li.action-li
2019-06-22 17:51:29 +00:00
a.action(href='/dash/v1/project/delete/'+project.id) Delete
2019-07-15 15:11:28 +00:00
li.action-li
2019-06-22 17:51:29 +00:00
a.action(href='/dash/v1/project/edit/'+project.id) Edit
2019-06-23 17:17:35 +00:00
if shared_projects.view || shared_projects.edit
2019-06-23 17:17:35 +00:00
h3 Projects Shared With Me
table
thead
tr
th(scope='col' style='min-width: 250px') Name
th(scope='col') Actions
tbody
each project in shared_projects.edit
tr
td #{project.name}
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
li
a.action(href='/dash/v1/project/view/'+project.id) View
li
a.action(href='/dash/v1/project/share/'+project.id+'/revoke/'+user.uuid+'/edit') Remove
li
a.action(href='/dash/v1/project/edit/'+project.id) Edit
each project in shared_projects.view
2019-06-23 17:17:35 +00:00
tr
td #{project.name}
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
li
a.action(href='/dash/v1/project/view/'+project.id) View
li
a.action(href='/dash/v1/project/share/'+project.id+'/revoke/'+user.uuid) Remove