Changeset 7753 for branches/3.15-stable


Ignore:
Timestamp:
Nov 13, 2019, 12:01:17 PM (2 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2198: Add "Has been read" column to the message list view

Location:
branches/3.15-stable/www/my_base/messages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.15-stable/www/my_base/messages/index.jsp

    r7604 r7753  
    6060<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6161<%!
    62   private static final ItemContext defaultContext = Base.createDefaultContext("timeSent", "all");
     62  private static final ItemContext defaultContext = Base.createDefaultContext("timeSent", "name,from,timeSent,read,description");
    6363  private static final Item itemType = Item.MESSAGE;
    6464%>
  • branches/3.15-stable/www/my_base/messages/list_messages.jsp

    r7604 r7753  
    168168        exportable="true"
    169169        formatter="<%=dateTimeFormatter%>"
     170      />
     171      <tbl:columndef
     172        id="read"
     173        property="read"
     174        datatype="boolean"
     175        title="Has been read"
     176        sortable="true"
     177        filterable="true"
     178        exportable="true"
    170179      />
    171180      <tbl:columndef
     
    391400                <tbl:cell column="from"><%=HTML.encodeTags(item.getFrom())%></tbl:cell>
    392401                <tbl:cell column="timeSent" value="<%=item.getTimeSent()%>" />
     402                <tbl:cell column="read" value="<%=item.isRead()%>" />
    393403                <tbl:cell column="description"><%=HTML.encodeTags(item.getDescription())%></tbl:cell>
    394404                <tbl:cell column="job"><base:propertyvalue item="<%=item%>" property="job" enableEditLink="<%=editLink%>" enablePropertyLink="<%=mode.hasPropertyLink()%>"/></tbl:cell>
Note: See TracChangeset for help on using the changeset viewer.