You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
2.0 KiB
46 lines
2.0 KiB
5 years ago
|
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
|
||
|
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
|