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
Wiki
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
Roman Karwacik
website
Commits
0f2a3cb3
Commit
0f2a3cb3
authored
8 years ago
by
Julian Rother
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.fsmpi.rwth-aachen.de:videoagwebsite/videoagwebsite
parents
9d97872c
6799b488
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
run.py
+1
-1
1 addition, 1 deletion
run.py
server.py
+6
-3
6 additions, 3 deletions
server.py
static/style.css
+7
-0
7 additions, 0 deletions
static/style.css
templates/base.html
+79
-69
79 additions, 69 deletions
templates/base.html
with
93 additions
and
73 deletions
run.py
+
1
−
1
View file @
0f2a3cb3
#!/usr/bin/env python
#!/usr/bin/env python
3
from
server
import
*
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
server.py
+
6
−
3
View file @
0f2a3cb3
...
...
@@ -54,11 +54,14 @@ def mod_required(func):
return
decorator
app
.
jinja_env
.
globals
[
'
navbar
'
]
=
[]
def
register_navbar
(
name
,
icon
=
None
):
# iconlib can be 'bootstrap'
# ( see: http://getbootstrap.com/components/#glyphicons )
# or 'fa'
# ( see: http://fontawesome.io/icons/ )
def
register_navbar
(
name
,
iconlib
=
'
bootstrap
'
,
icon
=
None
):
def
wrapper
(
func
):
endpoint
=
func
.
__name__
app
.
jinja_env
.
globals
[
'
navbar
'
].
append
((
endpoint
,
name
,
icon
,
not
endpoint
in
mod_endpoints
))
app
.
jinja_env
.
globals
[
'
navbar
'
].
append
((
endpoint
,
name
,
iconlib
,
icon
,
not
endpoint
in
mod_endpoints
))
return
func
return
wrapper
...
...
This diff is collapsed.
Click to expand it.
static/style.css
+
7
−
0
View file @
0f2a3cb3
...
...
@@ -8,3 +8,10 @@
.table-top-aligned
tr
{
vertical-align
:
top
;
}
.mejs-controls
label
{
font-weight
:
normal
;
margin-bottom
:
0px
;
}
.mejs-speed-selector
{
top
:
-130px
!important
;
height
:
130px
!important
;
}
.footer
{
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
height
:
30px
;
background-color
:
#f5f5f5
;
}
This diff is collapsed.
Click to expand it.
templates/base.html
+
79
−
69
View file @
0f2a3cb3
...
...
@@ -27,40 +27,43 @@
{% block navbar %}
<nav
class=
"navbar navbar-default navbar-static-top"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"col-xs-1 hidden-xs hidden-sm"
>
<a
href=
"/"
><img
src=
"{{url_for('static', filename='logo.png')}}"
style=
"width: 80px; padding: 5px"
></a>
</div>
<div
class=
"col-xs-12 col-md-11"
>
<div
class=
"row"
>
<ul
class=
"list-inline col-xs-12"
>
<li>
<a
href=
"#"
>
Vampir
</a>
</li>
<li>
<a
href=
"#"
>
Youtube
</a>
</li>
<li>
<a
href=
"#"
>
Fachschaft
</a>
</li>
<li>
<a
href=
"#"
>
Facebook
</a>
</li>
<li>
<a
href=
"#"
>
Twitter
</a>
</li>
</ul>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"/"
style=
"padding: 3px;"
>
<img
alt=
"Brand"
src=
"{{url_for('static', filename='logo.png')}}"
style=
"height: 100%;"
>
</a>
</div>
<div
class=
"row"
>
<div
class=
"col-xs-12 col-sm-8"
>
<ul
class=
"nav nav-pills"
>
{% for endpoint, caption, gly, visible in navbar %}
{% if visible or ismod() %}
<div
class=
"collapse navbar-collapse"
>
<ul
class=
"nav nav-pills"
style=
"margin-top: 5px;"
>
{% for endpoint, caption, gly, iconlib, visible in navbar if visible or ismod() %}
<li
{%
if
endpoint =
=
request.endpoint
%}
class=
"active"
{%
endif
%}
>
<a
href=
"{{ url_for(endpoint) }}"
>
{% if gly != '' %}
<span
class=
"glyphicon glyphicon-{{ gly }}"
></span>
{% endif %}{{ caption }}
</a>
</li>
<a
href=
"{{ url_for(endpoint) }}"
>
{% if gly != '' %}
{% if iconlib == 'bootstrap' %}
<span
aria-hidden=
"true"
class=
"glyphicon glyphicon-{{ gly }}"
></span>
{% elif iconlib == 'fa' %}
<span
aria-hidden=
"true"
class=
"fa fa-{{ gly }}"
></span>
{% endif %}
{{ caption }}
{% endif %}
</a>
</li>
{% endfor %}
<li
class=
"col-xs-12 col-sm-4 pull-right"
>
<form
action=
"{{ url_for('search') }}"
role=
"search"
>
<div
class=
"input-group"
>
<input
class=
"form-control"
type=
"text"
name=
"q"
placeholder=
"Search"
value=
"{{ searchtext }}"
width=
"100px"
>
<span
class=
"input-group-btn"
><button
class=
"btn btn-secondary"
type=
"submit"
><span
class=
"glyphicon glyphicon-search"
></span>
</button></span>
</div>
</form>
</li>
<li
class=
"navbar-right"
>
{% if not ismod() %}
<a
id=
"loginpopover"
data-container=
"body"
data-toggle=
"popover"
data-placement=
"bottom"
>
...
...
@@ -84,23 +87,10 @@
</li>
</ul>
</div>
<div
class=
"col-xs-12 col-sm-4"
>
<form
action=
"{{ url_for('search') }}"
>
<div
class=
"input-group"
>
<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>
</div>
</form>
</div>
</div>
<div
class=
"row"
>
</div>
</div>
</div>
</div>
</nav>
{% endblock %}
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
style=
"margin-bottom: 30px;"
>
<div
class=
"row"
>
{% if page_border == 0 %}
<div
class=
"col-xs-12"
>
...
...
@@ -133,5 +123,25 @@
</div>
</div>
</div>
<footer
class=
"footer"
>
<div
class=
"container-fluid"
>
<ul
class=
"list-inline col-xs-12"
>
<li>
<a
href=
"#"
>
Vampir
</a>
</li>
<li>
<a
href=
"#"
>
Youtube
</a>
</li>
<li>
<a
href=
"#"
>
Fachschaft
</a>
</li>
<li>
<a
href=
"#"
>
Facebook
</a>
</li>
<li>
<a
href=
"#"
>
Twitter
</a>
</li>
</div>
</footer>
</body>
</html>
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