2011-12-16 11:02:24 +01:00
<!doctype html>
2012-02-05 14:30:32 +01:00
< html lang = "en" >
2014-01-28 16:17:28 +01:00
< title > {{config.DOMAIN|capitalize}} looking glass< / title >
2012-02-05 14:30:32 +01:00
< head >
< meta charset = "UTF-8" >
< link rel = stylesheet type = text/css href = "{{ url_for('static', filename='css/bootstrap.min.css') }}" >
< link rel = stylesheet type = text/css href = "{{ url_for('static', filename='css/bootstrap-responsive.min.css') }}" >
< link rel = stylesheet type = text/css href = "{{ url_for('static', filename='css/docs.css') }}" >
2012-08-10 18:36:09 +02:00
< link rel = stylesheet type = text/css href = "{{ url_for('static', filename='css/DT_bootstrap.css') }}" >
2012-02-05 14:30:32 +01:00
< / head >
< body >
< div class = "navbar navbar-fixed-top" >
< div class = "navbar-inner" >
< div class = "container-fluid" >
< a class = "btn btn-navbar" data-toggle = "collapse" data-target = ".nav-collapse" >
2011-12-16 19:05:36 +01:00
2012-02-05 14:30:32 +01:00
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / a >
< a class = "brand" href = "/" > {{config.DOMAIN|capitalize}} / Looking Glass< / a >
< div class = "navbar nav-collapse" >
< ul class = "nav nav-pills" >
< li class = "navbar-text" > Nodes: < / li >
< li class = "hosts" > < a id = "{{all_hosts}}" href = "#" > all< / a > < / li >
2012-01-27 11:32:50 +01:00
2012-02-05 14:30:32 +01:00
{% for host in config.PROXY %}
< li class = "hosts" > < a id = "{{host}}" href = "#" > {{host}}< / a > < / li >
{% endfor %}
2012-01-27 11:32:50 +01:00
2012-02-05 14:30:32 +01:00
< li class = "divider-vertical" > < / li >
2012-01-27 11:32:50 +01:00
2012-02-05 14:30:32 +01:00
< li class = "navbar-text" > Protocols: < / li >
< li class = "proto" > < a id = "ipv4" href = "#" > ipv4< / a > < / li >
< li class = "proto" > < a id = "ipv6" href = "#" > ipv6< / a > < / li >
< li class = "divider-vertical" > < / li >
2011-12-16 11:02:24 +01:00
2012-02-05 14:30:32 +01:00
< li class = "dropdown request_type" >
< a href = "#"
class="dropdown-toggle"
data-toggle="dropdown">
Show protocols
< b class = "caret" > < / b >
< / a >
2011-12-16 12:59:00 +01:00
2012-02-05 14:30:32 +01:00
< ul class = "dropdown-menu" >
{% for id, text in commands %}
< li > < a id = "{{id}}" href = "#" > {{text}}< / a > < / li >
{% endfor %}
< / ul >
< / li >
< form class = "navbar-search pull-left" action = "javascript:;" >
< input type = "text" style = "width:250px;" class = "request_args search-query" placeholder = "..." >
< / form >
< li class = "navbar-text" > < / li >
2012-01-20 00:12:19 +01:00
2012-02-05 14:30:32 +01:00
< / ul >
2012-01-20 00:12:19 +01:00
2012-02-05 14:30:32 +01:00
< p class = "navbar-text pull-right" > < / p >
< / div > <!-- /.nav - collapse -->
< / div >
< / div >
< / div >
< div class = "container-fluid" >
< div class = "row-fluid" >
< div class = "span8" >
2012-10-17 16:17:52 +02:00
{% if warnings %}
< div class = "alert alert-warning" >
{% for warning in warnings %}{{warning}}< br / > {% endfor %}
< / div >
2012-02-05 14:30:32 +01:00
{% endif %}
2012-10-17 16:17:52 +02:00
{% if errors %}
< div class = "alert alert-error" >
{% for error in errors %}{{error}}< br / > {% endfor %}
< / div >
2012-02-05 14:30:32 +01:00
{% endif %}
2012-01-20 00:12:19 +01:00
2012-02-05 14:30:32 +01:00
{% block body %}{% endblock %}
2012-01-20 00:12:19 +01:00
2012-02-05 14:30:32 +01:00
< / div >
< div class = "span4" >
< div class = "well" style = "padding: 8px 0;" >
< ul class = "nav nav-list history" >
< li class = "nav-header" > Request history< / li >
{% for hosts, proto, request_type, request_args in session.history %}
< li { % if loop . first % } class = "active" { % endif % } >
< a href = "/{{ [request_type, hosts, proto]|join(" / " ) } } { % if request_args % } ? q = {{request_args}}{% endif % } " >
{{hosts}}/{{proto}}: {{ commands_dict[request_type]|replace("...", request_args) }}
< / a >
< / li >
{% endfor %}
< / ul >
< / div >
< / div >
< / div >
2011-12-16 19:05:36 +01:00
2012-02-05 14:30:32 +01:00
< div class = "footer" >
2012-02-08 22:05:28 +01:00
< p > bird looking glass, < a href = "https://github.com/sileht/bird-lg/" > source code< / a > under GPL 3.0, powered by < a href = "http://flask.pocoo.org" > Flask< / a > , < a href = "http://jquery.com/" > jQuery< / a > and < a href = "http://twitter.github.com/bootstrap/" > Bootstrap< / a > < / p >
2012-02-05 14:30:32 +01:00
< / div >
2012-01-20 00:12:19 +01:00
2012-02-08 22:05:28 +01:00
< div class = "progress progress-info progress-striped active" style = "position:fixed;bottom:0px;right:10px;display:none;height:10px;width:200px;" >
< div class = "bar" style = "width: 100%;" > < / div >
< / div >
2012-02-05 14:30:32 +01:00
< div class = "modal fade" style = "display:none;" >
< div class = "modal-header" >
< a class = "close" data-dismiss = "modal" > × < / a >
< h3 > Modal header< / h3 >
< / div >
< div class = "modal-body" style = "height: 300px; overflow: auto;" >
< p > One fine body…< / p >
< / div >
< div class = "modal-footer" >
< a href = "#" class = "btn btn-primary" > Close< / a >
< / div >
< / div >
< / div >
< script type = "text/javascript" src = "{{url_for('static', filename = 'js/jquery.js' ) } } " > < / script >
< script type = "text/javascript" src = "{{url_for('static', filename='js/bootstrap.min.js') }}" > < / script >
2012-08-10 18:36:09 +02:00
< script type = "text/javascript" src = "{{url_for('static', filename='js/jquery.dataTables.js') }}" > < / script >
< script type = "text/javascript" src = "{{url_for('static', filename='js/DT_bootstrap.js') }}" > < / script >
2012-02-05 14:30:32 +01:00
< script type = "text/javascript" >
request_type = "{{session.request_type}}";
2012-10-17 16:17:52 +02:00
request_args = "{{session.request_args|safe}}";
2012-02-05 14:30:32 +01:00
hosts = "{{session.hosts}}";
proto = "{{session.proto}}";
history_query = {{session.history|tojson|safe}};
2012-02-08 22:05:28 +01:00
< / script >
< script type = "text/javascript" src = "{{url_for('static', filename='js/lg.js') }}" > < / script >
2012-02-05 14:30:32 +01:00
< / body >
< / html >