Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
Jannik Hellenkamp
website
Commits
2a7dc3bf
Commit
2a7dc3bf
authored
Aug 31, 2016
by
Andreas Valder
Browse files
started changelog
parent
235aaecc
Changes
2
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
2a7dc3bf
...
...
@@ -249,3 +249,9 @@ def schedule():
@
mod_required
def
stats
():
return
render_template
(
'stats.html'
)
@
app
.
route
(
'/log'
)
@
register_navbar
(
'Changelog'
,
'book'
)
@
mod_required
def
log
():
return
render_template
(
'log.html'
,
changelog
=
query
(
'SELECT * FROM changelog ORDER BY "when" LIMIT 10'
))
templates/log.html
0 → 100644
View file @
2a7dc3bf
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% block content %}
<div
class=
"panel-group"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h1
class=
"panel-title"
>
Changelog
</h1>
</div>
<table
class=
"table"
>
<tr>
<th>
Zeit
</th>
<th>
Wer
</th>
<th>
Pfad
</th>
<th>
alter Wert
</th>
<th>
neuer Wert
</th>
<th></th>
</tr>
{% for i in changelog %}
<tr>
<td>
{{i.when}}
</td>
<td>
{{i.who}}
</td>
<td>
{{i.path}}
</td>
<td>
"{{i.value_old}}"
</td>
<td>
"{{i.value_new}}"
</td>
<td><a
class=
"btn btn-default"
>
undo
</button></td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock %}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment