Skip to content

Commit

Permalink
Added front end feature flag replies based on priority level
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshar committed Feb 25, 2025
1 parent 20c01e0 commit 21e045d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Binary file modified dump.rdb
Binary file not shown.
7 changes: 7 additions & 0 deletions nodebb-theme-harmony/templates/partials/topic/post.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
<div class="d-flex align-items-center gap-1 flex-grow-1 justify-content-end">
<span class="bookmarked opacity-0 text-primary"><i class="fa fa-bookmark-o"></i></span>
<a href="{config.relative_path}/post/{./pid}" class="post-index text-muted d-none d-md-inline">#{increment(./index, "1")}</a>
{{{ if (posts.priorityLevel == "3") }}}
<i class="fas fa-flag" style="color:red;" title="High Priority"></i>
{{{ else if (posts.priorityLevel == "2") }}}
<i class="fas fa-flag" style="color:yellow;" title="Medium Priority"></i>
{{{ else if (posts.priorityLevel == "1") }}}
<i class="fas fa-flag" style="color:green;" title="Low Priority"></i>
{{{ end }}}
</div>
</div>

Expand Down
9 changes: 0 additions & 9 deletions public/src/client/topic/postTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,6 @@ define('forum/topic/postTools', [
onReplyClicked($(this), tid);
});

$('.topic').on('click', '[component="topic/reply-as-topic"]', function () {
translator.translate(`[[topic:link-back, ${ajaxify.data.titleRaw}, ${config.relative_path}/topic/${ajaxify.data.slug}]]`, function (body) {
hooks.fire('action:composer.topic.new', {
cid: ajaxify.data.cid,
body: body,
});
});
});

postContainer.on('click', '[component="post/bookmark"]', function () {
return bookmarkPost($(this), getData($(this), 'data-pid'));
});
Expand Down

0 comments on commit 21e045d

Please sign in to comment.