Skip to content

Commit

Permalink
style: use red if it’s really low
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Jun 9, 2024
1 parent 7c92f03 commit 9b95570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ After fetching new proposed community notes, the text of the tweets that the not
{% endif %}

<div class="progress my-2" style="max-width: 500px;" role="progressbar">
<div class="progress-bar text-bg-{% if perc_fetched == 100 %}success{% else %}warning{% endif %}" style="width: {{ perc_fetched }}%">{{ perc_fetched }}% ({% include commify.html number=site.data.meta.total_fetched %} / {% include commify.html number=site.data.meta.total_tweets %})</div>
<div class="progress-bar text-bg-{% if perc_fetched == 100 %}success{% elsif perc_fetched < 50 %}danger{% else %}warning{% endif %}" style="width: {{ perc_fetched }}%">{{ perc_fetched }}% ({% include commify.html number=site.data.meta.total_fetched %} / {% include commify.html number=site.data.meta.total_tweets %})</div>
</div>
{{ perc_fetched }}% of tweets are searchable.

Expand Down

0 comments on commit 9b95570

Please sign in to comment.