I'm trying to render the author field in a custom display template to show the Lync presence icon.
I would like to get a result similar to this template that displays the presence and the name. But i'm fairly new to display templates, and very new to JavaScript so i don't really know where to look and after what.
I was looking through some different OOTB templates and stumbled over the one called Common Hover Panel Body and there seem to be some JavaScript doing the work in there but i'm unsure what to extract. Has anyone done this before?