View difference between Paste ID: K9ZPWScc and YT1W1XKw
SHOW: | | - or go back to the newest paste.
1
<table class="table table-striped">
2
                            <thead>
3
                                <tr>
4
                                    <th>Name</th>
5
                                    <th>Last Modified By</th>
6
                                    <th>Last Modified On</th>
7
                                    <th>Status</th>
8
                                </tr>
9
                            </thead>
10
                            <tbody data-ng-repeat="n in news" data-ng-switch on="newsDataCollapse[$index]">
11
                                <tr title="Click to toggle collapse/expand info of this news" data-ng-click="selectTableRow($index, news.newsId)" >
12
                                    <td>{{n.name}}</td>
13
                                    <td>{{n.updatedBy}}</td>
14
                                    <td>{{n.updatedOn}}</td>
15
                                    <td>{{n.status}}</td>
16
                                </tr>
17
                                <tr data-ng-switch-when="true">
18
                                    <td colspan="4">
19
                                        <div ng-if="attachments">
20
                                            attachments: 
21-
                                            <li ng-repeat="att in attachments">{{att._embedded.attachment.name}}</li>
21+
                                            <li ng-repeat="att in attachments">{{att.name}}</li>
22
                                        </div>
23
                                        <div ng-if="attachments.length==0">
24
                                            WIs: 
25
                                            <p>No attachments attached to that news</p>
26
                                        </div>
27
                                        <div>
28
                                            comments: {{n.comments}}
29
                                        </div>
30
                                    </td>
31
                                </tr>
32
                            </tbody>
33
                        </table>