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

changed video preview; added cache to gitignore

parent c78dfd59
*.swp
config.py
__pycache__
......@@ -15,7 +15,7 @@ def query(operation, *params):
@app.route('/')
def index():
return render_template('index.html', latestvideos=query('''
SELECT lectures.*, max(videos.time_updated) AS lastvidtime, courses.downloadable, courses.title AS coursetitle
SELECT lectures.*, max(videos.time_updated) AS lastvidtime, courses.short, courses.downloadable, courses.title AS coursetitle
FROM lectures
LEFT JOIN videos ON (videos.lecture_id = lectures.id)
LEFT JOIN courses on (courses.id = lectures.course_id)
......
......@@ -4,16 +4,16 @@
<a href="?view=player&amp;lectureid={{ lecture['id'] }}#content" title="{{ lecture['coursetitle'] }}">
<img class="col-xs-4" src="https://videoag.fsmpi.rwth-aachen.de/{{ lecture['titlefile'] }}" alt="Vorschaubild">
<div class="col-xs-4">
<span>{{ lecture['coursetitle'] }}</span>
<span>{{ lecture['time'] }}</span>
<p>{{ lecture['title'] }}</p>
</div>
<div class="col-xs-4">
<div class="comment">{{ lecture['comment'] }}</div>
<span style="color: #000;"><strong>{{ lecture['short'] }}</strong></span><br>
<span style="color: #000;">{{ lecture['time'] }}</span>
{% if lecture['speaker'] %}
<div class="comment">Gehalten von {{ lecture['speaker'] }} </div>
<div class="small" style="color: #000;">Gehalten von {{ lecture['speaker'] }} </div>
{% endif %}
</div>
<div class="col-xs-4" style="color: #000;">
<div class="comment" style="color: #000;">{{ lecture['comment'] }}</div>
<p style="font-style: italic; color: #777;">{{ lecture['title'] }}</p>
</div>
</a>
</div>
</li>
......
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