Compare commits
2 commits
e12c3518d1
...
778b23ecd4
Author | SHA1 | Date | |
---|---|---|---|
778b23ecd4 | |||
f594004760 |
7 changed files with 10449 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -18,6 +18,3 @@ node_modules
|
||||||
/.env
|
/.env
|
||||||
/_run*
|
/_run*
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
|
|
||||||
# Generated assets
|
|
||||||
/ucast/static/bulma/css
|
|
||||||
|
|
10430
ucast/static/bulma/css/style.css
Normal file
10430
ucast/static/bulma/css/style.css
Normal file
File diff suppressed because it is too large
Load diff
1
ucast/static/bulma/css/style.css.map
Normal file
1
ucast/static/bulma/css/style.css.map
Normal file
File diff suppressed because one or more lines are too long
1
ucast/static/bulma/css/style.min.css
vendored
Normal file
1
ucast/static/bulma/css/style.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
7
ucast/static/ucast/js/clipboard.min.js
vendored
Normal file
7
ucast/static/ucast/js/clipboard.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -2,8 +2,8 @@ const confirmButtons = document.getElementsByClassName("dialog-confirm")
|
||||||
for(let btn of confirmButtons) {
|
for(let btn of confirmButtons) {
|
||||||
btn.addEventListener("click", function(e) {
|
btn.addEventListener("click", function(e) {
|
||||||
const result = window.confirm(btn.getAttribute("confirm-msg"));
|
const result = window.confirm(btn.getAttribute("confirm-msg"));
|
||||||
if (!result) {
|
if(!result) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue