app/views/collection_json_browser/home/index.html in collection-json-browser-0.0.1 vs app/views/collection_json_browser/home/index.html in collection-json-browser-0.0.2

- old
+ new

@@ -36,11 +36,18 @@ <th>rel</th> <th>name</th> <th>prompt</th> <th>get</th> </tr> - <tr ng-include src="'links.html'" ng-repeat="link in collection.links"> + <tr ng-repeat="link in collection.links"> + <td>{{link.rel}}</td> + <td>{{link.name}}</td> + <td>{{link.prompt}}</td> + <td ng-switch on="link.render"> + <img ng-switch-when="image" ng-src={{link.href}} title={{link.rel}} width=150/> + <a ng-switch-default href="" ng-click="goTo(link.href)">{{link.href}}</a> + </td> </tr> </table> </div> </div> @@ -91,10 +98,17 @@ <th>rel</th> <th>name</th> <th>prompt</th> <th>get</th> </tr> - <tr ng-include src="'links.html'" ng-repeat="link in item.links"> + <tr ng-repeat="link in item.links"> + <td>{{link.rel}}</td> + <td>{{link.name}}</td> + <td>{{link.prompt}}</td> + <td ng-switch on="link.render"> + <img ng-switch-when="image" ng-src={{link.href}} title={{link.rel}} width=150/> + <a ng-switch-default href="" ng-click="goTo(link.href)">{{link.href}}</a> + </td> </tr> </table> </div> </div> </li>