Changeset 16197

Show
Ignore:
Timestamp:
14/07/08 09:44:16 (4 months ago)
Author:
julie
Message:

don't show add button if user doesn't have any bags to add to

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/intermine/webapp/main/resources/webapp/WEB-INF/classes/InterMineWebApp.properties

    r16195 r16197  
    432432 
    433433# TOOLBAR (above results and bag page) 
    434 toolbar.noLists = no lists saved 
     434toolbar.noLists = no lists available 
    435435 
    436436 
     
    785785projects.intro = All the projects in the ModEncode consortium. \ 
    786786                      NOTE:  All external links open in a new window. 
    787                        
  • trunk/intermine/webapp/main/resources/webapp/bagDetails.jsp

    r15810 r16197  
    3939        <li id="tool_bar_li_use"><img style="cursor: pointer;" src="images/icons/null.gif" width="43" height="25" title="Use this list in a template or a query" border="0" id="tool_bar_button_use" class="tool_bar_button"/></li> 
    4040        <c:if test="${myBag == 'true'}"> 
    41            <li id="tool_bar_li_edit"><img style="cursor: pointer;" src="images/icons/null.gif" width="56" height="25" alt="Edit" border="0" id="tool_bar_button_edit" class="tool_bar_button"></li> 
    42        </c:if> 
     41          <li id="tool_bar_li_edit"><img style="cursor: pointer;" src="images/icons/null.gif" width="56" height="25" alt="Edit" border="0" id="tool_bar_button_edit" class="tool_bar_button"></li> 
     42    </c:if> 
    4343        <li class="tool_bar_separator"><span>&nbsp;//&nbsp;</span></li> 
    4444        <li class="tool_bar_link"> 
     
    7474<div id="tool_bar_item_use" style="visibility:hidden;width:100px" class="tool_bar_item"> 
    7575    <html:link action="/modifyBagDetailsAction.do?useBag=1&bagName=${bag.name}">in a query</html:link><br/> 
    76    <html:link action="/templates">in a template</html:link> 
     76  <html:link action="/templates">in a template</html:link> 
    7777    <hr/> 
    7878    <a href="javascript:hideMenu('tool_bar_item_use')" ><fmt:message key="confirm.cancel"/></a> 
     
    8080 
    8181<div id="tool_bar_item_edit" style="visibility:hidden;width:300px" class="tool_bar_item"> 
    82    <%-- add selected to bag --%> 
     82  <%-- add selected to bag --%> 
    8383   <c:choose> 
    84    <c:when test="${!empty PROFILE.savedBags}"> 
     84   <c:when test="${!empty PROFILE.savedBags && PROFILE.savedBags.size > 1}"> 
    8585          Add selected to another list: 
    8686          <html:select property="existingBagName"> 
     
    100100    </c:otherwise> 
    101101    </c:choose> 
    102    <br/> 
     102  <br/><br/> 
    103103    <%-- remove selected from bag --%> 
    104104    <input type="submit" name="removeFromBag" id="removeFromBag" value="Remove selected" disabled="true" />