@import models.project.Tag

@(tag: Tag, tagCount: Int = 0)
@if(tag.data.isEmpty || tag.data.equals("null") || tagCount > 2) {
    <div class="tags">
        <span style="color: @tag.color.foreground; background-color:@tag.color.background; border-color: @tag.color.background" class="tag">@tag.name</span>
    </div>
} else {
    <div class="tags has-addons">
        <span style="color: @tag.color.foreground; background-color:@tag.color.background; border-color: @tag.color.background" class="tag">@tag.name</span>
        <span class="tag">@tag.data</span>
    </div>
}

@import models.project.Tag

@(tag: Tag, tagCount: Int = 0)
@if(tag.data.isEmpty || tag.data.equals("null") || tagCount > 2 || tag.data.length > 14) {
    <div class="tags">
        <span style="color: @tag.color.foreground; background-color:@tag.color.background; border-color: @tag.color.background" class="tag">@tag.name</span>
    </div>
} else {
    <div class="tags has-addons">
        <span style="color: @tag.color.foreground; background-color:@tag.color.background; border-color: @tag.color.background" class="tag">@tag.name</span>
        <span class="tag">@tag.data.take(14)</span>
    </div>
}

Put a limit to tag data length
Put a limit to tag data length

We don't want people spamming the front page with giant tags.

Signed-off-by: Jadon Fowler <4c6f3310c854e278fcc8fd2569105b3ac7d05f0e@gmail.com>
