forked from auth0/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_package.html
41 lines (41 loc) · 1.91 KB
/
_package.html
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
41
<div id="package" class="package" data-swiftype-index="false">
<div class="package-content clearfix">
<div class="package-information">
<h3 class="package-header">Sample Project</h3>
<% if (account.userName) { %>
<p class="package-description configured">
Download a sample project specific to this tutorial configured with your Auth0 API Keys.
</p>
<% } else { %>
<p class="package-description not-configured">
Download a sample project specific to this tutorial to get started.
<br>
<span class="need-to-login">Log In to have your Auth0 credentials preconfigured.</span>
</p>
<% } %>
</div>
<div class="package-buttons">
<% if (typeof branch !== 'undefined') { %>
<a href="/package/v2?org=${org}&repo=${repo}&branch=${branch}&path=${path}&client_id=${account.clientId}" class="btn btn-sm btn-success download-package" rel="nofollow">Download</a>
<a href="https://github.com/${org || 'auth0-samples'}/${repo}/tree/${branch}/${path}" class="github-link" rel="nofollow">Fork on Github</a>
<% } else { %>
<a href="/package/v2?org=${org}&repo=${repo}&path=${path}&client_id=${account.clientId}" class="btn btn-sm btn-success download-package" rel="nofollow">Download</a>
<a href="https://github.com/${org || 'auth0-samples'}/${repo}/tree/master/${path}" class="github-link" rel="nofollow" target="_top">Fork on Github</a>
<% } %>
</div>
</div>
<% if (typeof requirements !== 'undefined') { %>
<div class="package-requirements">
<div class="package-requirements-header">System Requirements</div>
<ul class="package-requirements-list">
<% requirements.forEach(req => { %>
<li><span>${req}</span></li>
<% }); %>
</ul>
</div>
<div class="package-requirements-toggle">
<span class="text">Show requirements</span>
<i class="icon icon-budicon-460"></i>
</div>
<% } %>
</div>