Răsfoiți Sursa

ACL 문서 목록 개편, 시간 뜨게

Surplus_Up (2DU) 6 ani în urmă
părinte
comite
b251c73465
2 a modificat fișierele cu 19 adăugiri și 24 ștergeri
  1. 18 23
      route/list_acl.py
  2. 1 1
      version.json

+ 18 - 23
route/list_acl.py

@@ -3,15 +3,7 @@ from .tool.func import *
 def list_acl_2(conn):
 def list_acl_2(conn):
     curs = conn.cursor()
     curs = conn.cursor()
     
     
-    div = '''
-        <table id="main_table_set">
-            <tbody>
-                <tr>
-                    <td id="main_table_width_quarter">''' + load_lang('document_name') + '''</td>
-                    <td id="main_table_width_quarter">''' + load_lang('document_acl') + '''</td>
-                    <td id="main_table_width_quarter">''' + load_lang('discussion_acl') + '''</td>
-                    <td id="main_table_width_quarter">''' + load_lang('view_acl') + '''</td>
-    '''
+    div = '<ul>'
     
     
     curs.execute(db_change("select title, decu, dis, view, why from acl where decu != '' or dis != '' or view != '' order by title desc"))
     curs.execute(db_change("select title, decu, dis, view, why from acl where decu != '' or dis != '' or view != '' order by title desc"))
     list_data = curs.fetchall()
     list_data = curs.fetchall()
@@ -28,21 +20,24 @@ def list_acl_2(conn):
                 else:
                 else:
                     acl += [data[i]]
                     acl += [data[i]]
 
 
-            div +=  '''
-                <tr>
-                    <td>
-                        <a href="/w/''' + url_pas(data[0]) + '">' + data[0] + '''</a>
-                    </td>
-                    <td>''' + acl[0] + '''</td>
-                    <td>''' + acl[1] + '''</td>
-                    <td>''' + acl[2] + '''</td>
-                </tr>
-            '''
+            curs.execute(db_change("select time from re_admin where what like ? order by time desc limit 1"), ['acl (' + data[0] + ')%'])
+            time_data = curs.fetchall()
+            if time_data:
+                time_data = ' | ' + time_data[0][0]
+            else:
+                time_data = ''
+
+            div += '' + \
+                '<li>' + \
+                    '<a href="/w/' + url_pas(data[0]) + '">' + data[0] + '</a> | ' + \
+                    load_lang('document_acl') + ' : ' + acl[0] + ' | ' + \
+                    load_lang('discussion_acl') + ' : ' + acl[1] + ' | ' + \
+                    load_lang('view_acl') + ' : ' + acl[2] + \
+                    time_data + \
+                '</li>' + \
+            ''
         
         
-    div +=  '''
-            </tbody>
-        </table>
-    '''
+    div += '</ul>'
     
     
     return easy_minify(flask.render_template(skin_check(), 
     return easy_minify(flask.render_template(skin_check(), 
         imp = [load_lang('acl_document_list'), wiki_set(), custom(), other2([0, 0])],
         imp = [load_lang('acl_document_list'), wiki_set(), custom(), other2([0, 0])],

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
 {
     "master" : {
     "master" : {
-        "r_ver" : "v3.1.5-master-39",
+        "r_ver" : "v3.1.5-master-40",
         "c_ver" : "400007",
         "c_ver" : "400007",
         "s_ver" : "7"
         "s_ver" : "7"
     }, "stable" : {
     }, "stable" : {