Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.ns('App.Template');
- App.Template.StationList = new Ext.XTemplate(
- '<tpl for=".">',
- '<div class="app-station-list">',
- '<span class="app-stop">{stop}</span> <span class="app-direction">> {direction}</span>',
- '<tpl for="lines">',
- '<tpl if="busses.length > 0">',
- '<p><span class="app-line app-bus"></span>',
- '<tpl for="busses">',
- '{.} ',
- '</tpl>',
- '</p>',
- '</tpl>',
- '<tpl if="subways.length > 0">',
- '<p><span class="app-line app-subway"></span>',
- '<tpl for="subways">',
- '{.} ',
- '</tpl>',
- '</p>',
- '</tpl>',
- '<tpl if="trams.length > 0">',
- '<p><span class="app-line app-tram"></span>',
- '<tpl for="trams">',
- '{.} ',
- '</tpl>',
- '</p>',
- '</tpl>',
- '</tpl>',
- '</div>',
- '</tpl>'
- );
Add Comment
Please, Sign In to add comment