forked from rc/aircox
Reviewed-on: rc/aircox#40
This commit is contained in:
@ -22,10 +22,11 @@ Usefull context:
|
||||
<link rel="icon" href="{% thumbnail site.favicon 32x32 crop %}" />
|
||||
|
||||
{% block assets %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static "aircox/vendor.css" %}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{% static "aircox/main.css" %}"/>
|
||||
<script src="{% static "aircox/vendor.js" %}"></script>
|
||||
<script src="{% static "aircox/main.js" %}"></script>
|
||||
<link rel="stylesheet" type="text/css" href="{% static "aircox/css/chunk-common.css" %}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{% static "aircox/css/chunk-vendors.css" %}"/>
|
||||
<script src="{% static "aircox/js/chunk-common.js" %}"></script>
|
||||
<script src="{% static "aircox/js/chunk-vendors.js" %}"></script>
|
||||
<script src="{% static "aircox/js/core.js" %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
<title>
|
||||
@ -39,6 +40,13 @@ Usefull context:
|
||||
{% block head_extra %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<script id="init-script">
|
||||
window.addEventListener('load', function() {
|
||||
{% block init-scripts %}
|
||||
aircox.init(null, {hotReload:window})
|
||||
{% endblock %}
|
||||
})
|
||||
</script>
|
||||
<div id="app">
|
||||
<nav class="navbar has-shadow" role="navigation" aria-label="main navigation">
|
||||
<div class="container">
|
||||
@ -112,7 +120,7 @@ Usefull context:
|
||||
{% block main %}
|
||||
{% block content %}
|
||||
{% if page and page.content %}
|
||||
<section class="page-content">{{ page.content|safe }}</section>
|
||||
<section class="page-content mb-2">{{ page.content|safe }}</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock main %}
|
||||
|
18
aircox/templates/aircox/episode_list.html
Normal file
18
aircox/templates/aircox/episode_list.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% extends "aircox/page_list.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block filters %}
|
||||
{{ block.super }}
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label">
|
||||
<label class="label">{% trans "Podcasts" %}</label>
|
||||
</div>
|
||||
<div class="field-body">
|
||||
<div class="checkbox">
|
||||
<input type="checkbox" class="checkbox" name="podcast" value="True"
|
||||
{% if filterset_data.podcast %}checked{% endif %} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -40,7 +40,7 @@ Context:
|
||||
<div class="media box">
|
||||
<div class="media-content">
|
||||
<p>
|
||||
<strong>{{ comment.nickname }}</strong>
|
||||
<strong class="mr-2">{{ comment.nickname }}</strong>
|
||||
<time datetime="{{ comment.date }}" title="{{ comment.date }}">
|
||||
<small>{{ comment.date|naturaltime }}</small>
|
||||
</time>
|
||||
|
@ -40,11 +40,9 @@ The audio player
|
||||
<div class="">[[ live.current.data.info ]]</div>
|
||||
</div>
|
||||
<h4 v-else class="title is-4" aria-description="{% trans "Currently playing" %}">
|
||||
{{ station.name }}
|
||||
{{ request.station.name }}
|
||||
</h4>
|
||||
</template>
|
||||
|
||||
</template>
|
||||
</a-player>
|
||||
</div>
|
||||
|
||||
|
@ -8,7 +8,7 @@ List item for a podcast.
|
||||
{% if object.embed %}
|
||||
{{ object.embed|safe }}
|
||||
{% else %}
|
||||
<audio src="{{ object.url }}" controls>
|
||||
<audio src="{{ object.file.url }}" controls>
|
||||
{% endif %}
|
||||
{% endcomment %}
|
||||
<a-sound-item :data="{{ object|json }}" :player="player"
|
||||
|
Reference in New Issue
Block a user