From 53052fc2e039525ef63450521105bff960132025 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 7 May 2017 16:18:44 +0200 Subject: [PATCH] Show sample images for generators in menu --- scripts/boxesserver | 35 ++++++++++++++++------------------- static/nothing.png | Bin 0 -> 89 bytes 2 files changed, 16 insertions(+), 19 deletions(-) create mode 100644 static/nothing.png diff --git a/scripts/boxesserver b/scripts/boxesserver index a54690c..872b84d 100755 --- a/scripts/boxesserver +++ b/scripts/boxesserver @@ -220,17 +220,16 @@ class BServer: Boxes.py - """, self.scripts % len(self.groups), """ @@ -253,10 +252,14 @@ Create boxes and more with a laser cutter!

-
+
""" ] for nr, group in enumerate(self.groups): result.append('''

%s

\n
\n
    \n''' % (nr, group.title, nr)) + result.append(""" +
    + +
    """ % (group)) for box in group.generators: name = box.__class__.__name__ if name in ("TrayLayout2", ): @@ -264,19 +267,13 @@ Create boxes and more with a laser cutter! docs = "" if box.__doc__: docs = " - " + box.__doc__ - result.append("""
  • %s%s
  • \n""" % ( - name, name, docs)) + result.append("""
  • %s%s
  • \n""" % ( + group, name, group, name, name, docs)) result.append("
\n
\n") result.append("""
- -

diff --git a/static/nothing.png b/static/nothing.png new file mode 100644 index 0000000000000000000000000000000000000000..56cd9eb9309219771ca16fd3fbbd300365ccc04f GIT binary patch literal 89 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}bl&H|6fVg?3oVGw3ym^DWND9G*U h;uyklJvo7aiGhKYf$@ujJfgQu&X%Q~loCICU@4)_27 literal 0 HcmV?d00001