Adding templates for a listing of last documents