Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Depictor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Network Health
Depictor
Commits
447f2575
Commit
447f2575
authored
Mar 22, 2018
by
Tom Ritter
Browse files
Options
Downloads
Patches
Plain Diff
Allow searching for flags missing by putting a ! before it.
Closes #24887
parent
825cb582
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
website.py
+9
-4
9 additions, 4 deletions
website.py
with
9 additions
and
4 deletions
website.py
+
9
−
4
View file @
447f2575
...
...
@@ -173,6 +173,10 @@ class WebsiteWriter:
+
"
color:gray;
\n
"
+
"
text-decoration:line-through;
\n
"
+
"
}
\n
"
+
"
.oict {
\n
"
+
"
opacity:0;
\n
"
+
"
font-size:0;
\n
"
+
"
}
\n
"
+
"
.ic {
\n
"
+
"
color:blue;
\n
"
+
"
}
\n
"
...
...
@@ -1183,7 +1187,7 @@ class WebsiteWriter:
+
"
consensus, because there was no majority for the flag or
"
+
"
the flag was invalidated (e.g., Named gets invalidated by Unnamed)</li>
\n
"
+
"
<li><b><span class=
\"
oic
\"
>Only in consensus:</span></b> Flag in consensus, but missing
"
+
"
in a vote of a directory authority voting on this flag</li>
\n
"
+
"
in a vote of a directory authority voting on this flag
.
</li>
\n
"
+
"
</ul>
\n
"
+
"
<br>
\n
"
+
"
<table border=
\"
0
\"
cellpadding=
\"
4
\"
cellspacing=
\"
0
\"
summary=
\"\"
>
\n
"
...
...
@@ -1263,7 +1267,7 @@ class WebsiteWriter:
self
.
site
.
write
(
"
<td>0
"
+
kf
+
"
</td>
\n
"
)
if
dirauth_nickname
in
flagsMissing
and
kf
in
flagsMissing
[
dirauth_nickname
]:
self
.
site
.
write
(
"
<td><span class=
\"
oic
\"
>
"
self
.
site
.
write
(
"
<td><span
class=
\"
oict
\"
>!</span><span
class=
\"
oic
\"
>
"
+
str
(
flagsMissing
[
dirauth_nickname
][
kf
])
+
"
"
+
kf
+
"
</span></td>
\n
"
)
else
:
...
...
@@ -1374,7 +1378,8 @@ class WebsiteWriter:
+
"
consensus, because there was no majority for the flag or
"
+
"
the flag was invalidated (e.g., Named gets invalidated by Unnamed)</li>
\n
"
+
"
<li><b><span class=
\"
oic
\"
>Only in consensus:</span></b> Flag in consensus, but missing
"
+
"
in a vote of a directory authority voting on this flag</li>
\n
"
+
"
in a vote of a directory authority voting on this flag. One can search the page for such flags by
"
+
"
prefacing them with !</li>
\n
"
+
"
<li><b><span class=
\"
ic
\"
>In consensus:</span></b> Flag in consensus</li>
\n
"
+
"
</ul>
\n
"
+
"
<br>
\n
"
)
...
...
@@ -1512,7 +1517,7 @@ class WebsiteWriter:
else
:
self
.
site
.
write
(
"
<span class=
\"
oiv
\"
>
"
+
flag
+
"
</span>
"
)
elif
consensusFlags
and
flag
in
vote
.
known_flags
and
flag
in
consensusFlags
:
self
.
site
.
write
(
"
<span class=
\"
oic
\"
>
"
+
flag
+
"
</span>
"
)
self
.
site
.
write
(
"
<span
class=
\"
oict
\"
>!</span><span
class=
\"
oic
\"
>
"
+
flag
+
"
</span>
"
)
if
vote
.
routers
[
relay_fp
].
measured
>=
0L
:
self
.
site
.
write
(
"
<br />
"
if
flagsWritten
>
0
else
""
)
...
...
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
sign in
to comment