From 9ea399694f2678fe99f14a9fdfd1056cad1759f0 Mon Sep 17 00:00:00 2001 From: carlfeberhard Date: Mon, 18 Apr 2016 14:05:22 -0400 Subject: [PATCH] UI, display_base: render links in header first This allows text to flow around them and for them to be positioned at/ near the top (and remain clickable). This is a stop-gap/kludge and what we'd really want to do is move away from absolutely positoned panels/layouts so elements like this can stretch more naturally around their contents. Fixes #2172 --- templates/display_base.mako | 9 +++---- templates/webapps/galaxy/history/display.mako | 27 +++++++++++++++---- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/templates/display_base.mako b/templates/display_base.mako index f63a2262f15..d80d31d3347 100644 --- a/templates/display_base.mako +++ b/templates/display_base.mako @@ -124,8 +124,11 @@ href_to_user_items = href_to_user_items.replace( 'xxx', 'f-username') %> -
+
+
+ ${self.render_item_links( item )} +
%if item.published: Published ${item_plural} | ${item.user.username} @@ -137,10 +140,6 @@ Private ${get_class_display_name( item.__class__ )} %endif | ${get_item_name( item ) | h} - -
- ${self.render_item_links( item )} -
diff --git a/templates/webapps/galaxy/history/display.mako b/templates/webapps/galaxy/history/display.mako index e790f370e3e..025691a6b11 100644 --- a/templates/webapps/galaxy/history/display.mako +++ b/templates/webapps/galaxy/history/display.mako @@ -13,9 +13,28 @@ <%def name="stylesheets()"> ${parent.stylesheets()} @@ -41,9 +60,7 @@ <%def name="render_item( history, datasets )"> - -
-
+