CSR /JSLink
;(function(){
var priorityFiledContext = {};
priorityFiledContext.Templates = {};
priorityFiledContext.Templates.Header = "<div id='CompanyAnnounce'>";
priorityFiledContext.Templates .Footer="</div>";
priorityFiledContext.Templates.Item = priorityFiledTemplate;
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(priorityFiledContext);
})();
function priorityFiledTemplate(ctx) {
var oItem = ctx.CurrentItem;
var render = "<table id='tblAnnouncement'><tr><td><h4><b>"+oItem["Title"]+"</b></h4></td></tr>";
render += "<tr><td style='align:left;color:red;'><span style='color:black;'>By </span>"+oItem["Author"][0].title+"</td></tr>";
render += "<tr><td style='color:red;float:right;'> "+oItem["Created"]+"</td></tr>";
render += "<tr><td ><p> "+oItem["Body"]+"</p></td></tr>";
render += "</table>";
return render;
}