[api] move issue rendering out of the models into views