Przeglądaj źródła

1.9.6 패치

ㅇㅇ
2DU 9 lat temu
rodzic
commit
ae9c9483b8
4 zmienionych plików z 90 dodań i 52 usunięć
  1. 1 1
      main.py
  2. 78 46
      static/style.css
  3. 4 2
      templates/index.html
  4. 7 3
      version.md

+ 1 - 1
main.py

@@ -1436,7 +1436,7 @@ def move(name = None):
             
 @app.route('/other')
 def other():
-    return web_render('index.html', custom = custom_css_user(), license = set_data['license'], login = login_check(), title = '기타 메뉴', logo = set_data['name'], data = '<h2 style="margin-top: 0px;">기록</h2><li><a href="/blocklog/n/1">사용자 차단 기록</a></li><li><a href="/userlog/n/1">사용자 가입 기록</a></li><li><a href="/manager/6">사용자 기록</a></li><h2>기타</h2><li><a href="/titleindex">모든 문서</a></li><li><a href="/acllist">ACL 문서 목록</a></li><li><a href="/upload">업로드</a></li><li><a href="/adminlist">관리자 목록</a></li><li><a href="/manager/1">관리자 메뉴</a></li><br>이 오픈나무의 버전은 <a href="https://github.com/2DU/openNAMU/blob/master/version.md">1.9.5</a> 입니다.')
+    return web_render('index.html', custom = custom_css_user(), license = set_data['license'], login = login_check(), title = '기타 메뉴', logo = set_data['name'], data = '<h2 style="margin-top: 0px;">기록</h2><li><a href="/blocklog/n/1">사용자 차단 기록</a></li><li><a href="/userlog/n/1">사용자 가입 기록</a></li><li><a href="/manager/6">사용자 기록</a></li><h2>기타</h2><li><a href="/titleindex">모든 문서</a></li><li><a href="/acllist">ACL 문서 목록</a></li><li><a href="/upload">업로드</a></li><li><a href="/adminlist">관리자 목록</a></li><li><a href="/manager/1">관리자 메뉴</a></li><br>이 오픈나무의 버전은 <a href="https://github.com/2DU/openNAMU/blob/master/version.md">1.9.6</a> 입니다.')
     
 @app.route('/manager/<int:num>', methods=['POST', 'GET'])
 def manager(num = None):

+ 78 - 46
static/style.css

@@ -19,7 +19,7 @@
     float: left;
     margin-right: 10px;
     padding: 5px;
-	margin-top: 9px;
+    margin-top: 9px;
 }
 
 #log:hover, #log:focus {
@@ -33,9 +33,9 @@ button#goto {
 }
 
 textarea, label, span, body, strong, b, div, h1, h2, h3, h4, h5, h6, h7, input {
-	font-family: "나눔바른고딕", "나눔고딕", "맑은 고딕", "NanumBarunGothic", "NanumGothic", "Malgun Gothic", "sans-serif";
+    font-family: "나눔바른고딕", "나눔고딕", "맑은 고딕", "NanumBarunGothic", "NanumGothic", "Malgun Gothic", "sans-serif";
 }
-		
+        
 pre {
     font-family: "d2codingfont", "나눔고딕코딩", "NanumGothicCoding", "monospace";
 }
@@ -153,8 +153,8 @@ table {
 }
 
 .title {
-	display: inline-block;
-	margin-bottom: 30px;
+    display: inline-block;
+    margin-bottom: 30px;
 }
 
 not_del {
@@ -175,28 +175,28 @@ not_del {
 }
 
 s, strike, del {
-	color:gray;
+    color:gray;
 }
 
 pre {
     padding: 7px;
-	background-color: #eeeeee;
-	border: 1px solid #dddddd;
-	border-radius: 3px;
-	overflow-x: auto;
-	display: block;
-	font-size: 90%;
-	line-height: 1.5;
-	color: #373a3c;
+    background-color: #eeeeee;
+    border: 1px solid #dddddd;
+    border-radius: 3px;
+    overflow-x: auto;
+    display: block;
+    font-size: 90%;
+    line-height: 1.5;
+    color: #373a3c;
 }
 
 s:hover, strike:hover, del:hover {
-	color:#666;background-color:#eee;text-decoration:none;
+    color:#666;background-color:#eee;text-decoration:none;
 }
 
 .menu-item {
     float: left;
-	position: relative;
+    position: relative;
 }
 
 .menu {
@@ -216,22 +216,22 @@ s:hover, strike:hover, del:hover {
 #search {
     width: 250px;
     float: right;
-	padding: 5px;
-	margin-bottom: 0;
+    padding: 5px;
+    margin-bottom: 0;
 }
 
 #logo {
     float: left;
-	margin-right: 10px;
-	padding: 5px;
+    margin-right: 10px;
+    padding: 5px;
 }
 
 .one-fifth.column {
     margin-bottom: 20px;
-	margin-top: -18px;
-	background: #8D7DAD;
-	z-index: 2;
-	position: relative;
+    margin-top: -18px;
+    background: #8D7DAD;
+    z-index: 2;
+    position: relative;
 }
 
 .btn {
@@ -274,7 +274,7 @@ div.scroll-buttons {
     margin-bottom: -10px;
     bottom: 10px;
     right: 0px;
-	opacity: 0.8;
+    opacity: 0.8;
 }
 
 .four-fifths {
@@ -289,8 +289,8 @@ div.scroll-buttons {
 #logo {
     width: auto;
     height: auto;
-	font-size: 25px;
-	color: white;
+    font-size: 25px;
+    color: white;
 }
 
 #logo:hover {
@@ -314,24 +314,24 @@ table {
 }
 
 @media (max-width: 939px) {
-	#search {
-		float: right;
-	}
+    #search {
+        float: right;
+    }
 }
 
 @media (max-width: 459px) {
-	#search {
-		float: left;
-		width: 100%;
-		margin-bottom: 5px;
-	}
-	.input-group {
-		width: 100%;
-	}
+    #search {
+        float: left;
+        width: 100%;
+        margin-bottom: 5px;
+    }
+    .input-group {
+        width: 100%;
+    }
 }
 
 @media (min-width: 1280px) {
-	#all_contect {
+    #all_contect {
         width: 1260px;
         margin: auto;
     }
