Steve Purcell 2013-08-25 10:50:15 +01:00
parent 479251acab
commit f76802440d

View file

@ -15,21 +15,21 @@
<dd>{{pkg.downloads}} <span class="muted">(all versions)</span></dd> <dd>{{pkg.downloads}} <span class="muted">(all versions)</span></dd>
<dt>Source</dt> <dt>Source</dt>
<dd> <dd>
<a ng-if="pkg.sourceURL" href="{{pkg.sourceURL}}">{{pkg.source}}</a> <a ng-show="pkg.sourceURL" href="{{pkg.sourceURL}}">{{pkg.source}}</a>
<span ng-if="!pkg.sourceURL">{{pkg.source}}</span> <span ng-show="!pkg.sourceURL">{{pkg.source}}</span>
</dd> </dd>
<dt>Dependencies</dt> <dt>Dependencies</dt>
<dd><span ng-if="pkg.dependencies.length" ng-repeat="dep in pkg.dependencies"> <dd><span ng-show="pkg.dependencies.length > 0" ng-repeat="dep in pkg.dependencies">
<a ng-if="havePackage(dep.name)" href="#/{{dep.name}}">{{dep.name}} {{dep.version}}</a> <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> <span ng-if="!havePackage(dep.name)">{{dep.name}} {{dep.version}}</span>
&nbsp;</span> &nbsp;</span>
<span class="muted" ng-if="!pkg.dependencies.length">-</span> <span class="muted" ng-show="pkg.dependencies.length == 0">-</span>
</dd> </dd>
<dt>Needed by</dt> <dt>Needed by</dt>
<dd><span ng-if="reverseDependencies.length" ng-repeat="dep in reverseDependencies | orderBy:'name'"> <dd><span ng-show="reverseDependencies.length > 0" ng-repeat="dep in reverseDependencies | orderBy:'name'">
<a href="#/{{dep.name}}">{{dep.name}}</a> <a href="#/{{dep.name}}">{{dep.name}}</a>
&nbsp;</span> &nbsp;</span>
<span class="muted" ng-if="reverseDependencies.length == 0">-</span> <span class="muted" ng-show="reverseDependencies.length == 0">-</span>
</dd> </dd>
</dl> </dl>
</div> </div>