Changeset - 5f0fa94af64b
[Not reviewed]
default
0 2 0
Dennis Fink - 11 years ago 2014-07-13 16:40:32
dennis.fink@c3l.lu
Added dropdown for stats
2 files changed with 15 insertions and 3 deletions:
0 comments (0 inline, 0 general)
ennstatus/__init__.py
Show inline comments
 
@@ -18,13 +18,13 @@ from ennstatus.root.views import root_pa
 
from ennstatus.api.views import api_page
 
from ennstatus.donate.views import donate_page
 
from ennstatus.status.views import status_page
 
#from ennstatus.stats.views import stats_page
 
from ennstatus.stats.views import stats_page
 

	
 
app.register_blueprint(root_page)
 
app.register_blueprint(api_page, url_prefix='/api')
 
app.register_blueprint(donate_page, url_prefix='/donate')
 
app.register_blueprint(status_page, url_prefix='/status')
 
#app.register_blueprint(stats_page, url_prefix='/stats')
 
app.register_blueprint(stats_page, url_prefix='/stats')
 

	
 

	
 
@app.errorhandler(404)
ennstatus/templates/base.html
Show inline comments
 
@@ -79,7 +79,19 @@
 
            <li><a href="{{ url_for('status.about') }}">Ënnstatus About</a></li>
 
          </ul>
 
        </li>
 
     </ul>
 
        <li class="dropdown">
 
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Statistics <b class="caret"></b></a>
 
          <ul class="dropdown-menu">
 
            <li><a href="{{ url_for('stats.index') }}">Statistics</a></li>
 
            <li class="divider"></li>
 
            <li class="dropdown-header">Worldmaps</li>
 
            <li><a href="{{ url_for('stats.worldmap') }}">All nodes</a></li>
 
            <li><a href="{{ url_for('stats.worldmap', server_type='exit') }}">Exit nodes</a></li>
 
            <li><a href="{{ url_for('stats.worldmap', server_type='relay') }}">Relay nodes</a></li>
 
            <li><a href="{{ url_for('stats.worldmap', server_type='bridge') }}">Bridge nodes</a></li>
 
          </ul>
 
        </li>
 
      </ul>
 
    </div>
 
  </div>
 
  {% endblock %}
0 comments (0 inline, 0 general)