Commit bdd1f553 authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed small html syntax errors

parent e0a60a9d
...@@ -5,15 +5,13 @@ ...@@ -5,15 +5,13 @@
{% from 'macros.html' import moderator_editor, moderator_checkbox, moderator_delete %} {% from 'macros.html' import moderator_editor, moderator_checkbox, moderator_delete %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="de">
<head> <head>
{% block header %} {% block header %}
<title>Video AG {% block title %}{% for endpoint, caption, iconlib, gly, visible in navbar if ((visible or ismod()) and (endpoint == request.endpoint)) %}- {{ caption }}{% else%}{% endfor %}{% endblock %}</title> <title>Video AG {% block title %}{% for endpoint, caption, iconlib, gly, visible in navbar if ((visible or ismod()) and (endpoint == request.endpoint)) %}- {{ caption }}{% else%}{% endfor %}{% endblock %}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="icon" type="image/png" href="{{url_for('static', filename='favicon.png')}}"> <link rel="icon" type="image/png" href="{{url_for('static', filename='favicon.png')}}">
<meta http-equiv="content-language" content="de-DE">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{url_for('static', filename='bootstrap/bootstrap.css')}}" rel="stylesheet"> <link href="{{url_for('static', filename='bootstrap/bootstrap.css')}}" rel="stylesheet">
...@@ -73,7 +71,7 @@ ...@@ -73,7 +71,7 @@
<li class="col-xs-12 col-sm-4 pull-right"> <li class="col-xs-12 col-sm-4 pull-right">
<form action="{{ url_for('search') }}" role="search"> <form action="{{ url_for('search') }}" role="search">
<div class="input-group" style="margin-top: 3px"> <div class="input-group" style="margin-top: 3px">
<input class="form-control" type="text" name="q" placeholder="Search" value="{{ searchtext }}" width="100px"> <input class="form-control" type="text" name="q" placeholder="Search" value="{{ searchtext }}">
<span class="input-group-btn"><button class="btn btn-secondary" type="submit"><span class="glyphicon glyphicon-search"></span> </button></span> <span class="input-group-btn"><button class="btn btn-secondary" type="submit"><span class="glyphicon glyphicon-search"></span> </button></span>
</div> </div>
</form> </form>
...@@ -152,6 +150,7 @@ ...@@ -152,6 +150,7 @@
<span>{{ gethostname() }}</span> <span>{{ gethostname() }}</span>
</li> </li>
{% endif %} {% endif %}
</ul>
</div> </div>
</footer> </footer>
{% endblock %} {% endblock %}
...@@ -171,7 +170,6 @@ ...@@ -171,7 +170,6 @@
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
</body>
{% if ismod() %} {% if ismod() %}
<script> <script>
$( function () { $( function () {
...@@ -185,4 +183,5 @@ ...@@ -185,4 +183,5 @@
$('[data-toggle="tooltip"]').tooltip({ 'trigger': 'hover' }); $('[data-toggle="tooltip"]').tooltip({ 'trigger': 'hover' });
}); });
</script> </script>
</body>
</html> </html>
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
{% for item in featured %} {% for item in featured %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h1 class="panel-title"> <span class="panel-title">
{{ moderator_editor(('featured',item.id,'title'), item.title) }} {{ moderator_checkbox(('featured',item.id,'visible'), item.visible) }} {{ moderator_editor(('featured',item.id,'title'), item.title) }} {{ moderator_checkbox(('featured',item.id,'visible'), item.visible) }}
{% if ismod() %} {% if ismod() %}
<div class="btn-group pull-right" role="group"> <span class="btn-group pull-right" role="group">
{% if not loop.first %} {% if not loop.first %}
<a class="btn btn-default" href="{{ url_for('edit', **{'featured.'+item.id|string+'.order': featured[loop.index0-1].order, 'featured.'+featured[loop.index0-1].id|string+'.order': item.order, 'ref': request.url})}}"><span class="glyphicon glyphicon-arrow-up"></span></a> <a class="btn btn-default" href="{{ url_for('edit', **{'featured.'+item.id|string+'.order': featured[loop.index0-1].order, 'featured.'+featured[loop.index0-1].id|string+'.order': item.order, 'ref': request.url})}}"><span class="glyphicon glyphicon-arrow-up"></span></a>
{% else %} {% else %}
...@@ -90,9 +90,9 @@ ...@@ -90,9 +90,9 @@
<button class="btn btn-default disabled"><span class="glyphicon glyphicon-arrow-down"></span></button> <button class="btn btn-default disabled"><span class="glyphicon glyphicon-arrow-down"></span></button>
{% endif %} {% endif %}
{{ moderator_delete(['featured',item.id,'deleted']) }} {{ moderator_delete(['featured',item.id,'deleted']) }}
</div> </span>
{% endif %} {% endif %}
</h1> </span>
</div> </div>
{{ featured_content(item) }} {{ featured_content(item) }}
</div> </div>
...@@ -101,14 +101,14 @@ ...@@ -101,14 +101,14 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h1 class="panel-title">Nächste Aufnahmen</h1"> <h1 class="panel-title">Nächste Aufnahmen</h1>
</div> </div>
{% if upcomming|length > 0 %} {% if upcomming|length > 0 %}
<ul class="list-group"> <ul class="list-group">
{% for g in upcomming|groupby('date') %} {% for g in upcomming|groupby('date') %}
<li class="list-group-item"> <li class="list-group-item">
<strong>{{ g.grouper|date }}</strong>
<ul class="list-group" style="margin: 0px;"> <ul class="list-group" style="margin: 0px;">
<strong>{{ g.grouper|date }}</strong>
{% for i in g.list %} {% for i in g.list %}
<li class="list-group-item list-group-item-condensed"> <li class="list-group-item list-group-item-condensed">
{{i.time|time}} <a href="{{url_for('course', id=i.course_id)}}">{{i.course.title}}</a>: <a href="{{url_for('course', id=i.course_id)}}#lecture-{{i.id}}">{{i.title}}</a> {{i.time|time}} <a href="{{url_for('course', id=i.course_id)}}">{{i.course.title}}</a>: <a href="{{url_for('course', id=i.course_id)}}#lecture-{{i.id}}">{{i.title}}</a>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</div> </div>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h1 class="panel-title">Neueste Videos <a class="fa fa-rss-square pull-right" aria-hidden="true" href="{{url_for('feed')}}" style="text-decoration: none"></a></h1"> <h1 class="panel-title">Neueste Videos <a class="fa fa-rss-square pull-right" aria-hidden="true" href="{{url_for('feed')}}" style="text-decoration: none"></a></h1>
</div> </div>
<ul class="list-group videopreview"> <ul class="list-group videopreview">
{% for i in latestvideos %} {% for i in latestvideos %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment