| 1 |
<h1><i class="fa fa-search"></i> @title</h1> |
| 2 |
<p class="lead">@description</p> |
| 3 |
|
| 4 |
<center class="well"> |
| 5 |
<form action="/search/" method="GET" class="form-search"> |
| 6 |
<div class="control-group"> |
| 7 |
<div class="controls"> |
| 8 |
<span class="add-on"><i class="icon-envelope"></i></span> |
| 9 |
<input type="search" name="v" class="input-xxlarge search-query" style="width:75%" placeholder="Search Haxe libraries..." /> |
| 10 |
<input type="submit" class="btn btn-default" value="Search" /> |
| 11 |
</div> |
| 12 |
</div> |
| 13 |
</form> |
| 14 |
</center> |
| 15 |
|
| 16 |
@if (projects!=null && projects.length>0) { |
| 17 |
<table class="table table-compact table-hover"> |
| 18 |
<thead> |
| 19 |
<tr> |
| 20 |
<th>Project</th> |
| 21 |
<th>Description</th> |
| 22 |
<th>Version</th> |
| 23 |
<th>Downloads</th> |
| 24 |
</tr> |
| 25 |
</thead> |
| 26 |
<tbody> |
| 27 |
@for (p in projects) { |
| 28 |
<tr> |
| 29 |
<th> |
| 30 |
<a href="/p/@p.name/">@p.name</a> |
| 31 |
<br/><small>(By <a href="/u/@p.author/">@@@p.author</a>)</small> |
| 32 |
</th> |
| 33 |
<td>@p.description</td> |
| 34 |
<td>@p.version.name<br/><small title="@p.version.date">@formatDate(p.version.date)</small></td> |
| 35 |
<td>@p.downloads</td> |
| 36 |
</tr> |
| 37 |
} |
| 38 |
</tbody> |
| 39 |
</table> |
| 40 |
|
| 41 |
} |
| 42 |
else if (projects!=null && projects.length==0) { |
| 43 |
<p class="alert alert-warning">No search results found.</p> |
| 44 |
} |
| 45 |
|
| 46 |
<br/> |
| 47 |
<p class="alert alert-info"> |
| 48 |
<a href="https://www.google.com/search?q=site:lib.haxe.org @searchTerm"> |
| 49 |
<strong>Not found what you are looking for?</strong> |
| 50 |
Search Haxelib for "@searchTerm" using Google instead. |
| 51 |
</a> |
| 52 |
</p> |
| 53 |
<br/> |
| 54 |
|
| 55 |
@if (projects!=null && projects.length==0) { |
| 56 |
<p style="height:200px;"> </p> |
| 57 |
} |