add humanized tag string for posts

This commit is contained in:
albert
2012-11-02 18:22:08 -04:00
parent ca280ce218
commit 8da4eabb96
6 changed files with 15 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ class PostPresenter < Presenter
end
def humanized_tag_string
@post.tag_string.split(/ /).join(", ").tr("_", " ")
@post.tag_string.split(/ /).slice(0, 25).join(", ").tr("_", " ")
end
def humanized_essential_tag_string