Verified Commit f5a9caf1 authored by Marcus's avatar Marcus

package: collapsible permission lists

This collapses the permission list for all versions. Having it repeated
for every version of an app is visually quite noisy and most of the time
doesn't add any information the user is interested in.

Instead we make all permission list collapsible and open the one from
the latest version by default.
parent c53247d2
......@@ -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