@@ -340,7 +340,7 @@ table {
 .four-fifths.column {
     border: 1px solid #EFEFEF;
     padding: 30px;
-	background: white;
+    background: white;
 }
 
 body {
@@ -351,7 +351,7 @@ body {
     height: 100%;
     width: 15%;
     position: fixed;
-	overflow: scroll;
+    overflow: scroll;
     left: 0;
     top: 0;
     background: white;
@@ -360,7 +360,7 @@ body {
 
 #yosolo {
     width: 33.33%;
-	text-align: center;
+    text-align: center;
 }
 
 #toron {
@@ -368,15 +368,15 @@ body {
 }
 
 #toroncolorgreen {
-	background-color: #B0D3AD;
+    background-color: #B0D3AD;
 }
 
 #toroncolorred {
-	background-color: #f3c2c2;
+    background-color: #f3c2c2;
 }
 
 #toroncolor {
-	background-color: #d5d5d5;
+    background-color: #d5d5d5;
 }
 
 #bb {
@@ -385,7 +385,7 @@ body {
 }
 
 #history {
-	margin-right: 10px;
+    margin-right: 10px;
 }
 
 #list {
@@ -464,4 +464,36 @@ sub, sup {
 
 pre span {
     font-family: '니눔고딕코딩', 'Nanum Gothic Coding', monospace;
+}
+
+#is_mobile {        
+    margin-left: 5px;        
+}
+
+#RecentChanges:hover, #RecentChanges:focus {        
+    text-decoration: none;        
+    color: #e5dafb;        
+}
+
+#RecentChanges {        
+    line-height: 35px;        
+    width: 105px;        
+    height: 45px;        
+    font-size: 16px;        
+    color: white;        
+    float: left;        
+    padding: 5px;        
+}
+        
+@media (max-width: 710px) {        
+    #is_mobile {        
+        display: none;        
+    }
+    
+    #RecentChanges {
+        width: 20px;        
+        margin-right: 10px;        
+        margin-top: 9px;        
+        height: 36px;        
+    }        
 }

+ 4 - 2
templates/index.html

@@ -27,11 +27,13 @@
             <div id="top">
                 <a href="/" id="logo">{{logo}}</a>
                 <div>
-                    <a href="/recentchanges" id="log">
+                    <a href="/recentchanges" id="RecentChanges">
                         <i class="fa fa-refresh" aria-hidden="true"></i>
+                        <span id="is_mobile">최근 변경</span>
                     </a>
-                    <a href="/recentdiscuss" id="log">
+                    <a href="/recentdiscuss" id="RecentChanges">
                         <i class="fa fa-comment" aria-hidden="true"></i>
+                        <span id="is_mobile">최근 토론</span>
                     </a>
                     <a href="/random" id="log">
                         <i class="fa fa-random" aria-hidden="true"></i>

+ 7 - 3
version.md

@@ -74,13 +74,17 @@
 ## 1.9 (진행중)
  * 다국어 지원
  * 로그인 시 원래 보던 화면으로
- * 코드 분리 및 정리 (진행중)
+ * 코드 분리 및 정리 (일부 완료)
  * 역 링크 재 생성 메뉴 (완료)
- * 기타 등등등 (진행중)
+ * 기타 등등등 (완료?)
  * 검색 강화 (완료)
  * 커스텀 CSS (완료)
  * 파일명 제한 없애기 (완료)
  
+## 2.0
+ * Bottle로 이전
+ * 비동기 일부 적용
+ 
 ## 보류
  * 토론에 AJAX 적용
  * 리캡차 추가
@@ -105,7 +109,7 @@
 
 ----
 ## 기타
- * 최신 버전 1.9.5
+ * 최신 버전 - 1.9.6
 
 ----
 ## 개발 이념