Sfoglia il codice sorgente

일부 스킨 변수 추가

Surplus_Up (2DU) 6 anni fa
parent
commit
06eb3d7192
3 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 1 0
      language/en-US.json
  2. 2 1
      language/ko-KR.json
  3. 4 1
      route/view_read.py

+ 1 - 0
language/en-US.json

@@ -174,6 +174,7 @@
         "history_delete" : "History delete",
         "direct_input" : "Direct input",
         "acl_record" : "ACL record",
+        "last_edit_time" : "Last edited time",
         "_comment_2.1_" : "Filter",
             "_comment_2.1.1_" : "List",
                 "interwiki_list" : "Interwiki(s) list",

+ 2 - 1
language/ko-KR.json

@@ -292,5 +292,6 @@
     "acl_record": "ACL 기록",
     "main_bottom_body": "본문 하단",
     "reference" : "참고",
-    "owner_acl" : "소유자만"
+    "owner_acl" : "소유자만",
+    "last_edit_time" : "최근 수정 시각"
 }

+ 4 - 1
route/view_read.py

@@ -22,6 +22,9 @@ def view_read_2(conn, name):
     curs.execute("select sub from rd where title = ? and not stop = 'O' order by date desc", [name])
     if curs.fetchall():
         sub += ' (' + load_lang('discussion') + ')'
+        topic = 1
+    else:
+        topic = 0
 
     curs.execute("select link from back where title = ? and type = 'cat' order by link asc", [name])
                 
@@ -141,7 +144,7 @@ def view_read_2(conn, name):
         else:
             menu = [['edit/' + url_pas(name), load_lang('edit')]]
 
-        menu += [['topic/' + url_pas(name), load_lang('discussion')], ['history/' + url_pas(name), load_lang('history')], ['xref/' + url_pas(name), load_lang('backlink')], ['acl/' + url_pas(name), load_lang('acl')]]
+        menu += [['topic/' + url_pas(name), load_lang('discussion'), topic], ['history/' + url_pas(name), load_lang('history')], ['xref/' + url_pas(name), load_lang('backlink')], ['acl/' + url_pas(name), load_lang('acl')]]
 
         if flask.request.args.get('from', None):
             menu += [['w/' + url_pas(name), load_lang('pass')]]