Skip to content

Commit

Permalink
Adding the topics urgent symbols on the list (#89)
Browse files Browse the repository at this point in the history
* Aded both tests that tests the functionality of the connection of isResolved

* Added the tests that test the functinality of making sure that the variable isreolve dis false by default

* I Added special condifitons for when the post is urgent to show the urgent symbols in the topics list

* Removed the coveralls test to push to rerun the tests

---------

Signed-off-by: mbfannan <[email protected]>
Co-authored-by: Lujain <[email protected]>
Co-authored-by: Lujain <[email protected]>
Co-authored-by: mbfannan <[email protected]>
  • Loading branch information
4 people authored Oct 5, 2023
1 parent c8a55ba commit 44d8616
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion test/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,6 @@ describe('Topic\'s', () => {
assert.strictEqual(body._header.tags.meta.find(t => t.name === 'description').content, 'topic content');
assert.strictEqual(body._header.tags.meta.find(t => t.property === 'og:description').content, 'topic content');
assert.strictEqual(tmpIsResolved, true);

done();
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
{{{ if (topics.isResolved == "true") }}}
<span style="color: green; float: right;">Resolved</span>
{{{ end }}}

{{{ if (topics.isUrgent == "true") }}}


Expand Down Expand Up @@ -158,6 +157,13 @@

<span style="color:red; margin-left:5px;">Urgent</span><i class="fa fa-exclamation-circle" style="color:red; margin-left:5px;"></i>
{{{end}}}
{{{end}}}

{{{ if (topics.isUrgent == "true") }}}
{{{ if ((topics.isPrivate == "false" ) || topics.isOwner) }}}

<span style="color:red; margin-left:5px;">Urgent</span><i class="fa fa-exclamation-circle" style="color:red; margin-left:5px;"></i>
{{{end}}}
{{{end}}}

{{{ if ((topics.isPrivate == "false" ) || topics.isOwner) }}}
Expand Down

0 comments on commit 44d8616

Please sign in to comment.