From 5d1bb038332c540d8abe459092648a7b5ddfe734 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Wed, 13 Aug 2014 02:24:38 -0400 Subject: noui --- server/lib/views.js | 2 ++ views/reader.ejs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/server/lib/views.js b/server/lib/views.js index 27b7446..d619d71 100644 --- a/server/lib/views.js +++ b/server/lib/views.js @@ -36,6 +36,7 @@ views.editor = function (req, res) { date: moment(req.project.updated_at).format("M/DD/YYYY"), author: user.displayName, authorlink: "/profile/" + user.username, + noui: !! (req.query.noui === 1), }) }) } @@ -60,6 +61,7 @@ views.reader = function (req, res) { date: moment(req.project.updated_at).format("M/DD/YYYY"), author: user.displayName, authorlink: "/profile/" + user.username, + noui: !! (req.query.noui === 1), }) }) } diff --git a/views/reader.ejs b/views/reader.ejs index 44fb2dd..7c31766 100644 --- a/views/reader.ejs +++ b/views/reader.ejs @@ -8,6 +8,7 @@
+ [[ if (! noui) { ]]
[[ include partials/header ]] @@ -16,6 +17,7 @@ [[ include controls/reader/media-player ]]
+ [[ } ]] [[ include partials/confirm-modal ]] [[ include projects/layouts-modal ]] -- cgit v1.2.3-70-g09d2