--
cgit v1.2.3
From 09a7bcbdef237c1443bbbfc29010e7106cffd739 Mon Sep 17 00:00:00 2001
From: Wu Cheng-Han
Date: Sat, 21 Jan 2017 13:08:29 +0800
Subject: Refactor templates and rearrange its path
---
public/views/body.ejs | 250 ---------------------------------
public/views/disqus.ejs | 14 --
public/views/error.ejs | 6 +-
public/views/foot.ejs | 28 ----
public/views/footer.ejs | 0
public/views/ga.ejs | 18 ---
public/views/hackmd.ejs | 12 +-
public/views/hackmd/body.ejs | 250 +++++++++++++++++++++++++++++++++
public/views/hackmd/foot.ejs | 28 ++++
public/views/hackmd/footer.ejs | 0
public/views/hackmd/head.ejs | 22 +++
public/views/hackmd/header.ejs | 175 +++++++++++++++++++++++
public/views/head.ejs | 22 ---
public/views/header.ejs | 175 -----------------------
public/views/help-modal.ejs | 147 -------------------
public/views/index.ejs | 216 +---------------------------
public/views/index/body.ejs | 175 +++++++++++++++++++++++
public/views/index/foot.ejs | 13 ++
public/views/index/footer.ejs | 0
public/views/index/head.ejs | 22 +++
public/views/index/header.ejs | 0
public/views/polyfill.ejs | 7 -
public/views/pretty.ejs | 14 +-
public/views/refresh-modal.ejs | 31 ----
public/views/revision-modal.ejs | 27 ----
public/views/shared/disqus.ejs | 14 ++
public/views/shared/ga.ejs | 18 +++
public/views/shared/help-modal.ejs | 147 +++++++++++++++++++
public/views/shared/polyfill.ejs | 7 +
public/views/shared/refresh-modal.ejs | 31 ++++
public/views/shared/revision-modal.ejs | 27 ++++
public/views/shared/signin-modal.ejs | 95 +++++++++++++
public/views/signin-modal.ejs | 95 -------------
public/views/slide.ejs | 14 +-
34 files changed, 1052 insertions(+), 1048 deletions(-)
delete mode 100644 public/views/body.ejs
delete mode 100644 public/views/disqus.ejs
delete mode 100644 public/views/foot.ejs
delete mode 100644 public/views/footer.ejs
delete mode 100644 public/views/ga.ejs
create mode 100644 public/views/hackmd/body.ejs
create mode 100644 public/views/hackmd/foot.ejs
create mode 100644 public/views/hackmd/footer.ejs
create mode 100644 public/views/hackmd/head.ejs
create mode 100644 public/views/hackmd/header.ejs
delete mode 100644 public/views/head.ejs
delete mode 100644 public/views/header.ejs
delete mode 100644 public/views/help-modal.ejs
create mode 100644 public/views/index/body.ejs
create mode 100644 public/views/index/foot.ejs
create mode 100644 public/views/index/footer.ejs
create mode 100644 public/views/index/head.ejs
create mode 100644 public/views/index/header.ejs
delete mode 100644 public/views/polyfill.ejs
delete mode 100644 public/views/refresh-modal.ejs
delete mode 100644 public/views/revision-modal.ejs
create mode 100644 public/views/shared/disqus.ejs
create mode 100644 public/views/shared/ga.ejs
create mode 100644 public/views/shared/help-modal.ejs
create mode 100644 public/views/shared/polyfill.ejs
create mode 100644 public/views/shared/refresh-modal.ejs
create mode 100644 public/views/shared/revision-modal.ejs
create mode 100644 public/views/shared/signin-modal.ejs
delete mode 100644 public/views/signin-modal.ejs
(limited to 'public/views')
diff --git a/public/views/body.ejs b/public/views/body.ejs
deleted file mode 100644
index 5ad1733e..00000000
--- a/public/views/body.ejs
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- owned this note
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<%= __('Sorry, only owner can edit this note.') %>
-
-
-
-
-
-
-
-
-
-
-
-
<%= __("Sorry, you've reached the max length this note can be.") %>
- <%= __('Please reduce the content or divide it to more notes, thank you!') %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<%= __('OR') %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Do you really want to delete this note?
- All users will lost their connection.
-
-
-
-
-
-<%- include refresh-modal %>
-<%- include signin-modal %>
-<%- include help-modal %>
-<%- include revision-modal %>
diff --git a/public/views/disqus.ejs b/public/views/disqus.ejs
deleted file mode 100644
index cceaa85c..00000000
--- a/public/views/disqus.ejs
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/public/views/error.ejs b/public/views/error.ejs
index 402b5eb0..a40ed39c 100644
--- a/public/views/error.ejs
+++ b/public/views/error.ejs
@@ -2,18 +2,18 @@
- <%- include head %>
+ <%- include hackmd/head %>
- <%- include header %>
+ <%- include hackmd/header %>
<%- code %> <%- detail %> <%- msg %>
- <%- include footer %>
+ <%- include hackmd/footer %>
\ No newline at end of file
diff --git a/public/views/foot.ejs b/public/views/foot.ejs
deleted file mode 100644
index c1df65c2..00000000
--- a/public/views/foot.ejs
+++ /dev/null
@@ -1,28 +0,0 @@
-
-<% if(useCDN) { %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<%- include build/index-scripts %>
-<% } else { %>
-
-
-<%- include build/index-pack-scripts %>
-<% } %>
diff --git a/public/views/footer.ejs b/public/views/footer.ejs
deleted file mode 100644
index e69de29b..00000000
diff --git a/public/views/ga.ejs b/public/views/ga.ejs
deleted file mode 100644
index 66d4acd9..00000000
--- a/public/views/ga.ejs
+++ /dev/null
@@ -1,18 +0,0 @@
-<% if(typeof GA !== 'undefined' && GA) { %>
-
-<% } %>
\ No newline at end of file
diff --git a/public/views/hackmd.ejs b/public/views/hackmd.ejs
index c5778fc9..49084a63 100644
--- a/public/views/hackmd.ejs
+++ b/public/views/hackmd.ejs
@@ -2,14 +2,14 @@
- <%- include head %>
+ <%- include hackmd/head %>
- <%- include header %>
- <%- include body %>
- <%- include footer %>
- <%- include foot %>
+ <%- include hackmd/header %>
+ <%- include hackmd/body %>
+ <%- include hackmd/footer %>
+ <%- include hackmd/foot %>
-
\ No newline at end of file
+