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="visualization" |
---|
8 | self.message_box_visible=False |
---|
9 | %> |
---|
10 | </%def> |
---|
11 | |
---|
12 | <%def name="center_panel()"> |
---|
13 | |
---|
14 | <div style="overflow: auto; height: 100%;"> |
---|
15 | <div class="page-container" style="padding: 10px;"> |
---|
16 | ${h.to_unicode( grid )} |
---|
17 | |
---|
18 | <br><br> |
---|
19 | <h2>Visualizations shared with you by others</h2> |
---|
20 | |
---|
21 | %if shared_by_others: |
---|
22 | <table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%"> |
---|
23 | <tr class="header"> |
---|
24 | <th>Title</th> |
---|
25 | <th>Owner</th> |
---|
26 | <th></th> |
---|
27 | </tr> |
---|
28 | %for i, association in enumerate( shared_by_others ): |
---|
29 | <% visualization = association.visualization %> |
---|
30 | <tr> |
---|
31 | <td> |
---|
32 | <a class="menubutton" id="shared-${i}-popup" href="${h.url_for( action='display_by_username_and_slug', username=visualization.user.username, slug=visualization.slug)}">${visualization.title}</a> |
---|
33 | </td> |
---|
34 | <td>${visualization.user.username}</td> |
---|
35 | <td> |
---|
36 | <div popupmenu="shared-${i}-popup"> |
---|
37 | <a class="action-button" href="${h.url_for( action='display_by_username_and_slug', username=visualization.user.username, slug=visualization.slug)}" target="_top">View</a> |
---|
38 | </div> |
---|
39 | </td> |
---|
40 | </tr> |
---|
41 | %endfor |
---|
42 | </table> |
---|
43 | %else: |
---|
44 | |
---|
45 | No visualizations have been shared with you. |
---|
46 | |
---|
47 | %endif |
---|
48 | |
---|
49 | </div> |
---|
50 | </div> |
---|
51 | |
---|
52 | </%def> |
---|