Ignore:
Timestamp:
Aug 20, 2009, 10:53:16 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #108: Logging the change history of an item

  • Enabled logging for experiments
  • Added "Change history" tab to experiments, plugin configuration and protocol
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/experiments/view_experiment.jsp

    r4889 r5069  
    5454  import="net.sf.basedb.clients.web.Base"
    5555  import="net.sf.basedb.clients.web.PermissionUtil"
     56  import="net.sf.basedb.clients.web.ChangeHistoryUtil"
    5657  import="net.sf.basedb.clients.web.util.HTML"
    5758  import="net.sf.basedb.util.Values"
     
    166167    {
    167168      if (TabControl.isActive(tabControlId, tabId)) return;
    168       if (tabId == 'overview' && tabId != '<%=tab%>')
     169      if ((tabId == 'overview' || tabId == 'history') && tabId != '<%=tab%>')
    169170      {
    170171        location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId;
     
    802803        %>
    803804      </t:tab>     
     805      <t:tab id="history" title="Change history"
     806        tooltip="Displays a log of all modifications made to this item"
     807        visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>">
     808        <%
     809        if ("history".equals(tab))
     810        {
     811          %>
     812          <jsp:include page="../../common/history/frameset.jsp">
     813            <jsp:param name="source_type" value="<%=itemType.name()%>" />
     814            <jsp:param name="source_id" value="<%=itemId%>" />
     815            <jsp:param name="ID" value="<%=ID%>" />
     816          </jsp:include>
     817          <%
     818        }
     819        %>
     820      </t:tab>
    804821      </t:tabcontrol>
    805822
Note: See TracChangeset for help on using the changeset viewer.