diff --git a/app/autofill/view.py b/app/autofill/view.py index a23043e..f9ad59a 100644 --- a/app/autofill/view.py +++ b/app/autofill/view.py @@ -13,10 +13,16 @@ from pyfastocloud_models.utils.utils import is_valid_http_url class M3uParseView(FlaskView): route_base = '/m3uparse/' + @login_required def show(self): m3u = M3uParse.objects() return render_template('autofill/show.html', m3u=m3u) + @login_required + def show_anonim(self): + m3u = M3uParse.objects() + return render_template('autofill/show_anonim.html', m3u=m3u) + @route('/search/', methods=['GET']) def search(self, sid): lines = M3uParse.objects(id=sid) diff --git a/app/templates/autofill/show_anonim.html b/app/templates/autofill/show_anonim.html new file mode 100644 index 0000000..bf7f64b --- /dev/null +++ b/app/templates/autofill/show_anonim.html @@ -0,0 +1,70 @@ +{% extends 'layouts/layout_user.html' %} +{% from 'bootstrap/wtf.html' import form_field %} + +{% block title %} +M3U | {{ config['PUBLIC_CONFIG'].site.title }} +{% endblock %} +{% block styles %} + +{{super()}} +{% endblock %} +{% block content %} +
+
+

+ +
Version: {{ config['PUBLIC_CONFIG'].project.version }}
+

+
+
+
+
+
+ + + + + + + + + + {% for line in m3u %} + + + + + + {% endfor %} + +
#NameActions
{{ loop.index }}{{ line.name }} + + Show + +
+
+
+
+
+
+{% endblock %} + +{% block scripts %} +{{ super() }} +{% endblock %} diff --git a/app/templates/index.html b/app/templates/index.html index cc71fa7..8554d7a 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -20,7 +20,7 @@ Sign Up
- Meta + Meta