mirror of https://github.com/writeas/writefreely
this adds a new page with instructions for sharing user invites if a user clicks the link for one of their own invite codes they are directed to a page with clear instructions for it's use. if a user clicks another users link they are redirectec to their account settings witha flash telling them they do not need to register.pull/183/head
parent
6b99d75aa9
commit
d954b7c8e3
@ -0,0 +1,25 @@ |
|||||||
|
{{define "invite-instructions"}} |
||||||
|
{{template "header" .}} |
||||||
|
<style> |
||||||
|
.copy-link { |
||||||
|
width: 100%; |
||||||
|
margin: 2em 0; |
||||||
|
text-align: center; |
||||||
|
font-size-adjust: .7; |
||||||
|
color: #555; |
||||||
|
} |
||||||
|
</style> |
||||||
|
<div class="snug content-container"> |
||||||
|
<h1>Invite Instructions</h1> |
||||||
|
<p>This is a special link that you can send to anyone you want to join <em>{{ .SiteName }}</em>. Copy the link below and paste it into an email, instant message, or text message and send it to the person you want. When they navigate to the link, they'll be able to create an account.</p> |
||||||
|
<input |
||||||
|
class="copy-link" |
||||||
|
type="text" |
||||||
|
name="invite-url" |
||||||
|
value="{{$.Host}}/invite/{{.InviteID}}" |
||||||
|
onfocus="if (this.select) this.select(); else this.setSelectionRange(0, this.value.length);" |
||||||
|
readonly/> |
||||||
|
</div> |
||||||
|
|
||||||
|
{{template "footer" .}} |
||||||
|
{{end}} |
Loading…
Reference in new issue