bookmark_content.twig 1020 B

12345678910111213141516171819202122232425
  1. <div class="message welcome">
  2. <span>{{ welcome_message }}</span>
  3. </div>
  4. {% for bookmark in bookmarks %}
  5. <div class="message collapsed bookmark" bookmarkid="{{ bookmark.getId() }}"
  6. targetdb="{{ bookmark.getDatabase() }}">
  7. {% include 'console/query_action.twig' with {
  8. 'parent_div_classes': 'action_content',
  9. 'content_array': [
  10. ['action collapse', 'Collapse'|trans],
  11. ['action expand', 'Expand'|trans],
  12. ['action requery', 'Requery'|trans],
  13. ['action edit_bookmark', 'Edit'|trans],
  14. ['action delete_bookmark', 'Delete'|trans],
  15. {0: 'text targetdb', 1: 'Database'|trans, 'extraSpan': bookmark.getDatabase()}
  16. ]
  17. } only %}
  18. <span class="bookmark_label{{ bookmark.getUser() is empty ? ' shared' }}">
  19. {{ bookmark.getLabel() }}
  20. </span>
  21. <span class="query">
  22. {{ bookmark.getQuery() }}
  23. </span>
  24. </div>
  25. {% endfor %}