Explorar o código

https://github.com/openNAMU/openNAMU/issues/1639

잉여개발기 (SPDV) %!s(int64=2) %!d(string=hai) anos
pai
achega
562492006e
Modificáronse 4 ficheiros con 6 adicións e 7 borrados
  1. 1 0
      lang/en-US.json
  2. 2 1
      lang/ko-KR.json
  3. 2 5
      route/list_admin_auth_use.py
  4. 1 1
      version.json

+ 1 - 0
lang/en-US.json

@@ -247,6 +247,7 @@
         "main_user_name" : "Main user name",
         "change_user_name" : "Change main user name",
         "sub_user_name" : "Sub user name",
+        "start_with_search" : "Search from the first letter",
         "_comment_" : "BBS",
             "bbs" : "BBS",
             "bbs_main" : "BBS main",

+ 2 - 1
lang/ko-KR.json

@@ -575,5 +575,6 @@
     "math_scroll": "Math 매크로에서 스크롤 사용",
     "remove_blind_thread": "숨겨진 토론 보이지 않기",
     "trace": "추적",
-    "view_history": "문서 열람 추적 사용"
+    "view_history": "문서 열람 추적 사용",
+    "start_with_search" : "첫 글자부터 검색"
 }

+ 2 - 5
route/list_admin_auth_use.py

@@ -12,10 +12,7 @@ def list_admin_auth_use(arg_num = 1, arg_search = 'normal'):
             if arg_search == 'normal':
                 curs.execute(db_change("select who, what, time from re_admin order by time desc limit ?, 50"), [sql_num])
             else:
-                curs.execute(
-                    db_change("select who, what, time from re_admin where what like ? order by time desc limit ?, 50"),
-                    [arg_search + "%", sql_num]
-                )
+                curs.execute(db_change("select who, what, time from re_admin where what like ? order by time desc limit ?, 50"), [arg_search + "%", sql_num])
 
             list_data = '<ul class="opennamu_ul">'
 
@@ -41,7 +38,7 @@ def list_admin_auth_use(arg_num = 1, arg_search = 'normal'):
                 imp = [load_lang('authority_use_list'), wiki_set(), wiki_custom(), wiki_css([0, 0])],
                 data = '''
                     <form method="post">
-                        <input class="opennamu_width_200" name="search" value="''' + arg_search + '''">
+                        <input class="opennamu_width_200" name="search" placeholder="''' + load_lang('start_with_search') + '''" value="''' + arg_search + '''">
                         <button type="submit">''' + load_lang('search') + '''</button>
                     </form>
                     <hr class="main_hr">

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "beta" : {
-        "r_ver" : "v3.4.6-RC5-dev38",
+        "r_ver" : "v3.4.6-RC5-dev39",
         "c_ver" : "3500373",
         "s_ver" : "3500112"
     }