Merge branch 'master' into dank
Conflicts: contrib/static/site.css
This commit is contained in:
		
							
								
								
									
										6
									
								
								contrib/static/newboard.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								contrib/static/newboard.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  | function createBoard() { | ||||||
|  |   var form = document.getElementById("postform"); | ||||||
|  |   var e = document.getElementById("boardname"); | ||||||
|  |   form.action = form.action + e.value; | ||||||
|  |   form.submit(); | ||||||
|  | } | ||||||
| @@ -123,10 +123,6 @@ html { | |||||||
|     color: #ededed; |     color: #ededed; | ||||||
|     background: #262230; |     background: #262230; | ||||||
|     height: 100%; |     height: 100%; | ||||||
|     background-image: url('/static/fieri.png'); |  | ||||||
|     background-attachment: fixed; |  | ||||||
|     background-position: 100% 0%; |  | ||||||
|     background-repeat: no-repeat; |  | ||||||
|     font-family: arial,helvetica,sans-serif; |     font-family: arial,helvetica,sans-serif; | ||||||
|     font-size: 10pt; |     font-size: 10pt; | ||||||
|     margin: 0 4px; |     margin: 0 4px; | ||||||
|   | |||||||
							
								
								
									
										55
									
								
								contrib/templates/default/newboard.mustache
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								contrib/templates/default/newboard.mustache
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,55 @@ | |||||||
|  | <html> | ||||||
|  |   <head> | ||||||
|  |     <title>create new board</title> | ||||||
|  |     <link rel="stylesheet" href="{{prefix}}static/site.css" /> | ||||||
|  |     <script type="text/javascript" src="{{prefix}}static/newboard.js"> | ||||||
|  |     </script> | ||||||
|  |   </head> | ||||||
|  |   <body> | ||||||
|  |     <p>make your first post</p> | ||||||
|  |     <hr /> | ||||||
|  |     <form action="{{prefix}}post/" enctype="multipart/form-data" name="post" method="post" id="postform" > | ||||||
|  |     <div id="postform-outer"> | ||||||
|  |       <div id="postform-inner"> | ||||||
|  |         <table class="postform"> | ||||||
|  |           <tbody> | ||||||
|  |             <tr> | ||||||
|  |               <th> | ||||||
|  |                 Board Name | ||||||
|  |               </th> | ||||||
|  |               <td> | ||||||
|  |                 <input type="text" name="name" value="" id="boardname" /> | ||||||
|  |                 <button onclick="createBoard()">Create Board</button> | ||||||
|  |               </td> | ||||||
|  |             </tr> | ||||||
|  |             <tr> | ||||||
|  |               <th> | ||||||
|  |                 Comment | ||||||
|  |               </th> | ||||||
|  |               <td> | ||||||
|  |              <textarea id="postform_message" type="text" name="message" cols=40 rows=5></textarea> | ||||||
|  |               </td> | ||||||
|  |             </tr> | ||||||
|  |             <tr> | ||||||
|  |               <th> | ||||||
|  |                 Captcha | ||||||
|  |               </th> | ||||||
|  |               <td> | ||||||
|  |                 <img id="captcha_img" src="{{prefix}}captcha/img" alt="captcha" /> | ||||||
|  |               </td> | ||||||
|  |             </tr> | ||||||
|  |             <tr> | ||||||
|  |               <th> | ||||||
|  |                 Solution | ||||||
|  |               </th> | ||||||
|  |               <td> | ||||||
|  |                 <input type="text" name="captcha" /> | ||||||
|  |               </td> | ||||||
|  |             </tr> | ||||||
|  |           </tbody> | ||||||
|  |         </table> | ||||||
|  |       </div> | ||||||
|  |     </div> | ||||||
|  |     </form> | ||||||
|  |   </body> | ||||||
|  | </html> | ||||||
		Reference in New Issue
	
	Block a user