Add Publish/Unpublish button to quicklinks

I'm having a hard time making this function and wonder if you can help.

In the quick link line under each post title (in the backend), I'd like to add a PUBLISH link. Pressing it publishes the post (if it is set at draft) or un-publishes it (if it is set at published). Do you know what the function would be to add such functionality? I can't find anything online about it and it seems like such a simple thing.

Thanks! Mike