blob: 8608621babea254f2e252fb23b4de317806a6a46 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{%- from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context -%}
{{ result_header(result, favicons, image_proxify) -}}
{%- if result.content -%}<p class="content">{{- result.content|safe -}}</p>{%- endif -%}
<div class="attributes">{{- '' -}}
<div class="result_package_name">{{- '' -}}
<span>{{ _('Name') }}:</span>{{- '' -}}
<span><code>{{- result.package_name -}}</code></span>{{- '' -}}
</div>
{%- if result.version -%}
<div class="result_version">{{- '' -}}
<span>{{- _('Version') }}:</span>{{- '' -}}
<span><strong>{{ result.version }}</strong></span>{{- '' -}}
</div>
{%- endif -%}
{%- if result.maintainer -%}
<div class="result_maintainer">{{- '' -}}
<span>{{ _('Maintainer') }}:</span>{{- '' -}}
<span>{{ result.maintainer }}</span>{{- '' -}}
</div>
{%- endif -%}
{%- if result.publishedDate -%}
<div class="result_pubdate">{{- '' -}}
<span>{{ _('Updated at') }}:</span>{{- '' -}}
<span><time datetime="{{ result.pubdate }}">{{ result.publishedDate }}</time></span>{{- '' -}}
</div>
{%- endif -%}
{%- if result.tags -%}
<div class="result_tags">{{- '' -}}
<span>{{ _('Tags') }}:</span>{{- '' -}}
<span>{{ result.tags|join(', ') }}</span>{{- '' -}}
</div>
{%- endif -%}
{%- if result.popularity -%}
<div class="result_popularity">{{- '' -}}
<span>{{ _('Popularity') }}:</span>{{- '' -}}
<span>{{ result.popularity }}</span>{{- '' -}}
</div>
{%- endif -%}
{%- if result.license_name -%}
<div class="result_license">{{- '' -}}
<span>{{- _('License') -}}:</span>
{%- if result.license_url -%}
<span><a href="{{ result.license_url }}" target="_blank">{{ result.license_name }}</a></span>
{%- else -%}
<span>{{ result.license_name }}</span>
{%- endif -%}
</div>
{%- endif -%}
{%- if result.homepage or result.source_code_url or result.links -%}
<div class="result_project">{{- '' -}}
<span>{{ _('Project') }}</span>
<span>{{- '' -}}
{%- if result.homepage -%}
<a href="{{ result.homepage }}" target="_blank">{{ _('Project homepage') }}</a>
{%- endif -%}
{%- if result.homepage and result.source_code_url %} | {% endif -%}
{%- if result.source_code_url -%}
<a href="{{ result.source_code_url }}" target="_blank">{{ _('Source code') }}</a>
{%- endif -%}
{%- if result.links %}
{%- for name, link in result.links.items() -%}
{% if not loop.first or result.homepage or result.source_code_url %} | {% endif %}
<a href="{{ link }}" target="_blank">
{{- _(name) -}}
</a>
{%- endfor -%}
{%- endif -%}
</span>{{- '' -}}
</div>
{%- endif -%}
</div>{{- '' -}}
<div class="break"></div>
{{- result_footer(result) }}
|