Browse Source

Use tags instead of categories

master
Dashie der otter 3 years ago
parent
commit
3425fe8d4e
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      controllers/views.py
  2. 2
    2
      templates/view/infos.jinja2

+ 1
- 1
controllers/views.py View File

@@ -11,7 +11,7 @@ bp_views = Blueprint('bp_views', __name__)
@login_required
def view_infos():
c = {
'categories': PartCategory.query.count(),
'tags': Tag.query.count(),
'parts': Part.query.count(),
'parameters': PartParameter.query.count(),
'attachments': PartAttachment.query.count()

+ 2
- 2
templates/view/infos.jinja2 View File

@@ -9,8 +9,8 @@
<td>{{ g.cfg['STOCKAZ_VERSION'] }}</td>
</tr>
<tr>
<td>Categories:</td>
<td>{{ c['categories'] }}</td>
<td>Tags:</td>
<td>{{ c['tags'] }}</td>
</tr>
<tr>
<td>Parts:</td>