81 lines
2.7 KiB
Plaintext
81 lines
2.7 KiB
Plaintext
extends ./template
|
|
block content
|
|
h3 My Projects
|
|
a.btn(href='/dash/v1/project/new') +
|
|
table
|
|
thead
|
|
tr
|
|
th(scope='col' style='min-width: 250px') Name
|
|
th(scope='col') Actions
|
|
tbody
|
|
each project in projects
|
|
tr
|
|
td #{project.name}
|
|
td
|
|
ul(style='list-style-type: none; margin: 0; padding: 0;')
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/view/'+project.id) View
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/share/'+project.id) Share
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/delete/'+project.id) Delete
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/edit/'+project.id) Edit
|
|
|
|
if shared_projects.view || shared_projects.edit
|
|
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.action-li
|
|
a.action(href='/dash/v1/project/view/'+project.id) View
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/share/'+project.id+'/revoke/'+user.uuid+'/edit') Remove
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/edit/'+project.id) Edit
|
|
each project in shared_projects.view
|
|
tr
|
|
td #{project.name}
|
|
td
|
|
ul(style='list-style-type: none; margin: 0; padding: 0;')
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/view/'+project.id) View
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/share/'+project.id+'/revoke/'+user.uuid) Remove
|
|
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;')
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/snippet/'+snippet.project_id+'/view/'+snippet.uuid) View
|
|
li.action-li
|
|
a.action(href='/dash/v1/snippet/share/'+snippet.id+'/revoke/'+user.uuid+'/edit') Remove
|
|
li.action-li
|
|
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;')
|
|
li.action-li
|
|
a.action(href='/dash/v1/project/snippet/'+snippet.project_id+'/view/'+snippet.uuid) View
|
|
li.action-li
|
|
a.action(href='/dash/v1/snippet/share/'+snippet.id+'/revoke/'+user.uuid) Remove
|