diff --git a/lib/galaxy/web/controllers/mobile.py b/lib/galaxy/web/controllers/mobile.py index 145274c0a08..cc2bf83c5cb 100644 --- a/lib/galaxy/web/controllers/mobile.py +++ b/lib/galaxy/web/controllers/mobile.py @@ -26,6 +26,15 @@ class Mobile( BaseController ): dataset = trans.app.model.HistoryDatasetAssociation.get( id ) assert dataset.history.user == trans.user return trans.fill_template( "mobile/dataset/detail.mako", dataset=dataset ) + + @web.expose + def dataset_peek( self, trans, id ): + if trans.user is None: trans.response.send_redirect( url_for( action='index' ) ) + dataset = trans.app.model.HistoryDatasetAssociation.get( id ) + assert dataset.history.user == trans.user + yield "
" + yield dataset.display_peek() + yield "" def __login( self, trans, email="", password="" ): email_error = password_error = None diff --git a/static/june_2007_style/blue/iphone.css b/static/june_2007_style/blue/iphone.css index 833c5e18efd..824c8a7cf39 100644 --- a/static/june_2007_style/blue/iphone.css +++ b/static/june_2007_style/blue/iphone.css @@ -238,6 +238,8 @@ body > .dialog { color: #999999; } + + input:not(input[type|=radio]):not(input[type|=checkbox]) { box-sizing: border-box; -webkit-box-sizing: border-box; @@ -276,6 +278,8 @@ body > .panel { border-bottom: 1px solid #999999; -webkit-border-radius: 0; text-align: right; + overflow: hidden; + text-overflow: ellipsis; } fieldset > .row:last-child { @@ -305,6 +309,16 @@ fieldset > .row:last-child { font-weight: bold; } +.row > a { + font-weight: bold; + text-align: left; + display: block; + padding: 8px 32px 8px 14px; + text-decoration: none; + color: inherit; + background: url(../iui/listArrow.png) no-repeat right center; +} + .row > .error { height: 25px; text-align: left; diff --git a/static/june_2007_style/iphone.css.tmpl b/static/june_2007_style/iphone.css.tmpl index c0840084f2d..2ea0267ec02 100644 --- a/static/june_2007_style/iphone.css.tmpl +++ b/static/june_2007_style/iphone.css.tmpl @@ -239,6 +239,8 @@ body > .dialog { color: #999999; } + + input:not(input[type|=radio]):not(input[type|=checkbox]) { box-sizing: border-box; -webkit-box-sizing: border-box; @@ -277,6 +279,8 @@ body > .panel { border-bottom: 1px solid #999999; -webkit-border-radius: 0; text-align: right; + overflow: hidden; + text-overflow: ellipsis; } fieldset > .row:last-child { @@ -306,6 +310,16 @@ fieldset > .row:last-child { font-weight: bold; } +.row > a { + font-weight: bold; + text-align: left; + display: block; + padding: 8px 32px 8px 14px; + text-decoration: none; + color: inherit; + background: url(../iui/listArrow.png) no-repeat right center; +} + .row > .error { height: 25px; text-align: left; diff --git a/static/june_2007_style/make_style.py b/static/june_2007_style/make_style.py index 5d62c7f1f56..0e56bff40aa 100755 --- a/static/june_2007_style/make_style.py +++ b/static/june_2007_style/make_style.py @@ -26,6 +26,7 @@ templates = [ ( "base.css.tmpl", "base.css" ), ( "library.css.tmpl", "library.css"), ( "history.css.tmpl", "history.css" ), ( "tool_menu.css.tmpl", "tool_menu.css" ), + ( "iphone.css.tmpl", "iphone.css" ), ( "reset.css.tmpl", "reset.css" ) ] images = [ diff --git a/templates/mobile/dataset/detail.mako b/templates/mobile/dataset/detail.mako index 2e42c0b8f74..3445bfe7ede 100644 --- a/templates/mobile/dataset/detail.mako +++ b/templates/mobile/dataset/detail.mako @@ -31,17 +31,11 @@ ${dataset.ext}