home · contact · privacy
More renaming for clarification.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 27 Apr 2025 16:36:15 +0000 (18:36 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 27 Apr 2025 16:36:15 +0000 (18:36 +0200)
src/ledgplom/http.py
src/templates/_base.tmpl

index a57690b551d0b6bac9de82efe01a4a6456a5a196..2eea419af37ea95fb156daa6d51e89b4e70df553 100644 (file)
@@ -106,7 +106,7 @@ class _Handler(PlomHttpHandler):
                 Path('/').joinpath(_PAGENAME_EDIT_STRUCTURED
                                    ).joinpath(self.path_toks[2]))
             return
-        ctx = {'tainted': self.server.ledger.tainted, 'path': self.path}
+        ctx = {'unsaved_changes': self.server.ledger.tainted, 'path': self.path}
         if self.pagename == 'balance':
             self.get_balance(ctx)
         elif self.pagename.startswith(_PREFIX_EDIT):
index 0dc07b15ec65b4fc0ee721b6f3675f86af2f9972..b5d2bf1f39bcdea6493d7f1d9abc43ae2072ff03 100644 (file)
@@ -49,11 +49,11 @@ ledger <a href="/ledger_structured">structured</a>
 / <a href="/ledger_raw">raw</a>
 · <a href="/balance">balance</a>
 ·
-{% if tainted %}
+{% if unsaved_changes %}
     <span class="critical">unsaved changes:
 {% endif %}
 <input type="submit"name="file_load" value="reload" />
-{% if tainted %}
+{% if unsaved_changes %}
     · <input type="submit" name="file_save" value="save">
     &nbsp;</span>
 {% endif %}