Guest User

Untitled

a guest
Dec 12th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Ext.ns('App.Template');
  2. App.Template.StationList = new Ext.XTemplate(
  3. '<tpl for=".">',
  4. '<div class="app-station-list">',
  5. '<span class="app-stop">{stop}</span> <span class="app-direction">> {direction}</span>',
  6. '<tpl for="lines">',
  7. '<tpl if="busses.length > 0">',
  8. '<p><span class="app-line app-bus"></span>',
  9. '<tpl for="busses">',
  10. '{.}&nbsp;',
  11. '</tpl>',
  12. '</p>',
  13. '</tpl>',
  14. '<tpl if="subways.length > 0">',
  15. '<p><span class="app-line app-subway"></span>',
  16. '<tpl for="subways">',
  17. '{.}&nbsp;',
  18. '</tpl>',
  19. '</p>',
  20. '</tpl>',
  21. '<tpl if="trams.length > 0">',
  22. '<p><span class="app-line app-tram"></span>',
  23. '<tpl for="trams">',
  24. '{.}&nbsp;',
  25. '</tpl>',
  26. '</p>',
  27. '</tpl>',
  28. '</tpl>',
  29. '</div>',
  30. '</tpl>'
  31. );
Add Comment
Please, Sign In to add comment