Subversion Repositories SmartDukaan

Rev

Rev 4205 | Rev 5203 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3339 mandeep.dh 1
#set($messages = $action.getActionErrors())
2
#if($messages && $messages.size() != 0)
3
    #foreach($message in $messages)
4
        $message <br/>
5
    #end
6
#else
7
<div id="top-infopane">
8
    <table id="activity" class="display">
9
        <thead>
10
            <tr>
11
                <th>Activity Id</th>
4142 mandeep.dh 12
                <th>Type</th>
13
                <th>Description</th>
14
                <th>Timestamp</th>
15
                <th>Creator</th>
3405 mandeep.dh 16
                #if($action.getUserId())
17
                #else
18
                <th>Customer Id</th>
19
                #end
4142 mandeep.dh 20
                <th>Ticket Id</th>
21
                <th>Category</th>
4241 anupam.sin 22
				#if($action.getUserId())
23
				<th></th>
24
				#end
3339 mandeep.dh 25
            </tr>
26
        </thead>
27
        <tbody>
28
            #foreach($activity in $action.getActivities())
29
            <tr id="activity-row-$activity.getId()">
30
                <td>
31
                    <a alt="Show Activity Details" title="Show Activity Details" href="#" userId="$action.getUserId()" activityId="$activity.getId()" class="show-activity-details">
32
                        $activity.getId()
33
                    </a>
34
                </td>
4241 anupam.sin 35
                <td class="truncated-text" truncatedTextWidth="160">$activity.getType().name()</td>
36
                <td class="truncated-text" truncatedTextWidth="100"><pre>$activity.getDescription()</pre></td>
37
                <td class="truncated-text" truncatedTextWidth="90">$action.convertDate($activity.getCreationTimestamp())</td>
38
                <td class="truncated-text" truncatedTextWidth="90">$action.getAgent($activity.getCreatorId()).getEmailId()</td>
3405 mandeep.dh 39
                #if($action.getUserId())
40
                #else
41
                <td >
42
                #if($activity.isSetCustomerId())
43
                    #set($customerEmailId = $action.getUser($activity.getCustomerId()).getEmail())
44
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$customerEmailId">
4241 anupam.sin 45
                        <span class="truncated-text" truncatedTextWidth="50">
3405 mandeep.dh 46
                            $customerEmailId
47
                        </span>
48
                    </a>
49
                #else
50
                    #if($activity.getCustomerEmailId())
51
                        $activity.getCustomerEmailId()
52
                    #else
53
                        N/A
54
                    #end
55
                #end
56
                </td>
57
                #end
4142 mandeep.dh 58
                <td>
59
                    #set($ticketId = $activity.getTicketId())
60
                    #if ($activity.isSetTicketId())
61
                        <a alt="Show Ticket Details" title="Show Ticket Details" href="#" userId="$action.getUserId()" ticketId="$ticketId" activityId="$activity.getId()" class="show-ticket-details">
62
                            $ticketId
63
                        </a>
64
                    #else
65
                        N/A
66
                    #end
67
                </td>
4241 anupam.sin 68
                <td class="truncated-text" truncatedTextWidth="50">#if($activity.getTicketCategory()) $activity.getTicketCategory().name() #else N/A #end</td>
69
				#if($action.getUserId())
70
					<td>
71
					<span ><input type="button" class="smallButton" value="Mark Read" activityId="$activity.getId()" id="mark-as-read"/></span>
72
					</td>
73
                #end
3339 mandeep.dh 74
            </tr>
75
            #end
76
        </tbody>
77
    </table>
78
</div>
79
<div id="bottom-infopane">
80
</div>
3499 mandeep.dh 81
#end