{% extends "base.html" %} {% block title %}Inventory — Django-Dolt Demo{% endblock %} {% block nav_inventory %}class="active"{% endblock %} {% block content %}

Products

{% if products %}
{% for product in products %} {% endfor %}
SKU Name Category Price Stock
{{ product.sku }} {{ product.name }} {{ product.category.name }} ${{ product.price }} {{ product.quantity_in_stock }}
{% else %}
No products yet. Run setup_demo or add via admin.
{% endif %}
Working Set
{% if dolt_status %}
{% for item in dolt_status %}
{{ item.table_name }} {{ item.status }}
{% endfor %}
{% if user.is_authenticated %}
{% csrf_token %}
{% endif %} {% else %}

Nothing to commit.

{% endif %}
Recent Commits
{% if dolt_commits %} {% for commit in dolt_commits %}
{{ commit.commit_hash|truncatechars:11 }} {{ commit.message|truncatechars:40 }} {{ commit.date|date:"M d" }}
{% endfor %} {% else %}

No commits yet.

{% endif %}
{% endblock %}