From 734afe56b565823b3df314af41212a1f9cf221ab Mon Sep 17 00:00:00 2001 From: Roman Vynar Date: Tue, 14 Aug 2018 15:16:21 +0300 Subject: [PATCH] Improve no data UI messages on empty tables. --- templates/event_log.html | 5 ++++- templates/repositories.html | 12 ++++++++---- templates/tags.html | 5 ++++- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/templates/event_log.html b/templates/event_log.html index 9c4c400..8be1dd5 100644 --- a/templates/event_log.html +++ b/templates/event_log.html @@ -6,7 +6,10 @@ $('#datatable').DataTable({ "pageLength": 10, "order": [[ 4, 'desc' ]], - "stateSave": true + "stateSave": true, + "language": { + "emptyTable": "No events." + } }); }); diff --git a/templates/repositories.html b/templates/repositories.html index 687c403..f76d95f 100644 --- a/templates/repositories.html +++ b/templates/repositories.html @@ -3,10 +3,6 @@ {{block head()}} {{end}} diff --git a/templates/tags.html b/templates/tags.html index 84429a6..e5c4303 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -11,7 +11,10 @@ "stateSave": true, columnDefs: [ { type: 'natural', targets: 0 } - ] + ], + "language": { + "emptyTable": "No tags in this repository." + } }) function populateConfirmation() { $('[data-toggle=confirmation]').confirmation({