From 5e54ba7aa27b95d1e0568693915e735ab8058ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Thu, 28 Jun 2012 19:49:45 +0000 Subject: Initial version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- web/templates/.gitignore | 1 + web/templates/Makefile | 24 +++++++++++++++ web/templates/labitrack.d/about | 52 ++++++++++++++++++++++++++++++++ web/templates/labitrack.d/ancientbrowser | 15 +++++++++ web/templates/labitrack.d/browse | 2 ++ web/templates/labitrack.d/create | 2 ++ web/templates/labitrack.d/edit | 2 ++ web/templates/labitrack.d/hello_world | 6 ++++ web/templates/labitrack.d/identify | 8 +++++ web/templates/labitrack.d/labelform | 38 +++++++++++++++++++++++ web/templates/labitrack.d/notfound | 8 +++++ web/templates/labitrack.d/objecttable | 22 ++++++++++++++ web/templates/labitrack.d/pagination | 18 +++++++++++ web/templates/labitrack.d/recent | 2 ++ web/templates/labitrack.d/view | 9 ++++++ 15 files changed, 209 insertions(+) create mode 100644 web/templates/.gitignore create mode 100644 web/templates/Makefile create mode 100644 web/templates/labitrack.d/about create mode 100644 web/templates/labitrack.d/ancientbrowser create mode 100644 web/templates/labitrack.d/browse create mode 100644 web/templates/labitrack.d/create create mode 100644 web/templates/labitrack.d/edit create mode 100644 web/templates/labitrack.d/hello_world create mode 100644 web/templates/labitrack.d/identify create mode 100644 web/templates/labitrack.d/labelform create mode 100644 web/templates/labitrack.d/notfound create mode 100644 web/templates/labitrack.d/objecttable create mode 100644 web/templates/labitrack.d/pagination create mode 100644 web/templates/labitrack.d/recent create mode 100644 web/templates/labitrack.d/view (limited to 'web/templates') diff --git a/web/templates/.gitignore b/web/templates/.gitignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/web/templates/.gitignore @@ -0,0 +1 @@ +dist diff --git a/web/templates/Makefile b/web/templates/Makefile new file mode 100644 index 0000000..339a911 --- /dev/null +++ b/web/templates/Makefile @@ -0,0 +1,24 @@ +DIRS=$(wildcard *.d) +FILEEXT= +SRCTARGETS=$(patsubst %.d,dist/%.src.js,$(DIRS)) +MINTARGETS=$(patsubst %.d,dist/%.min.js,$(DIRS)) + +depend=$(shell sh -c 'ls $$(echo $1 | cut -d/ -f2 | cut -d. -f1).d/*$(FILEEXT)') + +.PHONY: all mkdist +all: $(MINTARGETS) +clean: + rm -f $(SRCTARGETS) + rm -f $(MINTARGETS) +mkdist: + @@mkdir -p dist + +.SECONDEXPANSION: +$(SRCTARGETS): $$(call depend,$$@) | mkdist + date + handlebars --output $@ $^ + +.SECONDEXPANSION: +$(MINTARGETS): $$(patsubst %.min.js,%.src.js,$$@) + date + uglifyjs $^ > $@ diff --git a/web/templates/labitrack.d/about b/web/templates/labitrack.d/about new file mode 100644 index 0000000..58ef4d6 --- /dev/null +++ b/web/templates/labitrack.d/about @@ -0,0 +1,52 @@ +
About Labitrack
+

+Glued togther with the following compoments by Asbjørn Sloth Tønnesen in Labitat. +

+ +
+ Client side: + +
+
+ Server side (mainly): + +
+ +

Source

+

The source code is available at the following locations: +

+

+ +

License

+

This work is licensed under the terms of the GNU General Public License (GPL) v3 or later.

+ +
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see http://www.gnu.org/licenses/.
+
+ +

Original version

+

The original implementation of Labitrack was made by Panton and Halfd, with TK, Python, Pyx, SQLite, LaTeX and Brothers proprietary driver.

