Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#360 closed enhancement (fixed)

Make subsections on view pages hideable

Reported by: Nicklas Nordborg Owned by: Martin Svensson
Priority: minor Milestone: BASE 2.13
Component: web Version:
Keywords: Cc:

Description

Some view pages for items have lots of information on them and they can get quite big. For example the view page for a role lists all members of that role. The view page for a plugin lists all configurations and job agents for that plugin.

It would be nice to have a feature that can hide/show those sections on demand. The setting should be remembered during the login session and possibly also between sessions. It should be easy enough to implement something in ItemContext? that can store the settings. It would require a bit more work to check all view pages and implement the show/hide functionality.

Change History (10)

comment:1 Changed 13 years ago by Nicklas Nordborg

(In [3610]) References #360: Make subsections on view pages hideable

Infrastructure is now in place. See below for examples.

comment:2 Changed 13 years ago by Nicklas Nordborg

It is simple to include on a page with the help of a taglib. Example from the test implementation on the View -> Array designs page (when viewing a single array design):

<base:section 
  id="batches" 
  title="<%="Array batches (" + batches.size() +")"%>"
  context="<%=cc%>"
  >
  Contents of section is here
</base:section>

A few notes:

  • The taglib uses an ItemContext? (=cc in the code above) to get the current show/hide status
  • When the user toggles the section it sends an Ajax request to the server that updates the context with the new status
  • Thus, the status is remembered during the session and between sessions
  • If the section inludes a list of things it looks better if the title includes the number of items in the list
  • The id attribute should be unique for a given context
  • The taglib can be used without context. See the javadoc for more info. The status will not be automatically remembered without a context.

comment:3 Changed 13 years ago by Nicklas Nordborg

(In [3868]) References #360: Make subsections on view pages hideable

  • Added subsections to experiments view page
  • Disallow browsers to cache update requests

comment:4 Changed 11 years ago by Martin Svensson

Owner: changed from base to Martin Svensson
Status: newassigned

comment:5 Changed 11 years ago by Martin Svensson

(In [5040]) References #360 Updating rest of the view pages in BASE, starting with plug-in related.

comment:6 Changed 11 years ago by Martin Svensson

Milestone: BASE 2.x+BASE 2.13

comment:7 Changed 11 years ago by Martin Svensson

(In [5042]) References #360 Covering the submenu items in 'Administrate' menu.

comment:8 Changed 11 years ago by Martin Svensson

(In [5044]) References #360 Covering the submenu items in 'Biomaterial LIMS' and 'Array LIMS' menus.

comment:9 Changed 11 years ago by Martin Svensson

Resolution: fixed
Status: assignedclosed

(In [5045]) Fixes #360 Make subsections on view pages hideable.

comment:10 Changed 11 years ago by Martin Svensson

(In [5055]) References #360 The quantity of inherited annotations is now displayed correctly in the list title.

Note: See TracTickets for help on using tickets.