Browse Source

Show "Never" by default if no last-modified date

Patrik Kernstock 2 weeks ago
parent
commit
ff43799763
2 changed files with 3 additions and 3 deletions
  1. 2 2
      data/web/templates/edit/domain.twig
  2. 1 1
      data/web/templates/edit/mailbox.twig

+ 2 - 2
data/web/templates/edit/domain.twig

@@ -147,7 +147,7 @@
                   <div class="row">
                   <div class="row">
                     <div class="offset-sm-2 col-sm-10">
                     <div class="offset-sm-2 col-sm-10">
                       <small class="fst-italic d-block">{{ lang.edit.created_on }}: {{ result.created }}</small>
                       <small class="fst-italic d-block">{{ lang.edit.created_on }}: {{ result.created }}</small>
-                      <small class="fst-italic d-block">{{ lang.edit.last_modified }}: {{ result.modified }}</small>
+                      <small class="fst-italic d-block">{{ lang.edit.last_modified }}: {{ result.modified|default(lang.user.never) }}</small>
                     </div>
                     </div>
                   </div>
                   </div>
                 </form>
                 </form>
@@ -293,7 +293,7 @@
                   <input type="hidden" value="0" name="active">
                   <input type="hidden" value="0" name="active">
                   <input type="hidden" value="{{ domain }}" name="domain">
                   <input type="hidden" value="{{ domain }}" name="domain">
                   <div class="row mb-2">
                   <div class="row mb-2">
-                    <label class="control-label col-sm-2" for="version"> 
+                    <label class="control-label col-sm-2" for="version">
                       <i style="font-size: 16px; cursor: pointer;" class="bi bi-patch-question-fill m-2 ms-0" data-bs-toggle="tooltip" data-bs-html="true" data-bs-placement="bottom" title="{{ lang.edit.mta_sts_version_info|raw }}"></i>
                       <i style="font-size: 16px; cursor: pointer;" class="bi bi-patch-question-fill m-2 ms-0" data-bs-toggle="tooltip" data-bs-html="true" data-bs-placement="bottom" title="{{ lang.edit.mta_sts_version_info|raw }}"></i>
                       {{ lang.edit.mta_sts_version }}
                       {{ lang.edit.mta_sts_version }}
                     </label>
                     </label>

+ 1 - 1
data/web/templates/edit/mailbox.twig

@@ -325,7 +325,7 @@
                   <div class="row">
                   <div class="row">
                     <div class="offset-sm-2 col-sm-10">
                     <div class="offset-sm-2 col-sm-10">
                       <small class="fst-italic d-block">{{ lang.edit.created_on }}: {{ result.created }}</small>
                       <small class="fst-italic d-block">{{ lang.edit.created_on }}: {{ result.created }}</small>
-                      <small class="fst-italic d-block">{{ lang.edit.last_modified }}: {{ result.modified }}</small>
+                      <small class="fst-italic d-block">{{ lang.edit.last_modified }}: {{ result.modified|default(lang.user.never) }}</small>
                     </div>
                     </div>
                   </div>
                   </div>
                 </form>
                 </form>