Compare commits

...

2 commits

Author SHA1 Message Date
778b23ecd4 add generated styles
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-23 23:54:50 +02:00
f594004760 add clipboard.js 2022-06-23 23:53:44 +02:00
7 changed files with 10449 additions and 6 deletions

3
.gitignore vendored
View file

@ -18,6 +18,3 @@ node_modules
/.env /.env
/_run* /_run*
*.sqlite3 *.sqlite3
# Generated assets
/ucast/static/bulma/css

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

1
ucast/static/bulma/css/style.min.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -5,5 +5,5 @@ for(let btn of confirmButtons) {
if(!result) { if(!result) {
e.preventDefault(); e.preventDefault();
} }
}) });
} }

View file

@ -1,4 +1,5 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block title %}ucast - Channels{% endblock %} {% block title %}ucast - Channels{% endblock %}
@ -54,11 +55,12 @@
</div> </div>
<div class="control is-flex-grow-1"> <div class="control is-flex-grow-1">
<input class="input" type="text" <input class="input" type="text"
id="feedurl-{{ channel.id }}"
value="{{ site_url }}/feed/{{ channel.slug }}?key={{ user.get_feed_key }}" value="{{ site_url }}/feed/{{ channel.slug }}?key={{ user.get_feed_key }}"
readonly> readonly>
</div> </div>
<div class="control"> <div class="control">
<button class="button is-primary"> <button class="button is-primary button-clip" data-clipboard-target="#feedurl-{{ channel.id }}">
<i class="fas fa-copy"></i> <i class="fas fa-copy"></i>
</button> </button>
</div> </div>
@ -67,3 +69,8 @@
</div> </div>
{% endfor %} {% endfor %}
{% endblock content %} {% endblock content %}
{% block javascript %}
<script src="{% static 'ucast/js/clipboard.min.js' %}"></script>
<script>new ClipboardJS('.button-clip');</script>
{% endblock %}