modal.ejs 1.1 KB

123456789101112131415161718192021222324252627
  1. <% if (versionList.length > 0) { %>
  2. <div class="modal fade" id="version" data-backdrop="static">
  3. <div class="modal-dialog" role="document">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <h5 class="modal-title">升级说明</h5>
  7. </div>
  8. <div class="modal-body">
  9. <div class="modal-height-500" style="overflow-y:auto">
  10. <% for (const version of versionList) { %>
  11. <div class="card mt-2">
  12. <div class="card-body">
  13. <h4><%- version.name %></h4>
  14. <p class="card-text"><%= moment(version.create_time * 1000).format('YYYY-MM-DD') %></p>
  15. <p class="card-text"><%- version.content %></p>
  16. </div>
  17. </div>
  18. <% } %>
  19. </div>
  20. </div>
  21. <div class="modal-footer">
  22. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">关闭</button>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <% } %>