mirror of https://github.com/realaravinth/gitpad
fix: multi-file gist styling
parent
5bdbdaf267
commit
2bd3b38869
|
@ -18,18 +18,15 @@
|
|||
{% for payload_file in payload.gist.files %}
|
||||
|
||||
<div class="gist_file">
|
||||
{% if "file" in payload_file.content %}
|
||||
{% include "gist_filename" %}
|
||||
{% include "gist_textfile" %}
|
||||
{% elif "dir" in payload_file.content %}
|
||||
{% for payload_file in payload_file.content.dir %}
|
||||
{% include "gist_filename" %}
|
||||
{% if "file" in payload_file.content %}
|
||||
{% include "gist_textfile" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if "dir" in payload_file.content %}
|
||||
{% for payload_file in payload_file.content.dir %}
|
||||
<div class="gist_file">
|
||||
{% include "gist_filename" %}
|
||||
{% include "gist_textfile" %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue