Skip to content

Commit

Permalink
display planned cables with a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ixty committed Nov 1, 2018
1 parent 52e5f95 commit af5bf95
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 9 deletions.
6 changes: 6 additions & 0 deletions html/tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@
<div class="">
<a href="/cable/{{ c['id'] }}">
<i class="flaticon-pipe1" style="color: black;"></i>
{% if not c['ready'] %}
<del>
{% endif %}
{{ '(%d) %s' % (c['landings']|length, c['name']) }}
{% if not c['ready'] %}
</del>
{% endif %}
</a>
</div>
{% endmacro %}
Expand Down
6 changes: 6 additions & 0 deletions html/view_cable.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ <h3>

<ul class="list-group">

{% if not cable['ready'] %}
<li class="list-group-item d-flex justify-content-between align-items-center">
Status
<span class="badge badge-danger badge-pill">Not Yet Active</span>
</li>
{% endif %}

{% if cable['url']|length > 0 %}
<li class="list-group-item">
Expand Down
3 changes: 2 additions & 1 deletion pwui/pwui.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
db = json.load(f)

# options
cache_enabled = not debug
# cache_enabled = not debug
cache_enabled = False

# init flask app
print('> starting web server on %s:%d' % (addr, port))
Expand Down
5 changes: 4 additions & 1 deletion wnm/wnm_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def bgp_download_all():
def bgp_load(path):
pop = Popen([path_bin_bgpdump, '-m', path], stdout=PIPE, stderr=PIPE)
data = pop.stdout.read()
pop.kill()
try:
pop.kill()
except:
pass
return data

def bgp_build(asl, ix):
Expand Down
Loading

0 comments on commit af5bf95

Please sign in to comment.