Debian Codegraph @

extra/haxelib_src/www/view/project/version.html

raw
1
2 <div>
3 <h1><i class="fa fa-star"></i> @project</h1>
4 <p class="lead">@info.desc<br/><a href="@info.website">@info.website <span class="fa fa-external-link"></span></a></p>
5 </div>
6
7 <ul class="nav nav-tabs nav-justified" role="tablist">
8 <li class="active"><a href="/p/@project/@if(version!=info.curversion) {@version}">@project <small>@version</small></a></li>
9 <li><a href="/p/@project/@info.curversion/files/">Files</a></li>
10 <li><a href="/p/@project/versions/">All Versions <small>(@allVersions.length)</small></a></li>
11 </ul>
12
13 <div class="row">
14 <div class="span8">
15
16 @if (false) {<!-- Warning if they're looking at an old version -->}
17 @if( version!=info.curversion ) {
18 <p class="alert alert-warning">This is not the latest stable version of @project. See version <a href="/p/@project/@info.curversion/">@info.curversion</a> for the latest version.</p>
19 }
20
21 @if (false) {<!-- Installation Instruction -->}
22 <div class="well">
23 <p>To install, run:</p>
24 <pre><code>haxelib install @project @version</code> <a class="btn btn-small pull-right" href="/p/@project/@version/download/" title="Download @project:@version zip"><i class="fa fa-download"></i></a></pre>
25 <p>See <a href="/documentation/using-haxelib/">using Haxelib</a> in Haxelib documentation for more information.</p>
26
27 </div>
28
29 <ul class="nav nav-tabs nav-justified" role="tablist">
30 @if(hasReadme){<li @if (type == "readme") {class="active"}><a href="/p/@project/@info.curversion">About</a></li>}
31 <li @if (type =="releasenotes") {class="active"}><a href="/p/@project/@info.curversion/releasenotes">Release notes</a></li>
32 @if(hasChangelog){<li @if (type =="changelog") {class="active"}><a href="/p/@project/@info.curversion/changelog">Changelog</a></li>}
33 @if(hasLicense){<li @if (type =="license") {class="active"}><a href="/p/@project/@info.curversion/license/" >License</a></li>}
34 </ul>
35
36 @if (type == "readme") {
37 @if (false) {<!-- README -->}
38 @if (hasReadme) {
39 <div class="tab-pane panel panel-default active" id="readme">
40 <div class="panel-heading">
41 <h1 class="panel-title"><i class="fa fa-book"></i> README.md</h1>
42 </div>
43 <article class="panel-body readme site-content">
44 @readme
45 </article>
46 </div>
47 }
48 }
49
50 @if (type == "releasenotes") {
51 <section class="tab-pane" id="releasenotes">
52 @if (hasReleaseNotes) {
53 <h1><i class="fa fa-book"></i> @project @version Release notes</h1>
54 <p>@escape(releaseNotes)</p>
55 }
56 </section>
57 }
58
59 @if (type == "changelog") {
60 @if (false) {<!-- CHANGELOG -->}
61 @if (hasChangelog) {
62 <div class="tab-pane panel panel-default" id="changelog">
63 <div class="panel-heading">
64 <h1 c1ass="panel-title"><i class="fa fa-book"></i> CHANGELOG.md</h1>
65 </div>
66 <article class="panel-body changelog site-content">
67 @changelog
68 </article>
69 </div>
70 }
71 }
72
73
74 @if (type == "license") {
75 @if (false) {<!-- LICENSE -->}
76 @if (hasLicense) {
77 <div class="tab-pane panel panel-default" id="license">
78 <div class="panel-heading">
79 <h1 c1ass="panel-title"><i class="fa fa-book"></i> LICENSE.md</h1>
80 </div>
81 <article class="panel-body changelog site-content">
82 @license
83 </article>
84 </div>
85 }
86 }
87 </div>
88 <div class="span4">
89 @if (false) {<!-- Project details -->}
90 <div class="table-responsive project-details">
91 <table class="table table-condensed">
92 <tr>
93 <td width="50%">
94 <strong>Contributors</strong><br/>
95 </td>
96 <td>
97 @for(d in info.contributors) {
98 <a href="/u/@d.name">@d.name</a><br/>
99 }
100 </td>
101 </tr>
102 <tr>
103 <td><strong>Version</strong><br/>@version</a></td>
104 <td><strong>Published</strong><br/><span title="@versionDate">@formatDate(versionDate)</span></td>
105 </tr>
106 @if (dependencies.length > 0) {
107 <tr>
108 <td colspan="2">
109 <strong>Dependencies</strong>
110 <ul class="dependencies">
111 @for (dep in dependencies) {
112 @if (dep.version != null) {
113 <li><a href="/p/@dep.name/@dep.version/">@dep.name</a> <small>(@dep.version)</small> </li>
114 }
115 else {
116 <li><a href="/p/@dep.name/">@dep.name</a></li>
117 }
118 }
119 </ul>
120 </td>
121 </tr>
122 }
123 <tr>
124 <td colspan="2"><strong>License</strong><br/>@info.license</a></td>
125 </tr>
126 @if (info.tags != null && info.tags.length > 0) {
127 <tr class="tags">
128 <td colspan="2">
129 <ul class="tags unstyled">
130 @for( t in info.tags ) {
131 <li class="tag tag-inline"><i class="fa fa-tag"></i> <a href="/t/@t/">@t</a></li>
132 }
133 </ul>
134 </td>
135 </tr>
136 }
137 <tr id="github-info" style="display:none">
138 <td>
139 <p><strong>Repository</strong></p>
140 <span id="github-user-image"></span>
141 </td>
142 <td>
143 <p id="github-user-website"></p>
144 <div class="hidden" id="github-buttons">
145 <iframe id="github-button-star" src="" frameborder="0" scrolling="0" width="100" height="20"></iframe>
146 <iframe id="github-button-fork" src="" frameborder="0" scrolling="0" width="100" height="20"></iframe>
147 </div>
148 </td>
149 </tr>
150 </table>
151 </div>
152
153 </div>
154 </div>
155
156 @if (info.website.indexOf("github.com") > -1) {
157 @{var githubInfo = info.website.split("github.com/").pop().split("/");}
158 @{var githubUser = githubInfo[0];}
159 @{var githubRepo = githubInfo[1];}
160 <script>
161 var baseGithubUrl = "https://ghbtns.com/github-btn.html?user=@githubUser";
162 @if (githubRepo != null) { baseGithubUrl += "&repo=@githubRepo"; }
163
164 document.getElementById("github-info").style.display = "table-row";
165
166 document.getElementById("github-button-star").src = baseGithubUrl + "&type=star&count=true";
167 document.getElementById("github-button-fork").src = baseGithubUrl + "&type=fork&count=true";
168 document.getElementById("github-buttons").className = "show";
169
170 document.getElementById("github-user-website").innerHTML = '<span class="fa fa-github"></span> <a href="@info.website">@githubUser</a>';
171 document.getElementById("github-user-image").innerHTML = '<a href="@info.website"><img src="https://github.com/'+'@githubUser'+'.png?size=512" width="100%" title="@githubUser on GitHub"/></a>';
172 </script>
173 }
174
175 <script src="/js/highlighter.js"></script>
176
177 <script>
178 window.addEventListener("load", function() {
179 $(".site-content table").addClass("table");
180 });
181 </script>