Commit a9400633 authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner

Merge branch 'collapsible_permissions' into 'master'

package: collapsible permission lists

See merge request !197
parents c53247d2 f5a9caf1
Pipeline #18075693 failed with stage
in 18 minutes and 16 seconds
......@@ -151,17 +151,21 @@ https://github.com/untra/polyglot/issues/79 -->
</p>
<div class="package-version-permissions">
<h4>{{ strings.permissions }}</h4>
<ul class="package-version-permissions-list">
{% for permission in package.uses_permission %}
<li>
{{ permission.permission }}
{% if permission.min_sdk %}
({{ permission.min_sdk | android_sdk_level_to_version }})
{% endif %}
</li>
{% endfor %}
</ul>
<details {% if forloop.first %}open{% endif %}>
<summary class="package-version-permissions-summary">
{{ strings.permissions }}
</summary>
<ul class="package-version-permissions-list">
{% for permission in package.uses_permission %}
<li>
{{ permission.permission }}
{% if permission.min_sdk %}
({{ permission.min_sdk | android_sdk_level_to_version }})
{% endif %}
</li>
{% endfor %}
</ul>
</details>
</div>
</li>
......
......@@ -208,6 +208,14 @@ body {
}
}
.package-version {
margin-bottom: 20px;
}
.package-version-permissions-summary {
font-weight: bold;
}
.package-links {
@include reset-ul;
......@@ -649,4 +657,4 @@ a.youtube {
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment