Use collections for spotlight and featured, remove protected tags
This commit is contained in:
@@ -21,10 +21,6 @@
|
||||
{% if tag %}
|
||||
{{ render_field(form.name) }}
|
||||
{% endif %}
|
||||
<div class="form-group my-5">
|
||||
{{ render_checkbox_field(form.is_protected) }}
|
||||
<small class="form-text text-muted">Whether non-Editors can add this tag to packages</small>
|
||||
</div>
|
||||
{{ render_submit_field(form.submit) }}
|
||||
{% if tag %}
|
||||
<a class="ml-5" target="_blank" href="{{ url_for('packages.list_all', tag=tag.name) }}">
|
||||
|
||||
@@ -64,11 +64,9 @@
|
||||
</span>
|
||||
{% endfor %}
|
||||
{% for t in tags[:3] %}
|
||||
{% if t.name != "featured" and t.name != "Spotlight" %}
|
||||
<span class="badge badge-primary" title="{{ t.description or '' }}">
|
||||
{{ t.title }}
|
||||
</span>
|
||||
{% endif %}
|
||||
<span class="badge badge-primary" title="{{ t.description or '' }}">
|
||||
{{ t.title }}
|
||||
</span>
|
||||
{% endfor %}
|
||||
<span class="btn" title="{{ _('Reviews') }}">
|
||||
<i class="fas fa-star-half-alt"></i>
|
||||
|
||||
Reference in New Issue
Block a user