/templates/page/index.mako

https://bitbucket.org/h_morita_dbcls/galaxy-central · Mako · 54 lines · 43 code · 10 blank · 1 comment · 3 complexity · 1b7b41653b234d8250075b4b63f60a74 MD5 · raw file

  1. <%inherit file="/webapps/galaxy/base_panels.mako"/>
  2. <%def name="init()">
  3. <%
  4. self.has_left_panel=False
  5. self.has_right_panel=False
  6. self.active_view="page"
  7. self.message_box_visible=False
  8. %>
  9. </%def>
  10. <%def name="center_panel()">
  11. ## <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${h.url_for( controller="page", action="list" )}"> </iframe>
  12. <div style="overflow: auto; height: 100%;">
  13. <div class="page-container" style="padding: 10px;">
  14. ${grid}
  15. <br><br>
  16. <h2>Pages shared with you by others</h2>
  17. %if shared_by_others:
  18. <table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%">
  19. <tr class="header">
  20. <th>Title</th>
  21. <th>Owner</th>
  22. <th></th>
  23. </tr>
  24. %for i, association in enumerate( shared_by_others ):
  25. <% page = association.page %>
  26. <tr>
  27. <td>
  28. <a class="menubutton" id="shared-${i}-popup" href="${h.url_for( action='display_by_username_and_slug', username=page.user.username, slug=page.slug)}">${page.title}</a>
  29. </td>
  30. <td>${page.user.username}</td>
  31. <td>
  32. <div popupmenu="shared-${i}-popup">
  33. <a class="action-button" href="${h.url_for( action='display_by_username_and_slug', username=page.user.username, slug=page.slug)}" target="_top">View</a>
  34. </div>
  35. </td>
  36. </tr>
  37. %endfor
  38. </table>
  39. %else:
  40. No pages have been shared with you.
  41. %endif
  42. </div>
  43. </div>
  44. </%def>