protalk/protalk — pull request #118 by Tocacar (2012-11-25 15:24:30+00:00)
Title: Add truncate method to category controller to prevent line-wrap on long names

@lineke, I'm not sure whether I've done this in the best possible way, but it does work. I tried to handle it in the Category.php entity class at first but that didn't work because the getMostUsedCategories query returns a multidimensional array instead of an array of objects, so I just made a method to loop through the arrays inside the controller class instead.

The category tab on the Explore page now needs to be fed by a different template I think (it currently uses the sidebar template) as there should really be more than two columns displayed here - looks a bit odd with only two, especially now that category names are being truncated. I'm happy to create a separate template for this, but just want to wait for your feedback on how I'm handling the truncation first.