2 Commits c0901e0ef6 ... 4838fc3ffd

Author SHA1 Message Date
  guilmour ross 4838fc3ffd Merge branch 'master' of https://notabug.org/libreflix/libreflix 5 years ago
  guilmour ross b1df26d60d Update thumbanil with pretty crop 5 years ago
2 changed files with 2 additions and 2 deletions
  1. 1 1
      views/error/404.html
  2. 1 1
      views/home.html

+ 1 - 1
views/error/404.html

@@ -14,7 +14,7 @@
 			{% for watch in watches %}
 				<li class="col-md-3 thumb-404">
 					<a role="button" data-toggle="modal" style="border-bottom: 0px solid;" data-toggle="modal" data-target="#assistir{{ loop.index }}">
-						<img src="{{ watch.thumb480 }}" title="{{ watch.title }}{% if watch.subtitle %} - {{ watch.subtitle }}{% endif %} ({{ watch.year }})" class="fadeCatalogo" onload="this.style.opacity='1'"/>
+						<img src="{% if w.thumb480 %}{{ w.thumb480 }}?resize=480,270&crop=entropy {% elseif w.imgbg %} {{ w.imgbg }}?resize=480,270&crop=entropy{% endif %}" title="{{ watch.title }}{% if watch.subtitle %} - {{ watch.subtitle }}{% endif %} ({{ watch.year }})" class="fadeCatalogo" onload="this.style.opacity='1'"/>
 					</a>
 				</li>
 				<div class="modal" id="assistir{{ loop.index }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel{{ loop.index }}">

+ 1 - 1
views/home.html

@@ -53,7 +53,7 @@
 
       <li class="col-md-3">
         <a role="button" data-toggle="modal" style="border-bottom: 0px solid;"  data-toggle="modal" data-target="#assistir{{ loop.index }}">
-          <img src="{{ w.thumb480 }}" title="{{ w.title }}{% if w.subtitle %} - {{ w.subtitle }}{% endif %} ({{ w.year }})" class="fadeCatalogo" onload="this.style.opacity='1'" style="img;"/>
+          <img src="{% if w.thumb480 %}{{ w.thumb480 }}?resize=480,270&crop=entropy {% elseif w.imgbg %} {{ w.imgbg }}?resize=480,270&crop=entropy{% endif %}" title="{{ w.title }}{% if w.subtitle %} - {{ w.subtitle }}{% endif %} ({{ w.year }})" class="fadeCatalogo" onload="this.style.opacity='1'" style="img;"/>
           <!--<h3>{{ w.title }}</h3>-->
         </a>
       </li>