melpa/html/partials/package.html
2013-08-24 17:17:19 +01:00

40 lines
1.6 KiB
HTML

<h1>{{pkg.name}}
<small>{{pkg.version}}</small>
</h1>
<p class="lead">{{pkg.description}}</p>
<p>
<a href="{{pkg.recipeURL}}" class="btn btn-default"><span class="glyphicon glyphicon-cutlery"> Recipe</a>
<a href="{{pkg.packageURL}}" class="btn btn-default"><span class="glyphicon glyphicon-download"> Download</a>
<a ng-if="pkg.sourceURL" href="{{pkg.sourceURL}}" class="btn btn-default"><span class="glyphicon glyphicon-home"> Homepage</a>
</p>
<section>
<div class="well">
<dl class="dl-horizontal">
<dt>Downloads</dt>
<dd>{{pkg.downloads}} <span class="muted">(all versions)</span></dd>
<dt>Source</dt>
<dd>
<a ng-if="pkg.sourceURL" href="{{pkg.sourceURL}}">{{pkg.source}}</a>
<span ng-if="!pkg.sourceURL">{{pkg.source}}</span>
</dd>
<dt>Dependencies</dt>
<dd><span ng-if="pkg.dependencies.length" ng-repeat="dep in pkg.dependencies">
<a ng-if="havePackage(dep.name)" href="#/{{dep.name}}">{{dep.name}} {{dep.version}}</a>
<span ng-if="!havePackage(dep.name)">{{dep.name}} {{dep.version}}</span>
&nbsp;</span>
<span class="muted" ng-if="!pkg.dependencies.length">-</span>
</dd>
<dt>Needed by</dt>
<dd><span ng-if="reverseDependencies.length" ng-repeat="dep in reverseDependencies | orderBy:'name'">
<a href="#/{{dep.name}}">{{dep.name}}</a>
&nbsp;</span>
<span class="muted" ng-if="reverseDependencies.length == 0">-</span>
</dd>
</dl>
</div>
</section>
<section>
<h4>Description</h4>
<pre>{{readme}}</pre>
</section>