Skip to content

Commit

Permalink
Add colors to success/failures in search result (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Jan 30, 2025
1 parent 21a9ba6 commit fda5a0e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/views/search.pug
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ block content
td.is-capitalized
- let testOnClick = 'addToSearch(\'testType:' + test.test_type + '\')';
a(role='button' onclick=testOnClick title='Add test type to search') #{test.test_type}
td #{test.status}
td
if test.status === 'completed'
span.has-text-success #{test.status}
else if test.status === 'failed'
span.has-text-danger #{test.status}
else
span #{test.status}
td
- let browserOnClick = 'addToSearch(\'browser:' + test.browser_name + '\')';
a(role='button' onclick=browserOnClick title='Add browser to search') #{test.browser_name}
Expand Down

0 comments on commit fda5a0e

Please sign in to comment.