diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js
index e3f10ba528..93c7961dbc 100644
--- a/public/src/modules/helpers.common.js
+++ b/public/src/modules/helpers.common.js
@@ -12,6 +12,7 @@ module.exports = function (utils, Benchpress, relative_path) {
escape,
stripTags,
buildCategoryIcon,
+ buildCategoryLabel,
generateCategoryBackground,
generateChildrenCategories,
generateTopicClass,
@@ -88,6 +89,17 @@ module.exports = function (utils, Benchpress, relative_path) {
return `${category.icon ? `` : ''}`;
}
+ function buildCategoryLabel(category) {
+ if (!category) {
+ return '';
+ }
+
+ return `
+ ${category.icon ? `` : ''}
+ ${category.name}
+ `;
+ }
+
function generateCategoryBackground(category) {
if (!category) {
return '';