File:  [NetBSD Developer Wiki] / wikisrc / templates / page.tmpl
Revision 1.10: download - view: text, annotated - select for diffs
Sat Jul 3 23:31:47 2010 UTC (10 years, 8 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
Don't use DISCUSSIONLINK, since we can't style it. Instead, have
inlinediscussion.pm provide COMMENTEDITURL in both the edit and
create cases, and use it unconditionally in the template. Skip the
comment div on dynamic pages.

IWBNI the Prefs | Logout link were right-aligned like the main
actions bar. Meh.

    1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    2:  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    3: <html xmlns="http://www.w3.org/1999/xhtml">
    4: <head>
    5: <TMPL_IF DYNAMIC>
    6: <TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE>
    7: <TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF>
    8: </TMPL_IF>
    9: </TMPL_IF>
   10: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   11: <meta http-equiv="Cache-Control" content="must-revalidate" />
   12: <title><TMPL_VAR TITLE></title>
   13: <TMPL_IF NAME="FAVICON">
   14: <link rel="icon" href="<TMPL_VAR BASEURL><TMPL_VAR FAVICON>" type="image/x-icon" />
   15: </TMPL_IF>
   16: <link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" />
   17: <link rel="stylesheet" href="<TMPL_VAR BASEURL>local.css" type="text/css" />
   18: <TMPL_IF NAME="EDITURL">
   19: <link rel="alternate" type="application/x-wiki" title="Edit this page" href="<TMPL_VAR EDITURL>" />
   20: </TMPL_IF>
   21: <TMPL_IF NAME="FEEDLINKS"><TMPL_VAR FEEDLINKS></TMPL_IF>
   22: <TMPL_IF NAME="RELVCS"><TMPL_VAR RELVCS></TMPL_IF>
   23: <TMPL_IF NAME="META"><TMPL_VAR META></TMPL_IF>
   24: </head>
   25: <body>
   26:     <div id="header">
   27:       <div class="topNavigation">
   28: 	<span>&raquo;</span> <a href="http://www.NetBSD.org/docs/guide/en/">The Guide</a> | <a href="http://man.NetBSD.org">Manual pages</a> | <a href="http://www.NetBSD.org/mailinglists/">Mailing lists</a> and <a href="http://mail-index.NetBSD.org/">Archives</a> | <a href="http://cvsweb.NetBSD.org/">CVS repository</a> | <a href="http://www.NetBSD.org/cgi-bin/sendpr.cgi?gndb=netbsd">Report</a> or <a href="http://gnats.NetBSD.org/">query</a> a bug | <a href="http://www.NetBSD.org/docs/software/packages.html">Software Packages</a></div>
   29:       <div class="centralHeader">
   30: 	<a href="/"><img height="90" width="506" alt="[NetBSD Logo]" src="http://www.netbsd.org/images/NetBSD-headerlogo.png"/></a>
   31: 	<div class="headerTools">
   32: 	  <br/>
   33: 	    <div id="headerSearch">
   34: <TMPL_IF NAME="SEARCHFORM">
   35: <TMPL_VAR SEARCHFORM>
   36: </TMPL_IF>
   37: 	  </div>
   38: 	</div>
   39:       </div>
   40:       <div class="navBar">
   41: 	<a title="Home" href="http://www.netbsd.org/">Home</a>&nbsp;|&nbsp;
   42: 	<a href="http://www.netbsd.org/about/">About</a>&nbsp;|&nbsp;
   43: 	<a href="http://www.netbsd.org/gallery/">Gallery</a>&nbsp;|&nbsp;
   44: 	<a href="http://www.netbsd.org/releases/">Download</a>&nbsp;|&nbsp;
   45: 	<a href="http://www.netbsd.org/docs/">Documentation</a>&nbsp;|&nbsp;
   46: 	<a href="http://www.netbsd.org/support/">Support</a>&nbsp;|&nbsp;
   47: 	<a href="http://www.netbsd.org/community/">Community</a>&nbsp;|&nbsp;
   48: 	<a href="http://www.netbsd.org/ports/">Ports</a>&nbsp;
   49:       </div>
   50:  
   51:       	  <TMPL_IF NAME="HAVE_ACTIONS">
   52: 		  <div class="actions">
   53: 		    <ul>
   54: 		      <TMPL_IF NAME="EDITURL">
   55: 			<li><a href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a></li>
   56: 		      </TMPL_IF>
   57: 		      <TMPL_IF NAME="GETSOURCEURL">
   58: 			<li><a href="<TMPL_VAR GETSOURCEURL>">Source</a></li>
   59: 		      </TMPL_IF>
   60: 		      <TMPL_IF NAME="HISTORYURL">
   61: 			<li><a href="<TMPL_VAR HISTORYURL>">History</a></li>
   62: 		      </TMPL_IF>
   63: 			<li><a href="<TMPL_VAR BASEURL>wiki/new_page" rel="nofollow">New</a></li>
   64: 		      <TMPL_IF NAME="RECENTCHANGESURL">
   65: 			<li><a href="<TMPL_VAR RECENTCHANGESURL>">RecentChanges</a></li>
   66: 		      </TMPL_IF>
   67: 		    </ul>
   68: 		  </div>
   69:     </div>
   70: 
   71: <div class="pageheader">
   72: <div class="header">
   73: <span>
   74: <span class="parentlinks">
   75: <TMPL_LOOP NAME="PARENTLINKS"><a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>/</TMPL_LOOP>
   76: </span>
   77: <span class="title">
   78: <TMPL_VAR TITLE>
   79: <TMPL_IF NAME="ISTRANSLATION">
   80: &nbsp;(<TMPL_VAR NAME="PERCENTTRANSLATED">%)
   81: </TMPL_IF>
   82: </span>
   83: </span><!--.header-->
   84: </div>
   85: </div>
   86: 
   87: <TMPL_IF SIDEBAR>
   88: <div id="sidebar">
   89: <TMPL_VAR SIDEBAR>
   90: </div>
   91: </TMPL_IF>
   92: 
   93: <div id="content">
   94: <TMPL_VAR CONTENT>
   95: </div>
   96: 
   97: <TMPL_UNLESS DYNAMIC>
   98: <div id="comments">
   99: <TMPL_IF NAME="COMMENTEDITURL">
  100: <h3><a href="<TMPL_VAR COMMENTEDITURL>" rel="nofollow">Discussion</a></h3>
  101: </TMPL_IF>
  102: <TMPL_IF COMMENTS>
  103: <TMPL_VAR COMMENTS>
  104: <TMPL_IF ADDCOMMENTURL>
  105: <div class="addcomment">
  106: <a href="<TMPL_VAR ADDCOMMENTURL>">Add a comment</a>
  107: </div>
  108: <TMPL_ELSE>
  109: <div class="addcomment">Comments on this page are closed.</div>
  110: </TMPL_IF>
  111: </div>
  112: </TMPL_IF>
  113: </TMPL_UNLESS>
  114: 
  115: 		      </TMPL_IF>
  116: 
  117: <div id="footer" class="pagefooter">
  118: <TMPL_UNLESS DYNAMIC>
  119: <div id="pageinfo">
  120: 
  121: 		      <TMPL_IF NAME="COMMENTSLINK">
  122: 			<li><TMPL_VAR COMMENTSLINK><br /></li>
  123: 			    </TMPL_IF>
  124: 
  125: <TMPL_IF NAME="TAGS">
  126: <div class="tags">
  127: Tags:
  128: <TMPL_LOOP NAME="TAGS">
  129: <TMPL_VAR LINK>
  130: </TMPL_LOOP>
  131: </div>
  132: </TMPL_IF>
  133: 
  134: <TMPL_IF NAME="BACKLINKS">
  135: <div id="backlinks">
  136: Links:
  137: <TMPL_LOOP NAME="BACKLINKS">
  138: <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>
  139: </TMPL_LOOP>
  140: <TMPL_IF NAME="MORE_BACKLINKS">
  141: <span class="popup">...
  142: <span class="balloon">
  143: <TMPL_LOOP NAME="MORE_BACKLINKS">
  144: <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>
  145: </TMPL_LOOP>
  146: </span>
  147: </span>
  148: </TMPL_IF>
  149: </div><!-- #backlinks -->
  150: </TMPL_IF>
  151: 
  152: <TMPL_IF LICENSE>
  153: <div class="pagelicense">
  154: <a name="pagelicense"></a>
  155: License: <TMPL_VAR LICENSE>
  156: </div>
  157: </TMPL_IF>
  158: 
  159: <div class="pagedate">
  160: Last edited <TMPL_VAR MTIME>
  161: <!-- Created <TMPL_VAR CTIME> -->
  162: </div>
  163: 
  164: <TMPL_IF NAME="HAVE_ACTIONS">
  165: <TMPL_IF NAME="PREFSURL">
  166: <a href="<TMPL_VAR PREFSURL>">Preferences | Logout</a>
  167: </TMPL_IF>
  168: </TMPL_IF>
  169: 
  170: </div><!-- #pageinfo -->
  171: <TMPL_IF EXTRAFOOTER><TMPL_VAR EXTRAFOOTER></TMPL_IF>
  172: </TMPL_UNLESS>
  173: <!-- from <TMPL_VAR WIKINAME> -->
  174: </div><!-- .pagefooter #footer -->
  175: 
  176: <TMPL_IF COPYRIGHT>
  177: <TMPL_VAR COPYRIGHT>
  178:     <div class="rowOfBoxes">
  179:       <div id="footer">
  180:         <div id="footerLogo">
  181:           <a href="http://www.isc.org/"><img src="images/hosted-isc.png"
  182:              alt="wiki.NetBSD.org is hosted at ISC"
  183:              border="0" width="84" height="41"/></a>
  184:         </div>
  185:         <div id="footerContent">
  186:           <span class="footfeed">
  187:             <a href="http://www.NetBSD.org/cgi-bin/feedback.cgi">
  188:               Contact</a> |
  189:           </span>
  190:           <span class="footcopy"><a href="about/disclaimer.html">
  191:             Disclaimer</a> |
  192:             <span class="copyright">
  193:               Copyright &copy; 2009-2010 The NetBSD Foundation, Inc.
  194:             </span>
  195:             ALL
  196:             RIGHTS RESERVED. <br /> NetBSD<sup>&reg;</sup> is a registered
  197:             trademark of The NetBSD Foundation, Inc.
  198:           </span>
  199:         </div>
  200:       </div>
  201:     </div>
  202: </TMPL_IF>
  203: 
  204: </body>
  205: </html>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb