[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tpo/staging] Delete unused models



commit 54a16c18a66a585f642dfdf6fe44aed82c3958a9
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Tue Mar 26 20:18:23 2019 +0100

    Delete unused models
---
 content/press/contents.lr |  4 ++++
 models/blog-post.ini      | 29 -----------------------------
 models/blog.ini           | 16 ----------------
 models/press.ini          |  3 ++-
 4 files changed, 6 insertions(+), 46 deletions(-)

diff --git a/content/press/contents.lr b/content/press/contents.lr
index e47ec8b..2ec8f6a 100644
--- a/content/press/contents.lr
+++ b/content/press/contents.lr
@@ -2,6 +2,10 @@ _template: layout.html
 ---
 _model: press
 ---
+_discoverable: yes
+---
+_visible: yes
+---
 section: The Tor Project
 ---
 section_id: the_tor_project
diff --git a/models/blog-post.ini b/models/blog-post.ini
deleted file mode 100644
index edccc34..0000000
--- a/models/blog-post.ini
+++ /dev/null
@@ -1,29 +0,0 @@
-[model]
-name = Blog Post
-label = {{ this.title }}
-hidden = yes
-
-[fields.title]
-label = Title
-type = string
-size = large
-
-[fields.author]
-label = Author
-type = string
-width = 1/2
-
-[fields.twitter_handle]
-label = Twitter Handle
-type = string
-width = 1/4
-addon_label = @
-
-[fields.pub_date]
-label = Publication date
-type = date
-width = 1/4
-
-[fields.body]
-label = Body
-type = markdown
diff --git a/models/blog.ini b/models/blog.ini
deleted file mode 100644
index 0a3a3ca..0000000
--- a/models/blog.ini
+++ /dev/null
@@ -1,16 +0,0 @@
-[model]
-name = Blog
-label = Blog
-hidden = yes
-
-[fields.title]
-label = Title
-type = string
-
-[children]
-model = blog-post
-order_by = -pub_date, title
-
-[pagination]
-enabled = yes
-per_page = 10
diff --git a/models/press.ini b/models/press.ini
index 367a706..d84e650 100644
--- a/models/press.ini
+++ b/models/press.ini
@@ -1,6 +1,8 @@
 [model]
 name = Press
 label = {{ this.title }}
+visible = yes
+discoverable = yes
 
 [fields.title]
 label = Title
@@ -9,7 +11,6 @@ type = string
 [fields.section]
 label = Section
 type = string
-translate = True
 
 [fields.section_id]
 label = Section_id



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits