Changeset 7948


Ignore:
Timestamp:
May 10, 2021, 8:11:06 AM (7 months ago)
Author:
Nicklas Nordborg
Message:

References #2250: Named transactions

Added transaction name to the change history list and view pages.

Location:
trunk/www/common/history
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/common/history/index.jsp

    r7914 r7948  
    7171<%!
    7272  private static final ItemContext defaultContext =
    73     Base.createDefaultContext("-$hst.time", "time,changeType,user,changeInfo");
     73    Base.createDefaultContext("-$hst.time", "time,changeType,changeInfo,transaction,user");
    7474  private static final Item itemType = Item.CHANGEHISTORY;
    7575 
  • trunk/www/common/history/list_history.jsp

    r7943 r7948  
    151151        exportable="true"
    152152        show="always"
     153      />
     154      <tbl:columndef
     155        id="transaction"
     156        property="$hst.name"
     157        exportproperty="changeHistory.name"
     158        datatype="string"
     159        title="Transaction"
     160        sortable="true"
     161        filterable="true"
     162        exportable="true"
    153163      />
    154164      <%
     
    402412                    title="<%=tooltip%>" style="white-space: nowrap;"><%=dateFormatter.format(item.getTime())%></div>
    403413                  </tbl:cell>
     414                <tbl:cell column="transaction"><%=HTML.encodeTags(item.getName())%></tbl:cell>
    404415                <tbl:cell column="id"><%=item.getId()%></tbl:cell>
    405416                <tbl:cell column="changeType"><%=item.getChangeType()%></tbl:cell>
  • trunk/www/common/history/view_history.jsp

    r7166 r7948  
    8585      </tr>
    8686      <tr>
     87        <th>Transaction</th>
     88        <td><%=HTML.encodeTags(history.getName())%></td>
     89      </tr>
     90      <tr>
    8791        <th>Time</th>
    8892        <td><%=changeTime%></td>
Note: See TracChangeset for help on using the changeset viewer.