88 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{{!
 | 
						|
  frontpage.mustache -- template for index.html
 | 
						|
  template parameters:
 | 
						|
  - boardgraph ( markup of boardPageRows instance, see srnd/model.go )
 | 
						|
  - postgraph ( markup of postsGraph instance , see srnd/model.go )
 | 
						|
  - overview ( markup of overviewModel instance , see srnd/model.go )
 | 
						|
  - totalposts ( the number of total posts we have ever seen )
 | 
						|
  - frontend ( the name of the frontend )
 | 
						|
  - prefix ( the site's prefix )
 | 
						|
}}
 | 
						|
<!DOCTYPE html>
 | 
						|
<html>
 | 
						|
  <head>
 | 
						|
    <link rel="stylesheet" href="{{prefix}}static/neochan-site.css" />
 | 
						|
    <link id="current_theme" rel="stylesheet" href="{{prefix}}static/user.css" />
 | 
						|
    <meta charset="utf-8"></meta>
 | 
						|
    <script src="{{prefix}}static/nntpchan.js" type="text/javascript"></script>
 | 
						|
    <title> {{frontend}} </title>
 | 
						|
  </head>
 | 
						|
  <body>
 | 
						|
    {{{navbar}}}
 | 
						|
    <div id="wrapper" class="fade-in">
 | 
						|
      <div class="index-outer">
 | 
						|
        <div id="nntpchan-banner">
 | 
						|
        </div>
 | 
						|
        <div class="index-inner">
 | 
						|
          <p>
 | 
						|
            Please read the <a href="{{prefix}}static/faq.html">FAQ</a> before posting
 | 
						|
          </p>
 | 
						|
        </div>
 | 
						|
        <div class="index-inner">
 | 
						|
          <table class="posts-table">
 | 
						|
            <tbody>
 | 
						|
              <tr>
 | 
						|
                <td class="posts-td">
 | 
						|
                  {{{postsgraph}}}
 | 
						|
                </td>
 | 
						|
                <td class="board-td">
 | 
						|
                  {{! todo: move boardgraph into its own file like postsgraph }}
 | 
						|
                  <table id="board-graph">
 | 
						|
                    <thead>
 | 
						|
                      <tr>
 | 
						|
                        <th> {{#i18n.Translations}}{{board_label}}{{/i18n.Translations}} </th>
 | 
						|
                        <th> {{#i18n.Translations}}{{posts_hour}}{{/i18n.Translations}} </th>
 | 
						|
                        <th> {{#i18n.Translations}}{{posts_today}}{{/i18n.Translations}} </th>
 | 
						|
                        <th> {{#i18n.Translations}}{{total}}{{/i18n.Translations}} </th>
 | 
						|
                      </tr>
 | 
						|
                    </thead>
 | 
						|
                    <tbody>
 | 
						|
                      {{# boardgraph}}
 | 
						|
                        <tr>
 | 
						|
                          <td>
 | 
						|
                            <a id="board-{{Board}}" href="{{prefix}}{{Board}}-0.html">{{Board}}</a>
 | 
						|
                          </td>
 | 
						|
                          <td>
 | 
						|
                            {{Hour}}
 | 
						|
                          </td>
 | 
						|
                          <td>
 | 
						|
                            {{Day}}
 | 
						|
                          </td>
 | 
						|
                          <td>
 | 
						|
                            {{All}}
 | 
						|
                          </td>
 | 
						|
                        </tr>
 | 
						|
                      {{/ boardgraph}}
 | 
						|
                    </tbody>
 | 
						|
                  </table>
 | 
						|
                </td>
 | 
						|
              </tr>
 | 
						|
            </tbody>
 | 
						|
          </table>
 | 
						|
          {{{overview}}}        
 | 
						|
        </div>
 | 
						|
      </div>
 | 
						|
    </div>
 | 
						|
    <script type="text/javascript">
 | 
						|
      neochan_init(function() {
 | 
						|
        ready();
 | 
						|
      });
 | 
						|
    </script>
 | 
						|
    <hr/>
 | 
						|
    <footer>
 | 
						|
      <p class="legal">All posts on this site are the responsibility of the individual poster and not the administration, pursuant to 47 U.S.C. § 230.</p>
 | 
						|
      <p class="legal">To make a DMCA request or report illegal content, please contact the administration</p>
 | 
						|
    </footer>
 | 
						|
  </body>
 | 
						|
</html>
 |