diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-12-09 00:17:52 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-12-09 00:17:52 +0100 |
commit | 7cf4924c983d62fef25cf5eeaf4647f7220d818d (patch) | |
tree | 22090d371135cf5e3233016e549d816fb86063ed /imdb-lookup | |
parent | a6ff2d8166723026b3db0092399fe6f694fa0750 (diff) | |
download | scripts-7cf4924c983d62fef25cf5eeaf4647f7220d818d.tar.gz scripts-7cf4924c983d62fef25cf5eeaf4647f7220d818d.zip |
tomato
Diffstat (limited to 'imdb-lookup')
-rw-r--r-- | imdb-lookup/index.jinja2.html | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index a3cf411..dfdb9c7 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -28,7 +28,17 @@ .td2 .on { color: blue; } .td3 .on { color: red; } .td4 .on { color: black; } - .td1 .off, .td2 .off, .td3 .off, .td4 .off, .td5 .off{ color: #c0c0c0; } + .td1 .off, .td2 .off, .td4 .off, .td5 .off{ color: #c0c0c0; } + .tomato { + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACd0lEQVQ4y4WTS0iUYRSGn/+fcUQdzZwZRnDUmsYLUUQXaooC29uiaFVUFLQLXGSSRJtoJ102rSKiWtSmC7SLLi4iUhdBhKBoVmqW02/jODPOzPd/32nhrWiyszrn5ZyXc3kPrGJbu+Id/MfsYmD8WKsF4M+qSwfObY2vRuApBm5rX39056HoLTM8G6pcVxmN7qurHuqdHCiWay054c211O8N1YUrfc9qass2Dg3nTNXgD7va76O6LZwPOoWrnXcTN4NTH8eKEgDcObm983nU1yOlNqbUQ85xCTWVEXw3R1nK5X2Djy1z8vBCT99hJxIjMDGyQtC7pfn6dIXdcWDKxecVjnc30PRqhs+tFRDycePiODbwotbGCZT0HX85GAewnEgMYJcNb03Yw/NmH08aS6nHors/DZ8U50+HOfIgwSbHLCxOQFucAm5bAE4k9pRyq93T4qO8sQJvqBylNLnJDHp0noGcgAU7Jt3fJ3YCEyNBLwBCO+UWVqWXQrAMWsKYZBY7qxB/nt3jBcZKVyoFUEgAwLuMasAVUBqdzCLzCpRGtKCASFqW03IipGQh9i7e4g0Z2WNmXKyvWWTeXSCaziM/DShBgDxCRoSfxpARowG8CdYAXKEge8wXhSjB9ucRDeK4yHeNArIipMQwYwzftUK0exnA0un+Eo9/p3IisVdAG7KoDllsF2EOIWk0Ca355uZJF/LjnelUA4C9WExgYmQ/8BhrYUk5S0hi+GY0465itJDnQyZFIpt5dzYUi96vqvlTiUvKSkRi8XmRrlkxB6eNJqEVSaVIqtxrv1jXzmTnHt2pquFEaqb4d03Ubfjn592rWvsX9guv1i7Q6dsNWAAAAABJRU5ErkJggg==) no-repeat center; + width: 16px; + height: 16px; + padding: 1px; + display: inline-block; + } + .td3 .off { + opacity: 0.1; + } .poster { margin: 10px; width: 185px; @@ -98,16 +108,24 @@ </td> {% if userMeter %} <td class="td2" title="Rotten tomatoes user rating: {{userMeter}}%"> - <span class="off">{{ " ".join(["☆"] * (10-int(userMeter/10))) }}</span> - <span class="on">{{ " ".join(["★"] * int(userMeter/10)) }}</span> + <span class="off">{{ " ".join(["☆"] * (10-int(userMeter/10))) }}</span> + <span class="on">{{ " ".join(["★"] * int(userMeter/10)) }}</span> </td> {% else %} <td class="td2"></td> {% endif %} {% if fresh %} <td class="td3" title="Rotten tomatoes: {{fresh}}% fresh"> - <span class="off">{{ " ".join(["☆"] * (10-int(fresh/10))) }}</span> - <span class="on">{{ " ".join(["★"] * int(fresh/10)) }}</span> + <span class="off"> + {% for i in range(int(fresh/10),10) %} + <span class="tomato"> </span> + {% endfor %} + </span> + <span class="on"> + {% for i in range(0, int(fresh/10)) %} + <span class="tomato"> </span> + {% endfor %} + </span> </td> {% else %} <td class="td3"></td> |