Compare commits
No commits in common. "778b23ecd404808e45e5fe88c45e815c60794a5f" and "e12c3518d10b0aece7563667d7c8948da5ab9ac2" have entirely different histories.
778b23ecd4
...
e12c3518d1
7 changed files with 6 additions and 10449 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -18,3 +18,6 @@ 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
1
ucast/static/bulma/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
7
ucast/static/ucast/js/clipboard.min.js
vendored
7
ucast/static/ucast/js/clipboard.min.js
vendored
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,5 +1,4 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block title %}ucast - Channels{% endblock %}
|
{% block title %}ucast - Channels{% endblock %}
|
||||||
|
|
||||||
|
@ -55,12 +54,11 @@
|
||||||
</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-clip" data-clipboard-target="#feedurl-{{ channel.id }}">
|
<button class="button is-primary">
|
||||||
<i class="fas fa-copy"></i>
|
<i class="fas fa-copy"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,8 +67,3 @@
|
||||||
</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