Fork de wikipp, le moteur de wiki en c++, basé sur cppcms. Le fork ajoute la langue française
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

toc.tmpl 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <% c++ #include "content.h" %>
  2. <% skin view %>
  3. <% view toc uses content::toc extends master %>
  4. <% template title() %><% gt "Index of Articles" %><% end %>
  5. <% template main() %>
  6. <% foreach row in table %>
  7. <table id="toc_table">
  8. <% item %>
  9. <tr>
  10. <% foreach cell in row %>
  11. <% item %>
  12. <% if not empty cell.title %>
  13. <td><a href="<%= cell.url %>"><%= cell.title %></a>
  14. <% else %>
  15. <td>&nbsp;</td>
  16. <% end %>
  17. <% end item %>
  18. <% end %>
  19. </tr>
  20. <% end item %>
  21. </table>
  22. <% end foreach %>
  23. <% end template %>
  24. <% end view %>
  25. <% view recent_changes uses content::recent_changes extends master %>
  26. <% template title() %><% gt "Recent Changes" %><% end %>
  27. <% template main() %>
  28. <% foreach c in content %>
  29. <ul>
  30. <% item %>
  31. <li><a href="<%= c.url %>"><%= c.title %></a> &mdash;
  32. <% gt "version {1,num}, at {2,dt=s}, by {3}" using c.version,c.created,c.author %><% if not empty c.diff_url %>,
  33. <a href="<%= c.diff_url %>"><% gt "Diff to previous" %></a><% end %>
  34. </li>
  35. <% end item %>
  36. </ul>
  37. <% if not empty next %><p><a href="<%= next %>"><% gt "Next Page" %></a></p><% end %>
  38. <% empty %>
  39. <h2><% gt "No more changes" %></h2>
  40. <% end %>
  41. <% end template %>
  42. <% end view %>
  43. <% end skin %>