/templates/page/index.mako
Mako | 54 lines | 43 code | 10 blank | 1 comment | 3 complexity | 1b7b41653b234d8250075b4b63f60a74 MD5 | raw file
1<%inherit file="/webapps/galaxy/base_panels.mako"/> 2 3<%def name="init()"> 4<% 5 self.has_left_panel=False 6 self.has_right_panel=False 7 self.active_view="page" 8 self.message_box_visible=False 9%> 10</%def> 11 12<%def name="center_panel()"> 13 14 ## <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> 15 16 <div style="overflow: auto; height: 100%;"> 17 <div class="page-container" style="padding: 10px;"> 18 ${grid} 19 20 <br><br> 21 <h2>Pages shared with you by others</h2> 22 23 %if shared_by_others: 24 <table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%"> 25 <tr class="header"> 26 <th>Title</th> 27 <th>Owner</th> 28 <th></th> 29 </tr> 30 %for i, association in enumerate( shared_by_others ): 31 <% page = association.page %> 32 <tr> 33 <td> 34 <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> 35 </td> 36 <td>${page.user.username}</td> 37 <td> 38 <div popupmenu="shared-${i}-popup"> 39 <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> 40 </div> 41 </td> 42 </tr> 43 %endfor 44 </table> 45 %else: 46 47 No pages have been shared with you. 48 49 %endif 50 51 </div> 52 </div> 53 54</%def>