blob: 80464e622f252666ab3d5a3f12dfc2be35b52cc7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<div class="flex-container container">
<div>
<div class="global-identifier-search-form">
{{#input-with-autocomplete
onSubmit=(action 'searchIdentifier')
createSearchUrlFunction=createSearchUrlFunction
maxItems=10
selectItem=(action 'showIdentifier')
searchButtonText="Search in all packages"
placeholder="Haskell identifier" as |identifier|}}
<span class="source-code-font">{{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}}</span>
<div class="module-name">
<b>{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}</b>
{{#if identifier.locationInfo.modulePath}}
{{identifier.locationInfo.modulePath}}
{{else}}
{{identifier.locationInfo.moduleName}}
{{/if}}
</div>
{{/input-with-autocomplete}}
</div>
</div>
<div>
<div class="package-search-form">
{{input class="form-control" type="text" value=query placeholder="Package name"}}
<span>Number of packages : {{packages.length}}</span>
</div>
</div>
<div id="packages" class="packages">
<ul>
{{#infinite-list containerElementId="packages" elements=packages perPage=80 as |package|}}
<li>
{{#each package.versions as |version index|}}
{{#link-to 'package' (concat package.name "-" version)}}
{{#if (gt index 0)}}
{{version}}
{{else}}
{{package.name}}-{{version}}
{{/if}}
{{/link-to}}
{{/each}}
</li>
{{/infinite-list}}
</ul>
</div>
</div>
|