about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-10-08 15:00:27 +0200
committerThibG <thib@sitedethib.com>2018-10-12 19:06:35 +0200
commit3d5d899094ecf389ce6cf31a6f33dcf1894e662d (patch)
tree14b450da3a3c60646fa771496fea6e94f8b68181 /app/lib
parentfac529975b2b97e4c57393560d3359a98f7b1953 (diff)
Allow selecting both default flavour and theme
Fixes #672
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/themes.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lib/themes.rb b/app/lib/themes.rb
index 55824a5c4..2147904e4 100644
--- a/app/lib/themes.rb
+++ b/app/lib/themes.rb
@@ -80,4 +80,10 @@ class Themes
   def skins_for(name)
     @conf[name]['skin'].keys
   end
+
+  def flavours_and_skins
+    flavours.map do |flavour|
+      [flavour, skins_for(flavour).map{ |skin| [flavour, skin] }]
+    end
+  end
 end