add link sharing

This commit is contained in:
2019-06-24 11:45:22 -05:00
parent 2b95fc17a6
commit dc2cec78dc
14 changed files with 195 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
html
head
title Project Invitation | DevBug
link(rel='stylesheet' href='/assets/dash_v1.css')
script(src='/assets/dash_v1.js')
body
.page-header
.devbug-header DevBug | v#{devbug.version} #{(project ? " | Project: "+project.name+" | API: "+project.uuid : "")}
h1 Accept Invitation?
ul.navul
li.navli
a.nava(href='/dash/v1') Dashboard Login
.spacer
p You've been invited to view the debugging project "#{project.name}" by #{user.username}.
p To accept this invitation, you must have a DevBug account. You will be redirected to the registration portal.
a.btn(href='/api/v1/invitation/'+invite.id+'/accept') Accept
br
h3 What's DevBug?
p DevBug is a debugging output server used to help developers work more efficiently. Using inline-code clients, developers can output variables and data from their programs. This data is stored in a DevBug project, where it can easily be shared with others.

View File

@@ -0,0 +1,7 @@
extends ./template
block content
p You can send this link to someone without a DevBug account to invite them to register.
p Once they register, #{project.name} will be shared with them. This link can only be used once.
h3 Invitation Link
pre
code #{_flitter.config('server.url')+'/api/v1/invitation/'+share.id}

View File

@@ -24,6 +24,9 @@ block content
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