Browse Source

add today's document

2du 4 years ago
parent
commit
be5084cfb5
3 changed files with 6 additions and 1 deletions
  1. 2 0
      lang/en-US.json
  2. 3 1
      lang/ko-KR.json
  3. 1 0
      route/view_read.py

+ 2 - 0
lang/en-US.json

@@ -213,6 +213,8 @@
         "2fa_password_change" : "Change 2FA password",
         "history_reset" : "Document history reset",
         "record_reset" : "User edit log reset",
+        "today_doc" : "Today[s] document",
+        "send_edit" : "Modify reason",
         "_comment_2.1_" : "Filter",
             "_comment_2.1.1_" : "List",
                 "interwiki_list" : "Interwiki(s) list",

+ 3 - 1
lang/ko-KR.json

@@ -405,5 +405,7 @@
     "history_reset": "문서 역사 초기화",
     "record_reset": "사용자 편집 기록 초기화",
     "email_setting": "이메일 설정",
-    "oauth_client_id": "OAuth 클라이언트 ID"
+    "oauth_client_id": "OAuth 클라이언트 ID",
+    "today_doc" : "오늘의 문서",
+    "send_edit" : "편집 사유 수정"
 }

+ 1 - 0
route/view_read.py

@@ -140,6 +140,7 @@ def view_read_2(conn, name, doc_rev, doc_from):
             <div id="get_user_info"></div>
             <script>load_user_info("''' + user_name + '''");</script>
         ''' + div
+        menu += [['w/' + url_pas(name) + '/' + url_pas(get_time().split()[0]), load_lang('today_doc')]]
 
     curs.execute(db_change("select data from other where name = 'body'"))
     body = curs.fetchall()