From 2b658ce6a00dc4f20ea77a50b8cca61f56629a71 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 8 Oct 2014 16:14:24 -0400 Subject: templates-list --- public/assets/javascripts/ui/site/LayoutsModal.js | 3 ++- public/assets/stylesheets/app.css | 8 ++++---- views/projects/layouts-modal.ejs | 6 ++++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/public/assets/javascripts/ui/site/LayoutsModal.js b/public/assets/javascripts/ui/site/LayoutsModal.js index ef6a36c..24b65e3 100644 --- a/public/assets/javascripts/ui/site/LayoutsModal.js +++ b/public/assets/javascripts/ui/site/LayoutsModal.js @@ -3,6 +3,7 @@ var LayoutsIndex = View.extend({ initialize: function(){ this.$templates = this.$(".templates") + this.$templatesList = this.$(".templates-list") this.$noTemplates = this.$(".no-templates") this.$form = this.$("form") }, @@ -19,7 +20,7 @@ var LayoutsIndex = View.extend({ this.$form.hide() this.$noTemplates.show() } - this.$templates.children("span").remove() + this.$templatesList.empty() data.forEach(function(room){ var $span = $("") $span.data("slug", room.slug) diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css index a8f8e51..0fd0954 100755 --- a/public/assets/stylesheets/app.css +++ b/public/assets/stylesheets/app.css @@ -378,12 +378,12 @@ iframe.embed { .room .images[data-mediacount='1'] img:nth-child(1) { left: 20%; top: 20%; } -.room .images[data-mediacount='2'] img:nth-child(1) { left: 51%; bottom: 0%; width: auto; height: 30%; } -.room .images[data-mediacount='2'] img:nth-child(2) { right: 51%; bottom: 0%; width: auto; height: 30%; } +.room .images[data-mediacount='2'] img:nth-child(1) { left: 51%; bottom: 0%; width: auto; height: 40%; } +.room .images[data-mediacount='2'] img:nth-child(2) { right: 51%; bottom: 50%; width: auto; height: 40%; } .room .images[data-mediacount='3'] img:nth-child(1) { right: 51%; bottom: 41%; } -.room .images[data-mediacount='3'] img:nth-child(2) { left: 51%; bottom: 0%; width:auto; height:30%;} -.room .images[data-mediacount='3'] img:nth-child(3) { right: 51%; top: 61%; } +.room .images[data-mediacount='3'] img:nth-child(2) { right: 51%; top: 61%; } +.room .images[data-mediacount='3'] img:nth-child(3) { left: 51%; bottom: 0%; width:auto; height:30%;} .room .images[data-mediacount='4'] img:nth-child(1) { right: 51%; bottom: 41%; } .room .images[data-mediacount='4'] img:nth-child(2) { left: 51%; bottom: 61%; } diff --git a/views/projects/layouts-modal.ejs b/views/projects/layouts-modal.ejs index 24a83b7..8754617 100644 --- a/views/projects/layouts-modal.ejs +++ b/views/projects/layouts-modal.ejs @@ -4,6 +4,8 @@

Edit Room Layouts

+
+
There are no room layouts available. Please create a new one. @@ -20,6 +22,8 @@

Your Projects

+
+
@@ -35,6 +39,8 @@

Choose Room Template

+
+
There are no room layouts available. Please create a new one. -- cgit v1.2.3-70-g09d2