From ae685a3a3e0427b9bf47a73f0f170235e469c979 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 6 Apr 2016 17:45:01 -0400 Subject: flag to hide project, use white cursor --- index.js | 2 ++ public/assets/js/lib/ProjectView.js | 1 + templates/index.liquid | 6 +++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1e62275..1914ba5 100644 --- a/index.js +++ b/index.js @@ -41,6 +41,8 @@ var app = okcms.createApp({ media: {type: 'media-list'}, mobileMedia: {type: 'media-list'}, press: {type: 'link-list'}, + whiteCursor: {type: 'flag'}, + hideProject: {type: 'flag'}, }, }, diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index bc2a715..2bb0f32 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -5,6 +5,7 @@ var ProjectView = View.extend({ "click .page-up": "previous", "click .page-down": "next", "click .top": "stopPropagation", + "click a": "preventDefault", }, initialize: function(opt){ diff --git a/templates/index.liquid b/templates/index.liquid index 6f9d1c7..a932851 100644 --- a/templates/index.liquid +++ b/templates/index.liquid @@ -33,10 +33,12 @@
  • Cover
  • Introduction
  • {% for project in projects %} + {% unless project.hideProject %}
  • {{ project.title }} {% if project.mobileTitle %}{{ project.mobileTitle }}{% else %}{{ project.title }}{% endif %}
  • + {% endunless %} {% endfor %} @@ -117,8 +119,9 @@
    {% for project in projects %} + {% unless project.hideProject %}
    -
    +
    {% for media in project.media %} {% if media.type == 'image' %}
    @@ -183,6 +186,7 @@
    + {% endunless %} {% endfor %} -- cgit v1.2.3-70-g09d2