Changeset 6773


Ignore:
Timestamp:
Mar 16, 2015, 12:53:12 PM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #1325: Lists of items

Added "Sync date" column to list view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/itemlists/list_lists.jsp

    r6753 r6773  
    7474  import="java.util.Set"
    7575  import="java.util.HashSet"
     76  import="java.util.Date"
    7677%>
    7778<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
     
    139140  }
    140141  int numListed = 0;
     142  Formatter<Date> dateTimeFormatter = FormatterFactory.getDateTimeFormatter(sc);
    141143  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
    142144  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
     
    240242        filterable="true"
    241243        exportable="true"
     244      />
     245      <tbl:columndef
     246        id="syncDate"
     247        property="syncDate"
     248        datatype="timestamp"
     249        title="Sync date"
     250        sortable="true"
     251        filterable="true"
     252        exportable="true"
     253        formatter="<%=dateTimeFormatter%>"
    242254      />
    243255      <tbl:columndef
     
    530542                <tbl:cell column="id"><%=item.getId()%></tbl:cell>
    531543                <tbl:cell column="size"><%=item.getSize()%></tbl:cell>
     544                <tbl:cell column="syncDate" value="<%=item.getSyncDate()%>" />
    532545                <tbl:cell column="externalId"><%=HTML.encodeTags(item.getExternalId())%></tbl:cell>
    533546                <tbl:cell column="memberType"><%=item.getMemberType()%></tbl:cell>
Note: See TracChangeset for help on using the changeset viewer.