Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Video AG Infrastruktur
website
Commits
db535aca
Commit
db535aca
authored
8 years ago
by
Andreas Valder
Browse files
Options
Downloads
Patches
Plain Diff
changed video preview; added cache to gitignore
parent
c78dfd59
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
server.py
+1
-1
1 addition, 1 deletion
server.py
templates/macros.html
+7
-7
7 additions, 7 deletions
templates/macros.html
with
10 additions
and
8 deletions
.gitignore
+
2
−
0
View file @
db535aca
*.swp
config.py
__pycache__
This diff is collapsed.
Click to expand it.
server.py
+
1
−
1
View file @
db535aca
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
templates/macros.html
+
7
−
7
View file @
db535aca
...
...
@@ -4,16 +4,16 @@
<a
href=
"?view=player&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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment