trac-ticketlinks / templates / wiki.cs

<?cs include "header.cs" ?>
<script src="<?cs var:htdocs_location ?>/trac.js" type="text/javascript"> 
</script>
<div id="page-content">
<div id="subheader-links">
  <a href="<?cs var:$trac.href.wiki ?>">Start Page</a> |
  <a href="<?cs var:$trac.href.wiki ?>TitleIndex">Title Index</a> |
  <a href="javascript:view_history()">Show/Hide History</a>
</div>
<hr class="hide"/>
<?cs if $wiki.history ?>
    <table id="wiki-history">
      <tr>
        <th>Version</th>
        <th>Time</th>
        <th>Author</th>
        <th>IP#</th>
      </tr>
      <?cs each item = $wiki.history ?>
        <tr class="wiki-history-row">
          <td><a class="wiki-history-link" 
             href="<?cs var:$item.url ?>"><?cs var:$item.version ?></a></td>
          <td><a class="wiki-history-link" 
               href="<?cs var:$item.url ?>"><?cs var:$item.time ?></a></td>
          <td><a class="wiki-history-link" 
               href="<?cs var:$item.url ?>"><?cs var:$item.author ?></a></td>
          <td><a class="wiki-history-link" 
               href="<?cs var:$item.url ?>"><?cs var:$item.ipnr ?></a></td>
        </tr>
      <?cs /each ?>
    </table>
    <hr class="hide"/>
  <?cs /if ?>
  <div id="main">
    <div id="main-content">
      <div id="wiki-body">
        <?cs if $wiki.title_index.0.title ?>
          <h2>TitleIndex</h2>
          <?cs each item = $wiki.title_index ?>
            <li><a href="<?cs var:item.href?>"><?cs var:item.title ?></a></li>
          <?cs /each ?>
        <?cs else ?>
	  <?cs if wiki.action == "edit" || wiki.action == "preview" ?>
            <h3>Edit "<?cs var:wiki.page_name ?>"</h3>
            <form action="<?cs var:wiki.current_href ?>" method="post">
              <p>
	        <textarea name="text" rows="20" cols="80" style="width:100%"><?cs var:wiki.page_source ?></textarea>
	      </p>
	      <div id="wiki-formatting-help">
	      Read <a href="<?cs var:$trac.href.wiki ?>WikiFormatting">WikiFormatting</a> for more information about available commands.
	      </div>
	      <p>
	        <input type="submit" name="save" value="save changes" />&nbsp;
	        <input type="submit" name="preview" value="preview" />&nbsp;
	        <input type="submit" name="view" value="cancel" />
	      </p>
	    </form>
	  <?cs /if ?>
	  <?cs if wiki.action == "view" || wiki.action == "preview" ?>
	    <div class="wikipage">
	        <?cs var:wiki.page_html ?>
	    </div>
	    <?cs if wiki.action == "view" && trac.acl.WIKI_MODIFY ?>
	      <p>
	      <a href="<?cs var:wiki_current_href?>?edit=yes">Edit this page.</a>
	      </p>
	    <?cs /if ?>
	  <?cs /if ?>
        <?cs /if ?>
      </div>
    </div>
    <div id="main-sidebar">
    </div>
  </div>
</div>
<?cs include: "footer.cs" ?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.