Last update on forum index page

I have made some adjustment to the default theme files it now looks like this:
In the last Colom I want to display the last activitie in that category something like this
But I don’t know which function I need and how I need to implement it in the theme.
The code looks something like this