Debian Codegraph @

extra/haxelib_src/www/view/home/homepage.html

raw
1 <div class="section homepage-banner">
2 <div class="jumbotron">
3 <div class="container">
4 <h1>
5 <img src="/img/haxe-logo.svg" class="logo" onerror="this.src='/img/haxe-logo.png'" width="80" height="80" />
6 Haxe Library Manager
7 </h1>
8 <hr/>
9 <form action="/search/" method="GET" class="form-search">
10 <div class="control-group">
11 <div class="controls">
12 <span class="add-on"><i class="icon-envelope"></i></span>
13 <input type="search" name="v" class="input-xxlarge search-query" style="width:75%" placeholder="Search Haxe libraries..." />
14 <input type="submit" class="btn btn-default" value="Search" />
15 </div>
16 </div>
17 </form>
18 <hr/>
19 <p class="lead">
20 <h2>A modular, open-source and cross-platform adventure</h2>
21 Haxelib is the easiest way to find libraries and code for your Haxe project - and the best place you can share your code with others in the Haxe ecosystem.
22 Haxelib is the package manager for the Haxe Toolkit.
23 </p>
24 </div>
25 </div>
26 </div>
27 <div class="section homepage">
28 <div class="container">
29 <div class="btn-toolbar">
30 <a class="btn btn-default btn-large" href="/all/"><i class="fa fa-star"></i> <strong>View all Haxelibs</strong></a>
31 <a class="btn btn-default btn-large" href="/t/"><i class="fa fa-tags"></i> Browse by tag</a>
32 <a class="btn btn-default btn-large" href="/u/"><i class="fa fa-user"></i> Browse by author</a>
33 <a class="btn btn-default btn-large" href="/recent/"><i class="fa fa-paperclip"></i> Recent library updates</a>
34 <a class="btn btn-default btn-large" href="/documentation/">Learn Haxelib</a>
35 </div>
36 <hr/>
37
38 <div class="tags unstyled">
39 @for( t in tags ) {
40 <span class="tag tag-inline"><i class="fa fa-tags"></i> <a href="/t/@t.tag/"><strong>@escape(t.tag)</strong></a>&nbsp;<small>(@t.count)</small></span>
41 }
42 </div>
43 <hr/>
44
45 <h1><i class="fa fa-paperclip"></i> Recently updated</h1>
46 <div class="row popular-libs-list">
47 @for( i in 0...3) {
48 <div class="span4">
49 @for( update in latestProjects(i * 4, 4) ) {
50 @if(update != null) {
51 <p>
52 <strong class="title"><a href="/p/@update.p.name/">@update.p.name</a></strong><br/>
53 <small class="description">
54 @if (update.v.comments !=null && update.v.comments.length>0){<em>@escape(update.v.comments)</em><br />}
55 <a href="/p/@update.p.name/@update.v.name">@update.v.name</a> &nbsp;<span title="@update.v.date">updated @formatDate(update.v.date)</span>
56 </small>
57 </p>
58 }
59 }
60 </div>
61 }
62 </div>
63
64 <a class="btn btn-large" href="/recent/">See <strong>more recent updates</strong></a>
65
66 <hr/>
67
68 <h1><i class="fa fa-star"></i> Popular libraries</h1>
69 <div class="row popular-libs-list">
70 @for( i in 0...3) {
71 <div class="span4">
72 @{var popular = popularProjects(i * 2, 2);}
73 @for (j in 0...popular.length) {
74 @{var p = popular[j];}
75 @if(p != null) {
76 <p>
77 <strong class="title"><a href="/p/@p.name/">@p.name</a></strong><br/> by <a href="/u/@p.author/">@p.author</a><br/>
78 <em class="description">@escape(p.description)</em><br/>
79 <small>
80 <a href="/p/@p.name/@p.version.toSemver()">@p.version.toSemver()</a> &nbsp;<span title="@p.version.date">published @formatDate(p.version.date)</span> <br/>
81 <strong>@p.downloads downloads</strong>
82 </small>
83 <div class="btn-toolbar">
84 <a class="btn btn-default" href="/p/@p.name/"><i class="fa fa-star"></i> View project page</a>
85 </div>
86 </p>
87 @if(j<1){<hr/>}
88 }
89 }
90 </div>
91 }
92 </div>
93
94 <a class="btn btn-large" href="/all/">See <strong>all haxelibs</strong></a>
95 <hr/>
96
97 <h1><i class="fa fa-user"></i> Popular contributors</h1>
98 <br/>
99 <div class="row contributors-list">
100 @for( i in 0...4) {
101 <div class="span3">
102 @for( u in users(i*4, 4) ) {
103 @if (u != null){
104 <p class="user">
105 <img src="//www.gravatar.com/avatar/@(u.emailHash).jpg?s=144" class="img-circle" width="48" height="48" alt="Avatar of @u.user.name" />
106 <strong><a href="/u/@u.user.name/">@u.user.fullname</a></strong><br/><small>(@u.projects.length&nbsp;projects)</small>
107 </p>
108 }
109 }
110 </div>
111 }
112 </div>
113 <a class="btn btn-large" href="/u/">See <strong>all contributors</strong></a>
114
115 <hr/>
116
117 <h4><strong>Many libraries are just one <code>haxelib install</code> away.</strong> This example demonstrates some of <a href="/documentation/using-haxelib/">all haxelib commands</a>.</h4>
118
119 <pre class="example"><code>@exampleCode</code></pre>
120
121 </div>
122 </div>