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
c180af0f
Commit
c180af0f
authored
8 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Added marker for read-only databases
parent
48c91176
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server.py
+7
-0
7 additions, 0 deletions
server.py
templates/base.html
+3
-0
3 additions, 0 deletions
templates/base.html
with
10 additions
and
0 deletions
server.py
+
7
−
0
View file @
c180af0f
...
...
@@ -647,6 +647,13 @@ def dbstatus():
clusters
[
cluster
].
append
(
host
)
return
render_template
(
'
dbstatus.html
'
,
clusters
=
clusters
,
statuses
=
status
,
vars
=
variables
),
200
@app.template_global
()
def
is_readonly
():
try
:
return
show
(
'
SHOW GLOBAL STATUS LIKE
"
wsrep_ready
"'
)[
'
wsrep_ready
'
]
!=
'
ON
'
except
:
return
True
import
edit
import
feeds
import
importer
...
...
This diff is collapsed.
Click to expand it.
templates/base.html
+
3
−
0
View file @
c180af0f
...
...
@@ -150,6 +150,9 @@
<li
class=
"pull-right"
>
<a
target=
"_blank"
href=
"https://git.fsmpi.rwth-aachen.de/videoagwebsite/videoagwebsite/commit/{{ gitversion.longhash }}"
><span
title=
"{{ gitversion.branch }} {{ gitversion.hash }}: {{ gitversion.msg }}"
data-toggle=
"tooltip"
>
{{ gitversion.hash }}
</span></a>
<span>
{{ gethostname() }}
</span>
{% if is_readonly() %}
<span>
(read-only)
</span>
{% endif %}
</li>
{% endif %}
</ul>
...
...
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