mirror of
https://github.com/ChronosX88/medved.git
synced 2024-11-21 22:22:19 +00:00
Fix gopher template
This commit is contained in:
parent
999c644869
commit
c88a972177
@ -1,11 +1,15 @@
|
|||||||
gopher://{{data['ip']}}/
|
gopher://{{data['ip']}}/
|
||||||
Dirs:
|
Dirs:
|
||||||
{% for dir in [f for f in self._host['data']['files'] if f['type'] == '1'] -%}
|
{% for node in data['files'] -%}
|
||||||
+ {{dir['path']}}
|
{% if node['type'] == '1' -%}
|
||||||
|
+ {{node['path']}}
|
||||||
|
{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
Other nodes:
|
Other nodes:
|
||||||
{% for file in [f for f in self._host['data']['files'] if f['type'] != '1' and f['type'] != 'i'] -%}
|
{% for node in data['files'] -%}
|
||||||
+ {{file['path']}}
|
{% if node['type'] != '1' and node['type'] != 'i' -%}
|
||||||
{{file['name']}}
|
+ {{node['path']}}
|
||||||
|
{{node['name']}}
|
||||||
|
{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
Geo: {{data['geo']['country']}}/{{data['geo']['city']}}
|
Geo: {{data['geo']['country']}}/{{data['geo']['city']}}
|
Loading…
Reference in New Issue
Block a user