beautifise

This commit is contained in:
AB
2018-12-06 00:01:02 +03:00
parent ab5c2aeaad
commit cc3f2967d6
3 changed files with 18 additions and 2 deletions

View File

@@ -68,6 +68,22 @@ def conf():
confs=db.get_confs(), confs=db.get_confs(),
totals=totals) totals=totals)
@app.route('/words')
def words():
totals = {
'users': db.get_user_count(),
'words': db.get_word_count(),
'relations': db.get_relations_count(),
'confs': db.get_confs_count()
}
return render_template(
'conf.html',
confs=db.get_confs(),
totals=totals)
@app.route('/overview/conf/<conf_id>') @app.route('/overview/conf/<conf_id>')
def conf_overview(conf_id): def conf_overview(conf_id):

View File

@@ -26,7 +26,7 @@
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
{% endblock %} {% endblock %}
ultradesu 2018 ultradesu 2018 <a href="http://msk.hexor.ru/hexor/libopenanal">git</a>
</body> </body>
</html> </html>

View File

@@ -118,7 +118,7 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Charts</h5> <h5 class="card-title">Charts</h5>
<hr>
<span class="badge {% if 'bar' == plot_type %} badge-primary {% endif %}" id="bar" onclick="plot_type_changer(this.id)">Bars</span> <span class="badge {% if 'bar' == plot_type %} badge-primary {% endif %}" id="bar" onclick="plot_type_changer(this.id)">Bars</span>
<span class="badge {% if 'scatter' == plot_type %} badge-primary {% endif %}" id="scatter" onclick="plot_type_changer(this.id)">Lines</span> <span class="badge {% if 'scatter' == plot_type %} badge-primary {% endif %}" id="scatter" onclick="plot_type_changer(this.id)">Lines</span>
<div id="words_chart"> <div id="words_chart">