*You can see the four buttons by creating any action that doesn't have a
view explicitly defined for it. So you could add an action to the welcome
app default.py controller:*
def action_without_a_view():
return dict(message='Buttons are below...')
Then browse to localhost:8000/welcome/default/action_without_a_view/
*The relevant HTML is in generic.html:*
<button
onclick="document.location='{{=URL("admin","default","design",args=request.application)}}'">admin</button>
<button onclick="jQuery('#request').slideToggle()">request</button>
<div class="hidden"
id="request"><h2>request</h2>{{=BEAUTIFY(request)}}</div>
<button onclick="jQuery('#session').slideToggle()">session</button>
<div class="hidden"
id="session"><h2>session</h2>{{=BEAUTIFY(session)}}</div>
<button onclick="jQuery('#response').slideToggle()">response</button>
<div class="hidden"
id="response"><h2>response</h2>{{=BEAUTIFY(response)}}</div>
<script>jQuery('.hidden').hide();</script>
*I removed the "visibility: hidden;" attribute from line 232 of base.css and
it fixes the problem. This change does not seem to break anything else...*
John
On Fri, Dec 10, 2010 at 6:38 AM, Christopher Steel <[email protected]>wrote:
> Hi John,
>
> .hidden is part of the Web2py base.css
>
> I am having difficulty finding the buttons you are referring to, how
> about a url or perhaps the html where .hidden is being applied.
>
> are you talking about in appadmin under state?
>
> http://127.0.0.1:8000/a/appadmin/state
>
>
>
> Chris
>
> On Dec 9, 1:41 am, John Kim <[email protected]> wrote:
> > Thanks~
> >
> > Comparing these different themes, I found a bug in the current 1.89.5
> > theme:
> > The default view shows four buttons: admin, request, session, and
> > response. The last three buttons should expand to show some useful
> > information.
> > However, the information has a CSS visibility: hidden; property so it
> > can't be seen! This property was inherited from div#request_hidden
> > (base.css:232).
> > The information becomes visible if I uncheck this property from Chrome
> > developer tools.
> >
> > How should this be fixed? Is there a reason the CSS file sets the
> > visibility to hidden?
> >
> > John-Kim
> >
> > On Dec 8, 4:39 am, Chris Steel <[email protected]> wrote:
> >
> > > I was playing with plugin_layout and could not resist the temptation to
> > > bring back the past. Of course then you might want to get back the
> current
> > > Web2py theme, so I did one for that as well.
> >
> > > Untested,
> >
> > > Have fun...
> >
> > > --
> > > Christopher Steel
> >
> > > Voice of Access
> >
> > > web2py.plugin.layout_BlankBluegreen.w2p
> > > 77KViewDownload
> >
> > > web2py.plugin.layout_blank_1_81_5.w2p
> > > 60KViewDownload
> >
> > > web2py.plugin.layout_1_89_5.w2p
> > > 186KViewDownload
>