mirror of https://github.com/fmartingr/iosfu.git
Fixed Tabs links if category only have one child
This commit is contained in:
parent
7dd32c88aa
commit
26a5b3e355
|
@ -79,6 +79,7 @@ class Backup(object):
|
|||
"""
|
||||
for required_file in self._required_files:
|
||||
# Check if required files are there
|
||||
# FIXME Sometimes it doesn't work :?
|
||||
if required_file not in self.files:
|
||||
self.valid = False
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
{% for category in categories %}
|
||||
<li class="{% if current.category == category %}active{% endif %} dropdown">
|
||||
{% if categories[category]|length == 1 %}
|
||||
<a href="/{{ category }}/{{ categories[category] }}">{{ categories[category][0].name }}</a>
|
||||
<a href="/{{ category }}/{{ categories[category][0].id }}">{{ categories[category][0].name }}</a>
|
||||
{% else %}
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ category|title }} <i class="caret"></i></a>
|
||||
<ul class="dropdown-menu">
|
||||
|
|
Loading…
Reference in New Issue