49 lines
2.1 KiB
Plaintext
49 lines
2.1 KiB
Plaintext
extends ./template
|
|
block content
|
|
h2 Shared With
|
|
table
|
|
thead
|
|
tr
|
|
th(scope='col' style='min-width: 250px') Username
|
|
th(scope='col') Actions
|
|
tbody
|
|
each user in sharing.shared
|
|
tr
|
|
td #{(user.uuid === project.user_id ? user.username + " (Owner)" : user.username)}
|
|
td
|
|
ul(style='list-style-type: none; margin: 0; padding: 0;')
|
|
if !(user.uuid === project.user_id)
|
|
li
|
|
a.action(href='/dash/v1/project/share/'+project.id+'/revoke/'+user.uuid) Revoke
|
|
li
|
|
a.action(href='/dash/v1/project/share/'+project.id+'/transfer/'+user.uuid) Transfer Ownership
|
|
else
|
|
li
|
|
strike Revoke
|
|
li
|
|
strike Transfer Ownership
|
|
br
|
|
h2 Share With New User
|
|
a.btn(href='/dash/v1/project/share/'+project.id+'/invite') Generate Sharing Link
|
|
br
|
|
br
|
|
table
|
|
thead
|
|
tr
|
|
th(scope='col' style='min-width: 250px') Username
|
|
th(scope='col') Actions
|
|
tbody
|
|
each user in sharing.to_share
|
|
tr
|
|
td #{(user.uuid === project.user_id ? user.username + " (Owner)" : user.username)}
|
|
td
|
|
ul(style='list-style-type: none; margin: 0; padding: 0;')
|
|
if !(user.uuid === project.user_id)
|
|
li
|
|
a.action(href='/dash/v1/project/share/' + project.id + '/share/'+user.uuid) Share
|
|
else
|
|
li
|
|
strike Share
|
|
li
|
|
a.action(href='/dash/v1/project/share/' + project.id + '/transfer/' + user.uuid) Transfer Ownership
|