2
0

index.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. <html>
  2. <head>
  3. <title>{{title}} - {{logo}}</title>
  4. <link rel="stylesheet" href="{{url_for('static', filename='primer.css')}}">
  5. <link rel="stylesheet" href="{{url_for('static', filename='style.css')}}">
  6. <link rel="stylesheet" href="{{url_for('static', filename='font-awesome/css/font-awesome.min.css')}}">
  7. <script type="text/x-mathjax-config">
  8. MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
  9. </script>
  10. <script type="text/javascript" async
  11. src="{{url_for('static', filename='js/MathJax.js')}}?config=TeX-AMS_CHTML">
  12. </script>
  13. <meta name="twitter:creator" content="@{{logo}}">
  14. <meta name="twitter:title" content="{{title}}">
  15. <meta name="twitter:site" content="@{{logo}}">
  16. <meta name="twitter:card" content="summary">
  17. <meta name="twitter:description" content="{{data}}" />
  18. <link rel="shortcut icon" href="{{url_for('static', filename='images/on.ico')}}">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. </head>
  21. <body>
  22. <br>
  23. <div class="one-fifth column">
  24. <div id="top">
  25. <a href="/" id="logo">{{logo}}</a>
  26. <div>
  27. <a href="/recentchanges" id="RecentChanges"><i class="fa fa-refresh" aria-hidden="true"></i><span id="is_mobile">최근 변경</span></a>
  28. <a href="/recentdiscuss" id="RecentChanges"><i class="fa fa-comment" aria-hidden="true"></i><span id="is_mobile">최근 토론</span></a>
  29. <a href="/random" id="log"><i class="fa fa-random" aria-hidden="true"></i></a>
  30. <a href="/user" id="log">{% if login == 1 %}<i class="fa fa-user" aria-hidden="true"></i>{% elif login == 0 %}<i class="fa fa-user-times" aria-hidden="true"></i>{% else %}<i class="fa fa-user-secret" aria-hidden="true"></i>{% endif %}</a>
  31. <a href="/other" id="log"><i class="fa fa-cogs" aria-hidden="true"></i></a>
  32. </div>
  33. <form method="POST" action="/search" id="search">
  34. <div class="input-group">
  35. <input class="form-control" name="search" type="text">
  36. <span class="input-group-button">
  37. <button id="goto" class="btn" formaction="/goto"><i class="fa fa-share" aria-hidden="true"></i></button>
  38. </span>
  39. <span class="input-group-button">
  40. <button class="btn"><i class="fa fa-search" aria-hidden="true"></i></button>
  41. </span>
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. <div class="scroll-buttons">
  47. <a class="scroll-toc" href="#toc"><i class="fa fa-list-alt" aria-hidden="true"></i></a>
  48. <a class="scroll-button" href="#top" id="left"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  49. <a class="scroll-bottom" href="#powered" id="right"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  50. </div>
  51. <div id="all_contect">
  52. <div id="left_bar">
  53. <a href="#">맨 위로</a>
  54. <br>
  55. <br>
  56. {% autoescape false %}
  57. {{left}}
  58. {% endautoescape %}
  59. </div>
  60. <div class="four-fifths column">
  61. <div id="tool">
  62. <nav class="menu">
  63. <a class="menu-item selected" href="#" onclick="return false">{% if sub %}{{sub}}{% elif tn == 1 %}문서{% else %}기타{% endif %}</a>
  64. {% if tn == 1 %}
  65. <a class="menu-item" href="/edit/{{page}}">수정</a>
  66. <a class="menu-item" id="{{topic}}" href="/topic/{{page}}">토론</a>
  67. <a class="menu-item" href="/delete/{{page}}">삭제</a>
  68. <a class="menu-item" href="/move/{{page}}">이동</a>
  69. <a class="menu-item" href="/raw/{{page}}">Raw</a>
  70. <a class="menu-item" href="/history/{{page}}/n/1">역사</a>
  71. <a class="menu-item" href="/backlink/{{page}}/n/1">역링크</a>
  72. {% if redirect %}
  73. <a class="menu-item" href="/w/{{page}}">넘기기</a>
  74. {% endif %}
  75. {% if admin == "ACL" %}
  76. <a class="menu-item" href="/acl/{{page}}">ACL</a>
  77. {% endif %}
  78. {% if uppage %}
  79. <a class="menu-item" style="{{style}}" href="/w/{{uppage}}">상위</a>
  80. {% endif %}
  81. {% elif tn == 6 or tn == 13 or not tn and not sub == '역링크' or tn == 12 or tn == 3 or tn == 4 or tn == 20 or tn == 21 %}
  82. <a class="menu-item" href="javascript:history.back(-1);">뒤로</a>
  83. {% elif tn == 10 and not list or tn == 11 %}
  84. <a class="menu-item" href="/topic/{{page}}">토론 목록</a>
  85. {% else %}
  86. <a class="menu-item" href="/w/{{page}}">문서</a>
  87. {% endif %}
  88. </nav>
  89. </div>
  90. <h1 class="title">{{title}}{% if acl %} <sub>{{acl}}</sub>{% endif %}{% if sub %} <sub>({{sub}})</sub>{% endif %}</h1>
  91. {% if tn == 1 %}
  92. {% if redirect %}
  93. {% autoescape false %}
  94. <li style="margin-top: -20px;"><a href="/w/{{redirect}}/from/{{page}}">{{redirect}}</a>에서 넘어 왔습니다.</li>
  95. <br>
  96. {% endautoescape %}
  97. {% endif %}
  98. <div>
  99. {% autoescape false %}
  100. {{data}}
  101. {% endautoescape %}
  102. </div>
  103. {% elif tn == 2 %}
  104. {% if login == 0 %}
  105. <br>
  106. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  107. <br>
  108. <br>
  109. {% endif %}
  110. {% if section == 1 %}
  111. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}/section/{{number}}">
  112. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  113. {% if preview == 1 %}
  114. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{odata}}</textarea>
  115. {% else %}
  116. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{data}}</textarea>
  117. {% endif %}
  118. <input name="send" style="margin-top:10px;width:100%" type="text">
  119. <br>
  120. <br>
  121. <div class="form-actions">
  122. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}/section/{{number}}';">저장</button>
  123. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}/section/{{number}}';">미리보기</button>
  124. </div>
  125. </form>
  126. {% else %}
  127. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  128. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  129. <input name="send" style="margin-top:10px;width:100%" type="text">
  130. <br>
  131. <br>
  132. <div class="form-actions">
  133. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  134. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  135. </div>
  136. </form>
  137. {% endif %}
  138. {% if preview == 1 %}
  139. {% autoescape false %}
  140. {{enddata}}
  141. {% endautoescape %}
  142. {% endif %}
  143. {% elif tn == 3 %}
  144. <table style="width: 100%;">
  145. <tbody>
  146. <tr>
  147. <td style="text-align: center;width:33.33%;">문서명</td>
  148. <td style="text-align: center;width:33.33%;">기여자</td>
  149. <td style="text-align: center;width:33.33%;">시간</td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. {% autoescape false %}
  154. {{rows}}
  155. {% endautoescape %}
  156. {% elif tn == 4 %}
  157. {% autoescape false %}
  158. {{rows}}
  159. {% endautoescape %}
  160. {% elif tn == 5 %}
  161. <form class="usrform" method='POST' action='/history/{{page}}/n/1'>
  162. <select name="a">
  163. {% autoescape false %}
  164. {{select}}
  165. {% endautoescape %}
  166. </select>
  167. <select name="b">
  168. {% autoescape false %}
  169. {{select}}
  170. {% endautoescape %}
  171. </select>
  172. <button class="btn btn-primary" type='submit'>리비전 비교</button>
  173. <br>
  174. <br>
  175. <table style="width: 100%;">
  176. <tbody>
  177. <tr>
  178. <td style="text-align: center;width:33.33%;">판</td>
  179. <td style="text-align: center;width:33.33%;">기여자</td>
  180. <td style="text-align: center;width:33.33%;">시간</td>
  181. </tr>
  182. </tbody>
  183. </table>
  184. {% autoescape false %}
  185. {{rows}}
  186. {% endautoescape %}
  187. {% elif tn == 6 %}
  188. <div>
  189. {% autoescape false %}
  190. {{data}}
  191. {% endautoescape %}
  192. </div>
  193. {% elif tn == 7 %}
  194. <div>
  195. {% autoescape false %}
  196. {{data}}
  197. {% endautoescape %}
  198. </div>
  199. {% elif tn == 8 %}
  200. <form id="usrform" method="POST" action="/delete/{{page}}">
  201. {{plus}}
  202. <br>
  203. <br>
  204. <button class="btn btn-primary" type="submit">삭제</button>
  205. </form>
  206. {% if login == 0 %}
  207. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  208. {% endif %}
  209. {% elif tn == 9 %}
  210. <form id="usrform" method="POST" action="/move/{{page}}">
  211. {{plus}}
  212. <br>
  213. <br>
  214. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  215. <br>
  216. <br>
  217. <button class="btn btn-primary" type="submit">이동</button>
  218. </form>
  219. {% if login == 0 %}
  220. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  221. {% endif %}
  222. {% elif tn == 10 %}
  223. <form id="usrform" style="margin-top: -30px;" method="POST" action="/topic/{{page}}">
  224. {% autoescape false %}
  225. {{plus}}
  226. {% endautoescape %}
  227. {% if list == 1 %}
  228. <br>
  229. <a href="/topic/{{page}}/close">(닫힌 토론)</a> <a href="/topic/{{page}}/agree">(합의된 토론)</a>
  230. <br>
  231. <br>
  232. <input class="form-control" name="topic" style="width: 100%">
  233. <br>
  234. <br>
  235. <button class="btn btn-primary" type="submit">새토론</button>
  236. {% endif %}
  237. </form>
  238. {% elif tn == 11 %}
  239. <h2 style="margin-top: -15px;">{{toron}}</h2>
  240. <br>
  241. {% autoescape false %}
  242. {{rows}}
  243. {% endautoescape %}
  244. {% if ban == 1 %}
  245. {% else %}
  246. <a id="reload" href="javascript:window.location.reload(true);">(갱신)</a> <a href="#reload">(갱신 전에 누르시오)</a>
  247. <form id="usrform" style="{{style}}" method="POST" action="/topic/{{page}}/sub/{{suburl}}">
  248. <br>
  249. <textarea rows="10" cols="100" name="content" form="usrform"></textarea>
  250. <br>
  251. <br>
  252. <button class="btn btn-primary" type="submit">전송</button>
  253. </form>
  254. {% if login == 0 and style == '' %}
  255. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  256. {% endif %}
  257. {% endif %}
  258. {% elif tn == 12 %}
  259. <table style="width: 100%;">
  260. <tbody>
  261. <tr>
  262. <td style="text-align: center;width:50%;">토론명</td>
  263. <td style="text-align: center;width:50%;">시간</td>
  264. </tr>
  265. </tbody>
  266. </table>
  267. {% autoescape false %}
  268. {{rows}}
  269. {% endautoescape %}
  270. {% elif tn == 13 %}
  271. <form id="usrform" method="POST" action="/revert/{{page}}/r/{{r}}">
  272. {{plus}}
  273. <br>
  274. <br>
  275. <button class="btn btn-primary" type="submit">되돌리기</button>
  276. </form>
  277. {% if login == 0 %}
  278. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  279. {% endif %}
  280. {% elif tn == 15 %}
  281. {% if title == '회원가입' %}
  282. <form id="usrform" method="POST" action="/register">
  283. {% elif title == '비밀번호 변경' %}
  284. <form id="usrform" method="POST" action="/change">
  285. {% else %}
  286. <form id="usrform" method="POST" action="/login">
  287. {% endif %}
  288. <span>아이디</span>
  289. <br>
  290. <br>
  291. <input name="id" type="text">
  292. <br>
  293. <br>
  294. <span>{% if title == '비밀번호 변경' %}현재 {% endif %}비밀번호</span>
  295. <br>
  296. <br>
  297. <input name="pw" type="password">
  298. <br>
  299. <br>
  300. {% if not title == '로그인' %}
  301. <span>{% if title == '비밀번호 변경' %}변경할 비밀번호{% else %}재 확인{% endif %}</span>
  302. <br>
  303. <br>
  304. <input name="pw2" type="password">
  305. <br>
  306. <br>
  307. {% if title == '비밀번호 변경' %}
  308. <span>재 확인</span>
  309. <br>
  310. <br>
  311. <input name="pw3" type="password">
  312. <br>
  313. <br>
  314. {% endif %}
  315. {% endif %}
  316. <button class="btn btn-primary" type="submit">{{enter}}</button>
  317. </form>
  318. {% elif tn == 16 %}
  319. <form id="usrform" method="POST" action="/ban/{{page}}">
  320. {% if now == '차단' or now == '대역 차단' %}
  321. <input class="form-control" name="end" style="width: 100%">
  322. <br>
  323. <br>
  324. <span>아무것도 안 적으면 무기한 차단입니다.</span>
  325. <br>
  326. <br>
  327. <span>차단 일 지정시 형식은 YYYY-MM-DD로 기록해야 합니다. (예시: 2017-01-20, 2017-10-15)</span>
  328. <br>
  329. <br>
  330. <span>지금 시각은 {{today}} 입니다.</span>
  331. <br>
  332. <br>
  333. <input class="form-control" name="why" style="width: 100%">
  334. <br>
  335. <br>
  336. <span>사유를 쓰는 곳입니다.</span>
  337. {% if allif == 1 %}
  338. <br>
  339. <br>
  340. <input type="checkbox" name="band">
  341. <span>대역 차단</span>
  342. </input>
  343. {% endif %}
  344. <br>
  345. <br>
  346. {% endif %}
  347. <button class="btn btn-primary" type="submit">{{now}}</button>
  348. </form>
  349. {% elif tn == 18 %}
  350. <form id="usrform" method="POST" action="/admin/{{page}}">
  351. {% if now == '권한 부여' %}
  352. <select name="select">
  353. <option value="admin" selected="selected">관리자</option>
  354. <option value="owner">소유자</option>
  355. </select>
  356. <br>
  357. <br>
  358. {% endif %}
  359. <button class="btn btn-primary" type="submit">{{now}}</button>
  360. </form>
  361. {% elif tn == 19 %}
  362. <br>
  363. <span>{{now}}</span>
  364. <br>
  365. <br>
  366. <form id="usrform" method="POST" action="/acl/{{page}}">
  367. <select name="select">
  368. <option value="admin" selected="selected">관리자만</option>
  369. <option value="user">유저 이상</option>
  370. <option value="normal">일반</option>
  371. </select>
  372. <br>
  373. <br>
  374. <button class="btn btn-primary" type="submit">ACL 변경</button>
  375. </form>
  376. {% elif tn == 20 %}
  377. <table style="width: 100%;">
  378. <tbody>
  379. <tr>
  380. <td style="text-align: center;width:20%;">차단자</td>
  381. <td style="text-align: center;width:20%;">관리자</td>
  382. <td style="text-align: center;width:20%;">언제까지</td>
  383. <td style="text-align: center;width:20%;">왜</td>
  384. <td style="text-align: center;width:20%;">시간</td>
  385. </tr>
  386. </tbody>
  387. </table>
  388. {% autoescape false %}
  389. {{rows}}
  390. {% endautoescape %}
  391. {% elif tn == 21 %}
  392. <div>
  393. <form action="" method=post enctype=multipart/form-data>
  394. <input type=file name=file>
  395. <input type=submit value=Upload>
  396. </form>
  397. </div>
  398. <span>{{number}}MB 이하 파일만 업로드 가능하고 파일 명에 ./\*<>|:? 들은 불가능하며 확장자는 jpg, png, gif, jpeg만 가능합니다.</span>
  399. {% elif tn == 22 %}
  400. <table style="width: 100%;">
  401. <tbody>
  402. <tr>
  403. <td style="text-align: center;width:33.33%;">유저</td>
  404. <td style="text-align: center;width:33.33%;">아이피</td>
  405. <td style="text-align: center;width:33.33%;">언제</td>
  406. </tr>
  407. </tbody>
  408. </table>
  409. {% autoescape false %}
  410. {{rows}}
  411. {% endautoescape %}
  412. {% else %}
  413. <div>
  414. {% autoescape false %}
  415. {{data}}
  416. {% endautoescape %}
  417. </div>
  418. {% endif %}
  419. <hr id="last">
  420. <p>{% autoescape false %}{{license}}{% endautoescape %}</p>
  421. <div id="powered">
  422. <a href="https://github.com/2DU/openNAMU"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  423. </div>
  424. </div>
  425. </div>
  426. </body>
  427. </html>