index.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <html>
  2. <head>
  3. <title>{{title}}</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. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
  9. <link rel="shortcut icon" href="{{url_for('static', filename='images/on.ico')}}">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. </head>
  12. <body>
  13. <br>
  14. <div class="one-fifth column">
  15. <div id="top">
  16. <a href="/" id="logo">{{logo}}</a>
  17. <div>
  18. <a href="/recentchanges" id="RecentChanges"><i class="fa fa-refresh" aria-hidden="true"></i><span id="is_mobile">최근 변경</span></a>
  19. <a href="/recentdiscuss" id="RecentChanges"><i class="fa fa-comment" aria-hidden="true"></i><span id="is_mobile">최근 토론</span></a>
  20. <a href="/random" id="log"><i class="fa fa-random" aria-hidden="true"></i></a>
  21. <a href="/user" id="log"><i class="fa fa-user" aria-hidden="true"></i></a>
  22. <a href="/other" id="log"><i class="fa fa-cogs" aria-hidden="true"></i></a>
  23. </div>
  24. <form method="POST" action="/search" id="search">
  25. <div class="input-group">
  26. <input class="form-control" name="search" type="text">
  27. <span class="input-group-button"><button class="btn"><i class="fa fa-long-arrow-left" aria-hidden="true"></i></button></span>
  28. </div>
  29. </form>
  30. </div>
  31. </div>
  32. <div class="scroll-buttons">
  33. <a class="scroll-toc" href="#toc"><i class="fa fa-list-alt" aria-hidden="true"></i></a>
  34. <a class="scroll-button" href="#top" id="left"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  35. <a class="scroll-bottom" href="#powered" id="right"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  36. </div>
  37. <div id="left_bar">
  38. <a href="#">맨 위로</a>
  39. <br>
  40. <br>
  41. {% autoescape false %}
  42. {{left}}
  43. {% endautoescape %}
  44. </div>
  45. <div class="four-fifths column">
  46. {% if tn == 1 %}
  47. <div id="tool">
  48. <nav class="menu">
  49. <a class="menu-item selected" href="#" onclick="return false">문서</a>
  50. <a class="menu-item" href="/edit/{{page}}">수정</a>
  51. <a class="menu-item" href="/topic/{{page}}">토론</a>
  52. <a class="menu-item" href="/delete/{{page}}">삭제</a>
  53. <a class="menu-item" href="/move/{{page}}">이동</a>
  54. <a class="menu-item" href="/raw/{{page}}">raw</a>
  55. <a class="menu-item" href="/history/{{page}}">역사</a>
  56. <a class="menu-item" href="/xref/{{page}}">역링크</a>
  57. </nav>
  58. </div>
  59. <h1 class="titlee">{{title}}</h1>
  60. <h2 class="titlee"><span style="margin-left:5px"></span></h2>
  61. <div>
  62. {% autoescape false %}
  63. {{data}}
  64. {% endautoescape %}
  65. </div>
  66. {% elif tn == 2 %}
  67. <div id="tool">
  68. <nav class="menu">
  69. <a class="menu-item selected" href="#">수정</a>
  70. <a class="menu-item" href="/w/{{page}}">문서</a>
  71. </nav>
  72. </div>
  73. <h1 class="title">{{title}}</h1>
  74. <h2 class="title"><span style="margin-left:5px"></span>(수정)</h2>
  75. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  76. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  77. <input name="send" style="margin-top:10px;width:100%" type="text">
  78. <br>
  79. <br>
  80. <div class="form-actions">
  81. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  82. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  83. </div>
  84. </form>
  85. {% elif tn == 3 %}
  86. <h1 class="title">{{title}}</h1>
  87. <table style="width: 100%;">
  88. <tbody>
  89. <tr>
  90. <td style="text-align: center;width:33.33%;">문서명</td>
  91. <td style="text-align: center;width:33.33%;">기여자</td>
  92. <td style="text-align: center;width:33.33%;">시간</td>
  93. </tr>
  94. </tbody>
  95. </table>
  96. {% autoescape false %}
  97. {{rows}}
  98. {% endautoescape %}
  99. {% elif tn == 4 %}
  100. <h1 class="title">{{title}}</h1>
  101. {% autoescape false %}
  102. {{rows}}
  103. {% endautoescape %}
  104. {% elif tn == 5 %}
  105. <div id="tool">
  106. <nav class="menu">
  107. <a class="menu-item selected" href="#">역사</a>
  108. <a class="menu-item" href="/w/{{page}}">문서</a>
  109. </nav>
  110. </div>
  111. <h1 class="title">{{title}}</h1>
  112. <table style="width: 100%;">
  113. <tbody>
  114. <tr>
  115. <td style="text-align: center;width:33.33%;">판</td>
  116. <td style="text-align: center;width:33.33%;">기여자</td>
  117. <td style="text-align: center;width:33.33%;">시간</td>
  118. </tr>
  119. </tbody>
  120. </table>
  121. {% autoescape false %}
  122. {{rows}}
  123. {% endautoescape %}
  124. {% elif tn == 6 %}
  125. <div id="tool">
  126. <nav class="menu">
  127. <a class="menu-item selected" href="#" onclick="return false">옛문서</a>
  128. <a class="menu-item" href="/history/{{page}}">목록</a>
  129. </nav>
  130. </div>
  131. <h1 class="titlee">{{title}}</h1>
  132. <h2 class="titlee"><span style="margin-left:5px"></span></h2>
  133. <div>
  134. {% autoescape false %}
  135. {{data}}
  136. {% endautoescape %}
  137. </div>
  138. {% elif tn == 7 %}
  139. <div id="tool">
  140. <nav class="menu">
  141. <a class="menu-item selected" href="#" onclick="return false">raw</a>
  142. <a class="menu-item" href="/w/{{page}}">문서</a>
  143. </nav>
  144. </div>
  145. <h1 class="title">{{title}}</h1>
  146. <h2 class="title"><span style="margin-left:5px"></span></h2>
  147. <div>
  148. {% autoescape false %}
  149. {{data}}
  150. {% endautoescape %}
  151. </div>
  152. {% elif tn == 8 %}
  153. <h1 class="title">{{title}}</h1>
  154. <form id="usrform" method="POST" action="/delete/{{page}}">
  155. {{plus}}
  156. <br>
  157. <br>
  158. <button class="btn btn-primary" type="submit">삭제</button>
  159. </form>
  160. {% elif tn == 9 %}
  161. <h1 class="title">{{title}}</h1>
  162. <form id="usrform" method="POST" action="/move/{{page}}">
  163. {{plus}}
  164. <br>
  165. <br>
  166. <input class="form-control input-sm" value="{{title}}" name="title" type="text">
  167. <br>
  168. <br>
  169. <button class="btn btn-primary" type="submit">이동</button>
  170. </form>
  171. {% else %}
  172. <h1 class="title">{{title}}</h1>
  173. <h2 class="title"><span style="margin-left:5px"></span></h2>
  174. <div>
  175. {% autoescape false %}
  176. {{data}}
  177. {% endautoescape %}
  178. </div>
  179. {% endif %}
  180. <hr id="last">
  181. <p>{{license}}</p>
  182. <div id="powered">
  183. <a href="https://github.com/2DU/Ownet"><img src="{{url_for('static', filename='images/on2.png')}}" width="100px"></a>
  184. </div>
  185. </div>
  186. </body>
  187. </html>