This repository has been archived on 2025-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
home-stream/home_stream/templates/browse.html
2025-04-01 21:41:16 +02:00

34 lines
861 B
HTML

<!--
SPDX-FileCopyrightText: 2025 Max Mehl <https://mehl.mx>
SPDX-License-Identifier: GPL-3.0-only
-->
{% extends "base.html" %}
{% block content %}
{% if folders %}
<h2>Folders</h2>
<ul>
{% for name, rel in folders %}
<li><a href="{{ url_for('browse', subpath=rel) }}">{{ name }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if files %}
<h2>Media Files</h2>
<ul class="files">
{% for name, rel in files %}
<li>
{{ name }} —
<a href="{{ url_for('download', filepath=rel) }}" target="_blank"><button>💾 Download</button></a>
<a href="{{ url_for('play', filepath=rel) }}"><button>🎬 Play in browser</button></a>
<button onclick="copyToClipboard('{{ request.url_root }}dl-token/{{ username }}/{{ stream_token }}/{{ rel }}', this)">
▶️ Copy Stream URL
</button>
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}