Subversion Repositories SmartDukaan

Rev

Rev 3499 | Rev 4205 | 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>
3339 mandeep.dh 22
            </tr>
23
        </thead>
24
        <tbody>
25
            #foreach($activity in $action.getActivities())
26
            <tr id="activity-row-$activity.getId()">
27
                <td>
28
                    <a alt="Show Activity Details" title="Show Activity Details" href="#" userId="$action.getUserId()" activityId="$activity.getId()" class="show-activity-details">
29
                        $activity.getId()
30
                    </a>
31
                </td>
4142 mandeep.dh 32
                <td class="truncated-text">$activity.getType().name()</td>
33
                <td class="truncated-text"><pre>$activity.getDescription()</pre></td>
34
                <td class="truncated-text">$action.convertDate($activity.getCreationTimestamp())</td>
35
                <td class="truncated-text">$action.getAgent($activity.getCreatorId()).getEmailId()</td>
3405 mandeep.dh 36
                #if($action.getUserId())
37
                #else
38
                <td >
39
                #if($activity.isSetCustomerId())
40
                    #set($customerEmailId = $action.getUser($activity.getCustomerId()).getEmail())
41
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$customerEmailId">
42
                        <span class="truncated-text">
43
                            $customerEmailId
44
                        </span>
45
                    </a>
46
                #else
47
                    #if($activity.getCustomerEmailId())
48
                        $activity.getCustomerEmailId()
49
                    #else
50
                        N/A
51
                    #end
52
                #end
53
                </td>
54
                #end
4142 mandeep.dh 55
                <td>
56
                    #set($ticketId = $activity.getTicketId())
57
                    #if ($activity.isSetTicketId())
58
                        <a alt="Show Ticket Details" title="Show Ticket Details" href="#" userId="$action.getUserId()" ticketId="$ticketId" activityId="$activity.getId()" class="show-ticket-details">
59
                            $ticketId
60
                        </a>
61
                    #else
62
                        N/A
63
                    #end
64
                </td>
65
                <td class="truncated-text">$activity.getTicketCategory().name()</td>
3339 mandeep.dh 66
            </tr>
67
            #end
68
        </tbody>
69
    </table>
70
</div>
71
<div id="bottom-infopane">
72
</div>
3499 mandeep.dh 73
#end