forked from rust-lang/crates.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpending-owner-invite-row.hbs
More file actions
40 lines (40 loc) · 1.37 KB
/
pending-owner-invite-row.hbs
File metadata and controls
40 lines (40 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<div class='row'>
{{#if isAccepted }}
<p>Success! You've been added as an owner of crate
{{#link-to 'crate' invite.crate_name}}{{invite.crate_name}}{{/link-to}}.
</p>
{{else if isDeclined}}
<p>Declined. You have not been added as an owner of crate
{{#link-to 'crate' invite.crate_name}}{{invite.crate_name}}{{/link-to}}.
</p>
{{else}}
<div class='info'>
<div class='name'>
<h3>
{{#link-to 'crate' invite.crate_name}}
{{invite.crate_name}}
{{/link-to}}
</h3>
</div>
<div class='invite'>
<p>Invited by:
{{#link-to 'user' invite.invited_by_username}}
{{invite.invited_by_username}}
{{/link-to}}
</p>
</div>
<div class='sent'>
<span class='small'>{{moment-from-now invite.created_at}}</span>
</div>
<div class='actions'>
<button class='small yellow-button' {{action 'acceptInvitation' invite}}>Accept</button>
<button class='small yellow-button' {{action 'declineInvitation' invite}}>Decline</button>
</div>
{{#if isError}}
<div class='label'>
<p class='small-text'>{{inviteError}}</p>
</div>
{{/if}}
</div>
{{/if}}
</div>