diff options
author | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-08-10 21:14:52 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-08-10 21:14:52 +0000 |
commit | 802a86a276784601e0a952611bfcfb823831608f (patch) | |
tree | 38a45e0a43b2cfd7e757f3dfae49257269443d71 /web/templates/labitrack.d | |
parent | 2a029fb35f22ddf03326ec1f9c6b7ef413c2c293 (diff) | |
download | labitrack-802a86a276784601e0a952611bfcfb823831608f.tar.gz labitrack-802a86a276784601e0a952611bfcfb823831608f.tar.xz labitrack-802a86a276784601e0a952611bfcfb823831608f.zip |
implement search support
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'web/templates/labitrack.d')
-rw-r--r-- | web/templates/labitrack.d/search | 2 | ||||
-rw-r--r-- | web/templates/labitrack.d/searchtable | 15 |
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}} |