/templates/history/options.mako

https://bitbucket.org/cistrome/cistrome-harvard/ · Mako · 32 lines · 29 code · 3 blank · 0 comment · 2 complexity · fe4ca23fe46088ce0943c7eae6fa988d MD5 · raw file

  1. <% _=n_ %>
  2. <%inherit file="/base.mako"/>
  3. <%def name="title()">History options</%def>
  4. <h2>${_('History Options')}</h2>
  5. %if not user:
  6. <div class="infomessage">
  7. <div>${_('You must be ')}<a target="galaxy_main" href="${h.url_for( controller='user', action='login' )}">${_('logged in')}</a>${_(' to store or switch histories.')}</div>
  8. </div>
  9. %endif
  10. <ul>
  11. %if user:
  12. <li><a href="${h.url_for( controller='history', action='list')}" target="galaxy_main">Previously</a> stored histories</li>
  13. %if len( history.active_datasets ) > 0:
  14. <li><a href="${h.url_for( controller='root', action='history_new' )}">Create</a> a new empty history</li>
  15. <li><a href="${h.url_for( controller='workflow', action='build_from_current_history' )}">Construct workflow</a> from current history</li>
  16. <li><a href="${h.url_for( controller='history', action='clone', id=trans.security.encode_id( history.id ) )}">Clone</a> current history</li>
  17. %endif
  18. <li><a href="${h.url_for( controller='history', action='share' )}" target="galaxy_main">Share</a> current history</div>
  19. <li><a href="${h.url_for( controller='root', action='history_set_default_permissions' )}">Change default permissions</a> for current history</li>
  20. %endif
  21. %if len( history.activatable_datasets ) > 0:
  22. <li><a href="${h.url_for( controller='root', action='history', show_deleted=True)}" target="galaxy_history">Show deleted</a> datasets in current history</li>
  23. %endif
  24. <li><a href="${h.url_for( controller='history', action='rename', id=trans.security.encode_id( history.id ) )}" target="galaxy_main">Rename</a> current history (stored as "${history.name}")</li>
  25. <li><a href="${h.url_for( controller='history', action='delete_current' )}" confirm="Are you sure you want to delete the current history?">Delete</a> current history</div>
  26. %if user and user.histories_shared_by_others:
  27. <li><a href="${h.url_for( controller='history', action='list_shared')}" target="galaxy_main">Histories</a> shared with you by others</li>
  28. %endif
  29. </ul>