BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

browse.twig 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% macro letter_box(show_search = true) %}
  2. <div class="box pad center">
  3. {% if show_search %}
  4. <p>Search the wiki for user created tutorials and information.</p>
  5. <form class="search_form" name="wiki" action="wiki.php" method="get">
  6. <input type="hidden" name="action" value="search" />
  7. <input type="hidden" name="nojump" value="1" />
  8. <input type="search" name="search" size="80" />
  9. <input value="Search" type="submit" class="hidden" />
  10. </form>
  11. <br />
  12. <p>Additionally, you can manually browse through the articles by their first letter.</p>
  13. {% endif %}
  14. <span>
  15. {% for letter in 'a'..'z' %}
  16. <a href="wiki.php?action=browse&amp;letter={{ letter }}">{{ letter|upper }}</a>&nbsp;&nbsp;
  17. {% endfor %}
  18. <a href="wiki.php?action=browse&amp;letter=1">All</a>&nbsp;&nbsp;
  19. </span>
  20. </div>
  21. {% endmacro %}
  22. <div class="thin">
  23. <div class="header">
  24. <h2>{{ title }}</h2>
  25. </div>
  26. <div class="linkbox">
  27. <a href="wiki.php?action=create" class="brackets">Create</a>
  28. </div>
  29. {{ _self.letter_box() }}
  30. <table width="100%" style="margin-bottom: 10px;">
  31. <tr class="colhead">
  32. <td>Article</td>
  33. <td>Last updated on</td>
  34. <td>Last edited by</td>
  35. </tr>
  36. {% for article in articles %}
  37. <tr>
  38. <td><a href="wiki.php?action=article&amp;id={{ article.ID }}">{{ article.Title }}</a></td>
  39. <td>{{ article.Date }}</td>
  40. <td>{{ article.Author|user_url }}</td>
  41. </tr>
  42. {% endfor %}
  43. </table>
  44. {{ _self.letter_box(false) }}
  45. </div>