Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ async def dashboard(
else []
)
admin_users = _get_user_payloads(db, include_inactive=True) if can_manage_results else []
db_mode = "SQLite" if os.getenv("DATABASE_URL", "sqlite://").startswith("sqlite") else "PostgreSQL"
return render_template(
request=request,
name="dashboard.html",
Expand Down Expand Up @@ -607,6 +608,7 @@ async def dashboard(
"limit": audit_limit,
},
"workspace_copy": _workspace_copy(current_user.role),
"db_mode": db_mode,
},
)

Expand Down
3 changes: 3 additions & 0 deletions web/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ <h1 class="text-3xl font-bold tracking-tight text-on-surface">Stress-Strain Inte
<span class="px-3 py-1 rounded-full border border-outline-variant/20 bg-surface-container text-on-surface-variant">
Management: <strong class="{% if can_manage_results %}text-tertiary-fixed{% else %}text-error{% endif %}">{% if can_manage_results %}admin only{% else %}read only{% endif %}</strong>
</span>
<span class="px-3 py-1 rounded-full border border-outline-variant/20 bg-surface-container text-on-surface-variant">
Database: <strong class="text-tertiary-fixed">{{ db_mode }}</strong>
</span>
</div>
</div>
</section>
Expand Down