function Controller(){require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="matchTableRow",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var e=this,t={};e.__views.matchTableRow=Ti.UI.createView({backgroundGradient:Alloy.CFG.gradients.lightGrey,width:Ti.UI.FILL,height:46,id:"matchTableRow"}),e.__views.matchTableRow&&e.addTopLevelView(e.__views.matchTableRow),e.__views.score=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.bold},left:157,width:50,height:Ti.UI.FILL,textAlign:"center",touchEnabled:!1,id:"score"}),e.__views.matchTableRow.add(e.__views.score),e.__views.time=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.bold},backgroundGradient:Alloy.CFG.gradients.medGrey,width:45,height:Ti.UI.FILL,left:0,textAlign:"center",touchEnabled:!1,id:"time"}),e.__views.matchTableRow.add(e.__views.time),e.__views.teamHome=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.default},width:102,height:Ti.UI.FILL,textAlign:"right",left:55,touchEnabled:!1,id:"teamHome"}),e.__views.matchTableRow.add(e.__views.teamHome),e.__views.teamAway=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.default},width:102,height:Ti.UI.FILL,textAlign:"left",right:10,touchEnabled:!1,id:"teamAway"}),e.__views.matchTableRow.add(e.__views.teamAway),t.destroy=function(){},_.extend(e,e.__views);var a=(require("helpers"),require("alloy/moment")),o=arguments[0]||{};e.matchTableRow.matchId=o.id,e.matchTableRow.competition=o.competition,e.time.text="Played"===o.status?"FT":a.unix(o.time).format("HH:mm"),"Playing"===o.status&&(e.time.color="orange"),e.teamHome.text=o.teamHome,"Playing"===o.status&&(e.teamHome.color="orange"),e.teamAway.text=o.teamAway,"Playing"===o.status&&(e.teamAway.color="orange"),e.score.text="Played"===o.status?o.scoreHome+" - "+o.scoreAway:"-",_.extend(e,t)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;