display script API on the page

This commit is contained in:
ville rantanen
2018-06-28 22:52:47 +03:00
parent d52ba606ab
commit 84b28ac748
5 changed files with 94 additions and 9 deletions

View File

@@ -50,6 +50,7 @@
{% endif %}
{% endif %}
<li><a href="{{ url_for('download_zip',name=name) }}" title="Download all the files as one ZIP file. Total size of files must be less than {{ g.max_zip_size }} Mb">Download as zip</a>
<li><span id=list_script_toggle onclick="scriptToggle()">Command line info</span>
<li><a href="{{ url_for('logout',name=name) }}">Logout</a>
</div>
</div>
@@ -79,4 +80,14 @@
</tbody>
</table>
</div>
<div id=list_script>
<span id=list_script_toggle class=upper_corner onclick="scriptToggle()">Close X</span>
<div>Command line tools for using the share:</div>
<ul>
{% for entry in script_api %}
<li> {{ entry.doc }} </li>
<div class="code"><span> {{ entry.cmd }} </span></div>
{% endfor %}
</ul>
</div>
{% endblock %}