EBernhardson has submitted this change and it was merged. Change subject: Show grading colors on the instructions page ......................................................................
Show grading colors on the instructions page Change-Id: I08785aad95f79ad6e68d5f5e9455d79a9603bf3a --- M public/css/scoring.css M views/instructions.twig 2 files changed, 18 insertions(+), 10 deletions(-) Approvals: EBernhardson: Verified; Looks good to me, approved diff --git a/public/css/scoring.css b/public/css/scoring.css index 70e3de5..d4b919e 100644 --- a/public/css/scoring.css +++ b/public/css/scoring.css @@ -2,16 +2,17 @@ display: flex; align-items: center; } -.row.relevant { +.relevant { background-color: green; + color: white; } -.row.probably { +.probably { background-color: yellow; } -.row.maybe { +.maybe { background-color: orange; } -.row.irrelevant { +.irrelevant { background-color: red; } .errors p { diff --git a/views/instructions.twig b/views/instructions.twig index 791a222..1bd556a 100644 --- a/views/instructions.twig +++ b/views/instructions.twig @@ -1,5 +1,10 @@ {% extends 'layout.twig' %} +{% block head %} + {{ parent() }} + <link href="/css/scoring.css" rel="stylesheet" type="text/css"> +{% endblock %} + {% block content %} <div class="row"> <a href="{{ path('random_query') }}" class="btn btn-default">Continue to scoring</a> @@ -12,12 +17,14 @@ <p> You will be presented with a page containing the query at the very top and a list of results that could be relevant to the query. By tapping on the result - your relevance ranking will cycle from None to Irrelevant (red), Maybe Relevant - (orange), Probably Relevant (yellow), and Relevant (green). Tapping once more - after green will bring the result back to unrated. You must rate at least 80% - of the results to a query for the results to be saved. If you aren't sure select - 'Skip this query' and you will be taken to a new query to rate. Skipped queries - will not be shown to you again. + your relevance ranking will cycle from None to <span class="irrelevant"> + Irrelevant</span>, <span class="maybe">Maybe Relevant</span>, <span class="probably"> + Probably Relevant</span>, and <span class="relevant">Relevant</span>. Tapping + once more after <span class="relevant">green</span> will bring the result back + to unrated. You must rate at least 80% of the results to a query for the + results to be saved. If you aren't sure select 'Skip this query' and you will + be taken to a new query to rate. Skipped queries will not be shown to you + again. </p> <h3>What differentiates Relevant from Probably Relevant?</h3> -- To view, visit https://gerrit.wikimedia.org/r/286243 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I08785aad95f79ad6e68d5f5e9455d79a9603bf3a Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/discovery/discernatron Gerrit-Branch: master Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits