summaryrefslogtreecommitdiffstats
path: root/web/templates/labitrack.d
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/labitrack.d')
-rw-r--r--web/templates/labitrack.d/search2
-rw-r--r--web/templates/labitrack.d/searchtable15
2 files changed, 17 insertions, 0 deletions
diff --git a/web/templates/labitrack.d/search b/web/templates/labitrack.d/search
new file mode 100644
index 0000000..c811a31
--- /dev/null
+++ b/web/templates/labitrack.d/search
@@ -0,0 +1,2 @@
+<div class="hide tmplheader">Search</div>
+<div id="objecttable_ph"/>
diff --git a/web/templates/labitrack.d/searchtable b/web/templates/labitrack.d/searchtable
new file mode 100644
index 0000000..bfba433
--- /dev/null
+++ b/web/templates/labitrack.d/searchtable
@@ -0,0 +1,15 @@
+{{#if meta.count}}
+ <p>Found <strong>{{meta.count}}</strong> results for »<strong>{{meta.query}}</strong>«</p>
+ {{objecttable}}
+{{else}}
+ {{#if meta.query}}
+ <div class="alert alert-info">
+ No results for »<strong>{{meta.query}}</strong>«
+ </div>
+ {{else}}
+ <div class="alert alert-notice">
+ <strong>Use the search box!</strong>
+ It is the located in the top right corner.
+ </div>
+ {{/if}}
+{{/if}}