devbug/app/views/dash_v1/main.pug

83 lines
2.7 KiB
Plaintext
Raw Normal View History

2019-06-22 17:51:29 +00:00
extends ./template
block content
h3 My Projects
2019-07-24 20:30:51 +00:00
a.btn(href='/dash/v1/project/new') +
2019-06-22 17:51:29 +00:00
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
li.action-li
a.action(href='/dash/v1/out/view-latest/'+project.id) Latest Output
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;')
2019-07-24 20:30:51 +00:00
li.action-li
a.action(href='/dash/v1/project/view/'+project.id) View
2019-07-24 20:30:51 +00:00
li.action-li
a.action(href='/dash/v1/project/share/'+project.id+'/revoke/'+user.uuid+'/edit') Remove
2019-07-24 20:30:51 +00:00
li.action-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;')
2019-07-24 20:30:51 +00:00
li.action-li
2019-06-23 17:17:35 +00:00
a.action(href='/dash/v1/project/view/'+project.id) View
2019-07-24 20:30:51 +00:00
li.action-li
2019-06-23 17:17:35 +00:00
a.action(href='/dash/v1/project/share/'+project.id+'/revoke/'+user.uuid) Remove
2019-07-24 17:05:27 +00:00
if shared_snippets.view || shared_snippets.edit
h3 Snippets Shared With Me
table
thead
tr
th(scope='col' style='min-width: 250px') Name
th(scope='col') Actions
tbody
each snippet in shared_snippets.edit
tr
td #{snippet.name}
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
2019-07-24 20:30:51 +00:00
li.action-li
2019-07-24 17:05:27 +00:00
a.action(href='/dash/v1/project/snippet/'+snippet.project_id+'/view/'+snippet.uuid) View
2019-07-24 20:30:51 +00:00
li.action-li
2019-07-24 17:05:27 +00:00
a.action(href='/dash/v1/snippet/share/'+snippet.id+'/revoke/'+user.uuid+'/edit') Remove
2019-07-24 20:30:51 +00:00
li.action-li
2019-07-24 17:05:27 +00:00
a.action(href='/dash/v1/project/snippet/'+snippet.project_id+'/edit/'+snippet.uuid) Edit
each snippet in shared_snippets.view
tr
td #{snippet.name}
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
2019-07-24 20:30:51 +00:00
li.action-li
2019-07-24 17:05:27 +00:00
a.action(href='/dash/v1/project/snippet/'+snippet.project_id+'/view/'+snippet.uuid) View
2019-07-24 20:30:51 +00:00
li.action-li
2019-07-24 17:05:27 +00:00
a.action(href='/dash/v1/snippet/share/'+snippet.id+'/revoke/'+user.uuid) Remove