diff --git a/web/templates/labitrack.d/ancientbrowser b/web/templates/labitrack.d/ancientbrowser new file mode 100644 index 0000000..cdaced3 --- /dev/null +++ b/web/templates/labitrack.d/ancientbrowser @@ -0,0 +1,15 @@ +
HTML5 rocks
+
+

You are using an unsupported browser

+

Labitrack requires a fairly modern browser, because it relies on being able to render the labels in your browser.

+
    +
  • + Canvas support, including support for: +
      +
    • drawing text
    • +
    • toDataURL (getting the data of the canvas)
    • +
    +
  • +
  • Web fonts
  • +
+
diff --git a/web/templates/labitrack.d/browse b/web/templates/labitrack.d/browse new file mode 100644 index 0000000..b38b169 --- /dev/null +++ b/web/templates/labitrack.d/browse @@ -0,0 +1,2 @@ +
Browse
+
diff --git a/web/templates/labitrack.d/create b/web/templates/labitrack.d/create new file mode 100644 index 0000000..ee5b1fe --- /dev/null +++ b/web/templates/labitrack.d/create @@ -0,0 +1,2 @@ +
Create new tracking label
+{{labelform}} diff --git a/web/templates/labitrack.d/edit b/web/templates/labitrack.d/edit new file mode 100644 index 0000000..be6e11d --- /dev/null +++ b/web/templates/labitrack.d/edit @@ -0,0 +1,2 @@ +
Edit label #{{id}}
+{{labelform}} diff --git a/web/templates/labitrack.d/hello_world b/web/templates/labitrack.d/hello_world new file mode 100644 index 0000000..22bc008 --- /dev/null +++ b/web/templates/labitrack.d/hello_world @@ -0,0 +1,6 @@ +
+

{{title}}

+
+ {{body}} +
+
diff --git a/web/templates/labitrack.d/identify b/web/templates/labitrack.d/identify new file mode 100644 index 0000000..94ea05b --- /dev/null +++ b/web/templates/labitrack.d/identify @@ -0,0 +1,8 @@ +
{{page}}
+

+ I am {{page}} sfdsfas +

+

diff --git a/web/templates/labitrack.d/labelform b/web/templates/labitrack.d/labelform new file mode 100644 index 0000000..b135e9a --- /dev/null +++ b/web/templates/labitrack.d/labelform @@ -0,0 +1,38 @@ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
    + {{#each tags}} +
  • + +
  • + {{/each}} +
+
+
+
+   +
+
+
+ +

Low-res preview (rendered in some ms)

+ + diff --git a/web/templates/labitrack.d/notfound b/web/templates/labitrack.d/notfound new file mode 100644 index 0000000..db23ebe --- /dev/null +++ b/web/templates/labitrack.d/notfound @@ -0,0 +1,8 @@ +
{{action}} label #{{id}}
+

Failed

+

+ There was a problem loading the label data from the server. +

+

+ Status code returned by the server: {{status}} +

diff --git a/web/templates/labitrack.d/objecttable b/web/templates/labitrack.d/objecttable new file mode 100644 index 0000000..13b6dee --- /dev/null +++ b/web/templates/labitrack.d/objecttable @@ -0,0 +1,22 @@ +{{pagination}} + + + + + + + + + + + + {{#each rows}} + + + + + + + {{/each}} + +
#NameDescriptionTags 
{{id}}{{name}}{{desc}}{{tags}}
diff --git a/web/templates/labitrack.d/pagination b/web/templates/labitrack.d/pagination new file mode 100644 index 0000000..95df273 --- /dev/null +++ b/web/templates/labitrack.d/pagination @@ -0,0 +1,18 @@ + diff --git a/web/templates/labitrack.d/recent b/web/templates/labitrack.d/recent new file mode 100644 index 0000000..9734a54 --- /dev/null +++ b/web/templates/labitrack.d/recent @@ -0,0 +1,2 @@ +
Recent changes
+
diff --git a/web/templates/labitrack.d/view b/web/templates/labitrack.d/view new file mode 100644 index 0000000..77b11d9 --- /dev/null +++ b/web/templates/labitrack.d/view @@ -0,0 +1,9 @@ +
View label #{{id}}
+

+ +

+
+ Wiki + Edit + Print +
-- cgit v1.2.1