/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
- <%inherit file="/webapps/galaxy/base_panels.mako"/>
- <%def name="init()">
- <%
- self.has_left_panel=False
- self.has_right_panel=False
- self.active_view="page"
- self.message_box_visible=False
- %>
- </%def>
- <%def name="center_panel()">
- ## <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>
- <div style="overflow: auto; height: 100%;">
- <div class="page-container" style="padding: 10px;">
- ${grid}
- <br><br>
- <h2>Pages shared with you by others</h2>
- %if shared_by_others:
- <table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr class="header">
- <th>Title</th>
- <th>Owner</th>
- <th></th>
- </tr>
- %for i, association in enumerate( shared_by_others ):
- <% page = association.page %>
- <tr>
- <td>
- <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>
- </td>
- <td>${page.user.username}</td>
- <td>
- <div popupmenu="shared-${i}-popup">
- <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>
- </div>
- </td>
- </tr>
- %endfor
- </table>
- %else:
- No pages have been shared with you.
- %endif
- </div>
- </div>
- </%def>