1
0
Fork 0
mirror of https://github.com/correl/melpa.git synced 2024-12-25 03:00:15 +00:00
melpa/html/partials/list.html

35 lines
1.7 KiB
HTML
Raw Normal View History

2013-08-24 10:06:45 +00:00
<section>
<a name="packages"></a>
<h2>Current List of <span ng-bind="packages.length"></span> Packages
<small ng-show="totalDownloads">(<span ng-bind="totalDownloads"></span> downloads to date)</small>
2013-08-24 10:06:45 +00:00
</h2>
<p>
<input type="text" ng-model="searchTerms" placeholder="Enter filter terms" autofocus>
<span class="muted">&nbsp;<ng-pluralize when="{1: '1 match', 'other': '{} matches'}" count="(packages | filter:packageMatcher(searchTerms)).length"/></span>
</p>
<table id="package-list" class="table table-bordered table-responsive table-hover">
<thead>
<tr class="header">
<th table-sort="orderBy" sort-field="name">Package</th>
<th table-sort="orderBy" sort-field="description">Description</th>
<th table-sort="orderBy" sort-field="version">Version</th>
<th>Recipe</th>
<th table-sort="orderBy" sort-field="fetcher">Source</th>
<th table-sort="orderBy" sort-field="downloads">DLs</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="package in packages | filter:packageMatcher(searchTerms) | orderBy:orderBy">
<td><a href="#/{{package.name}}">{{package.name}}</a></td>
<td><a href="#/{{package.name}}">{{package.description}}</a></td>
<td class="version"><a href="{{package.packageURL}}">{{package.version}} <span class="glyphicon glyphicon-download"></span></a></td>
<td class="recipe"><a href="{{package.recipeURL}}"><span class="glyphicon glyphicon-cutlery"></span></a></td>
<td class="source">
<a ng-if="package.sourceURL" href="{{package.sourceURL}}">{{package.source}}</a>
<span ng-if="!package.sourceURL">{{package.source}}</span>
2013-08-24 10:06:45 +00:00
</td>
<td>{{package.downloads}}</td>
</tr>
</table>
</section>