yusuketk 5 лет назад
Родитель
Сommit
7b7e117718

+ 1 - 0
resource/locales/zh_CN/translation.json

@@ -77,6 +77,7 @@
 	"Shrink versions that have no diffs": "收缩没有差异的版本",
 	"User ID": "用户ID",
 	"Home": "首页",
+	"My Drafts": "My Drafts",
 	"User Settings": "用户设置",
 	"User Information": "用户信息",
 	"Basic Info": "基础信息",

+ 5 - 0
src/server/routes/me.js

@@ -128,6 +128,11 @@ module.exports = function(crowi, app) {
       });
   };
 
+  actions.drafts = {};
+  actions.drafts.list = async function(req, res) {
+    return res.render('me/drafts');
+  };
+
   actions.updates = function(req, res) {
     res.render('me/update', {
     });

+ 17 - 0
src/server/views/me/drafts.html

@@ -0,0 +1,17 @@
+{% extends '../layout-growi/base/layout.html' %}
+
+{% block html_title %}{{ customizeService.generateCustomTitleForFixedPageName(t('My Drafts')) }}{% endblock %}
+
+{% block content_header %}
+<h1 class="title">{{ t('My Drafts') }}</h1>
+{% endblock %}
+
+{% block content_main %}
+<div class="content-main" id="my-drafts"></div>
+{% endblock content_main %}
+
+{% block content_footer %}
+{% endblock content_footer %}
+
+{% block layout_footer %}
+{% endblock layout_footer %}