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
12740a15
Commit
12740a15
authored
8 years ago
by
Andreas Valder
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.fsmpi.rwth-aachen.de:videoagwebsite/videoagwebsite
parents
c148cead
1d9d00ee
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
server.py
+5
-0
5 additions, 0 deletions
server.py
static/style.css
+2
-0
2 additions, 0 deletions
static/style.css
templates/course.html
+3
-3
3 additions, 3 deletions
templates/course.html
templates/macros.html
+6
-6
6 additions, 6 deletions
templates/macros.html
with
16 additions
and
9 deletions
server.py
+
5
−
0
View file @
12740a15
...
@@ -123,6 +123,11 @@ def rfc3339(d):
...
@@ -123,6 +123,11 @@ def rfc3339(d):
def
get_announcements
(
minlevel
=
0
):
def
get_announcements
(
minlevel
=
0
):
return
query
(
'
SELECT * FROM announcements WHERE NOT deleted AND (? OR visible) AND level >= ? ORDER BY level DESC
'
,
ismod
(),
minlevel
)
return
query
(
'
SELECT * FROM announcements WHERE NOT deleted AND (? OR visible) AND level >= ? ORDER BY level DESC
'
,
ismod
(),
minlevel
)
@app.template_filter
()
def
fixnl
(
s
):
# To be remove, as soon as db schema is cleaned-up
return
str
(
s
).
replace
(
'
\n
'
,
'
<br>
'
)
@app.route
(
'
/
'
)
@app.route
(
'
/
'
)
@register_navbar
(
'
Home
'
,
icon
=
'
home
'
)
@register_navbar
(
'
Home
'
,
icon
=
'
home
'
)
def
index
():
def
index
():
...
...
This diff is collapsed.
Click to expand it.
static/style.css
+
2
−
0
View file @
12740a15
...
@@ -4,3 +4,5 @@
...
@@ -4,3 +4,5 @@
@media
(
min-width
:
767px
)
{
@media
(
min-width
:
767px
)
{
.list-group-item-condensed
{
padding-top
:
2px
!important
;
padding-bottom
:
2px
!important
;
}
.list-group-item-condensed
{
padding-top
:
2px
!important
;
padding-bottom
:
2px
!important
;
}
}
}
.table-top-aligned
tr
{
vertical-align
:
top
;
}
This diff is collapsed.
Click to expand it.
templates/course.html
+
3
−
3
View file @
12740a15
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
<h1
class=
"panel-title"
>
{{ valueeditor(['courses',course.id,'title'], course.title)}}
<span
class=
"pull-right"
>
{{ valuedeletebtn(['courses',course.id,'deleted']) }}
</span></h1>
<h1
class=
"panel-title"
>
{{ valueeditor(['courses',course.id,'title'], course.title)}}
<span
class=
"pull-right"
>
{{ valuedeletebtn(['courses',course.id,'deleted']) }}
</span></h1>
</div>
</div>
<div
class=
"row panel-body"
>
<div
class=
"row panel-body"
>
<div
class=
"col-xs-12"
class=
"table-condensed"
>
<div
class=
"col-xs-12"
>
<table>
<table
class=
"table-top-aligned table-condensed"
>
<tbody>
<tbody>
<tr><td>
Semester:
</td><td>
{{ valueeditor(['courses',course.id,'semester'], course.semester) }}
</td></tr>
<tr><td>
Semester:
</td><td>
{{ valueeditor(['courses',course.id,'semester'], course.semester) }}
</td></tr>
<tr><td>
Veranstalter:
</td><td>
{{ valueeditor(['courses',course.id,'organizer'], course.organizer) }}
</td></tr>
<tr><td>
Veranstalter:
</td><td>
{{ valueeditor(['courses',course.id,'organizer'], course.organizer) }}
</td></tr>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</div>
</div>
{% if ismod() %}
{% if ismod() %}
<div
class=
"col-xs-12"
style=
"margin-top: 20px"
>
<div
class=
"col-xs-12"
style=
"margin-top: 20px"
>
<table
class=
"table-condensed"
>
<table
class=
"table-condensed
table-top-aligned
"
>
<tbody>
<tbody>
<tr><td>
Sichtbar:
</td><td>
{{ valuecheckbox(['courses',course.id,'visible'], course.visible) }}
</td></tr>
<tr><td>
Sichtbar:
</td><td>
{{ valuecheckbox(['courses',course.id,'visible'], course.visible) }}
</td></tr>
<tr><td>
Gelistet:
</td><td>
{{ valuecheckbox(['courses',course.id,'listed'], course.listed) }}
</td></tr>
<tr><td>
Gelistet:
</td><td>
{{ valuecheckbox(['courses',course.id,'listed'], course.listed) }}
</td></tr>
...
...
This diff is collapsed.
Click to expand it.
templates/macros.html
+
6
−
6
View file @
12740a15
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
{% endif %}
{% endif %}
</div>
</div>
<div
class=
"col-xs-4"
>
<div
class=
"col-xs-4"
>
<div>
{{ lecture['title'] }}
</div>
<div>
{{ lecture['title']
|fixnl|safe
}}
</div>
<p
style=
"font-style: italic; color: #777;"
>
{{ lecture['comment'] }}
</p>
<p
style=
"font-style: italic; color: #777;"
>
{{ lecture['comment']
|fixnl|safe
}}
</p>
</div>
</div>
</div>
</div>
</a>
</a>
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
</li>
</li>
{% if lecture['speaker'] %}
{% if lecture['speaker'] %}
<li>
<li>
<span
class=
"small"
>
Gehalten von {{ lecture['speaker'] }}
</span>
<span
class=
"small"
>
Gehalten von {{ lecture['speaker']
|safe
}}
</span>
</li>
</li>
{% endif %}
{% endif %}
<li>
<li>
{{ lecture['title'] }}
{{ lecture['title']
|fixnl|safe
}}
</li>
</li>
<li>
<li>
<p
style=
"font-style: italic; color: #777;"
>
{{ lecture['comment'] }}
</p>
<p
style=
"font-style: italic; color: #777;"
>
{{ lecture['comment']
|fixnl|safe
}}
</p>
</li>
</li>
</ul>
</ul>
</a>
</a>
...
@@ -169,7 +169,7 @@ $('#embedcodebtn').popover(
...
@@ -169,7 +169,7 @@ $('#embedcodebtn').popover(
{% if ismod() %}
{% if ismod() %}
<span
class=
"modeditable"
data-path=
"{{path|join('.')}}"
><a
class=
"modeditablesign btn btn-default"
tabindex=
"0"
style=
"padding: 3px; margin-right: 5px;"
><span
class=
"glyphicon glyphicon-pencil"
></span></a><span
class=
"modeditablevalue"
>
{{ value|safe }}
</span></span>
<span
class=
"modeditable"
data-path=
"{{path|join('.')}}"
><a
class=
"modeditablesign btn btn-default"
tabindex=
"0"
style=
"padding: 3px; margin-right: 5px;"
><span
class=
"glyphicon glyphicon-pencil"
></span></a><span
class=
"modeditablevalue"
>
{{ value|safe }}
</span></span>
{% else %}
{% else %}
{{value|safe}}
{{value|
fixnl|
safe}}
{% endif %}
{% endif %}
{% endmacro %}
{% endmacro %}
...
...
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