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.

changelog.twig 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="thin">
  2. <h2>{{ constant('SITE_NAME') }} Change Log</h2>
  3. {{ paginator.linkbox|raw }}
  4. {% if is_mod %}
  5. <div class="box box2 edit_changelog">
  6. <div class="head">
  7. <strong>Manually submit a new change to the change log</strong>
  8. </div>
  9. <div class="pad">
  10. <form method="post" action="">
  11. <input type="hidden" name="perform" value="add" />
  12. <input type="hidden" name="auth" value="{{ auth }}" />
  13. <div class="field_div" id="cl_message">
  14. <span class="label">Commit message:</span>
  15. <br />
  16. <textarea name="message" rows="2"></textarea>
  17. </div>
  18. <div class="field_div" id="cl_author">
  19. <span class="label">Author:</span>
  20. <br />
  21. <input type="text" name="author" value="{{ author }}" />
  22. </div>
  23. <div class="submit_div" id="cl_submit">
  24. <input type="submit" value="Submit" />
  25. </div>
  26. </form>
  27. </div>
  28. </div>
  29. {% endif %}
  30. {% for change in list %}
  31. <div class="box box2 change_log_entry">
  32. <div class="head">
  33. <span>{{ change.date }} by {{ change.author }}</span>
  34. {% if is_mod %}
  35. <span style="float: right;">
  36. <form id="delete_{{ change.id }}" method="post" action="">
  37. <input type="hidden" name="perform" value="remove" />
  38. <input type="hidden" name="auth" value="{{ auth }}" />
  39. <input type="hidden" name="change_id" value="{{ change.id }}" />
  40. </form>
  41. <a href="#" onclick="$('#delete_{{ change.id }}').raw().submit(); return false;" class="brackets">Delete</a>
  42. </span>
  43. {% endif %}
  44. </div>
  45. <div class="pad">
  46. {{ change.message }}
  47. </div>
  48. </div>
  49. {% endfor %}
  50. {{ paginator.linkbox|raw }}
  51. </div>