function Controller(){require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="newsTableRow",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var e=this,l={};e.__views.newsTableRow=Ti.UI.createView({layout:"horizontal",height:91,id:"newsTableRow"}),e.__views.newsTableRow&&e.addTopLevelView(e.__views.newsTableRow),e.__views.image=Ti.UI.createImageView({width:130,touchEnabled:!1,id:"image"}),e.__views.newsTableRow.add(e.__views.image),e.__views.container=Ti.UI.createView({backgroundGradient:Alloy.CFG.gradients.lightGrey,backgroundColor:Alloy.CFG.colors.white,touchEnabled:!1,id:"container"}),e.__views.newsTableRow.add(e.__views.container),e.__views.labelCategory=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.bold},color:Alloy.CFG.colors.lightGreen,width:128,top:4,left:8,textAlign:Ti.UI.TEXT_ALIGNMENT_LEFT,touchEnabled:!1,id:"labelCategory"}),e.__views.container.add(e.__views.labelCategory),e.__views.labelDateTime=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.default},color:Alloy.CFG.colors.black,width:45,top:4,right:6,textAlign:Ti.UI.TEXT_ALIGNMENT_RIGHT,touchEnabled:!1,id:"labelDateTime"}),e.__views.container.add(e.__views.labelDateTime),e.__views.labelHeadline=Ti.UI.createLabel({font:{fontSize:14,fontFamily:Alloy.CFG.fonts.default},color:Alloy.CFG.colors.black,left:8,right:8,bottom:8,touchEnabled:!1,id:"labelHeadline"}),e.__views.container.add(e.__views.labelHeadline),l.destroy=function(){},_.extend(e,e.__views);var a=(require("helpers"),require("alloy/moment")),t=arguments[0]||{};e.newsTableRow.newsId=t.id,e.image.image=t.image,e.labelCategory.text=t.category.toUpperCase(),e.labelDateTime.text=a.unix(t.datetime).format(a.unix(t.datetime).isAfter(a().startOf("day"))?"HH:mm":"D MMM"),e.labelHeadline.text=t.headline,_.extend(e,l)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;