Replace placeholder screenshot

This commit is contained in:
rubenwardy 2018-05-13 21:23:09 +01:00
parent 95235849f7
commit 31615da169
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
5 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
position: relative;
background-position: center;
background-size: cover;
background-image: url("screenshot.png");
background-image: url("placeholder.png");
min-height: 220px;
border-radius: 5px;
padding: 0;

BIN
app/static/placeholder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 KiB

View File

@ -44,7 +44,7 @@ class GithubURLMaker:
return self.baseUrl + "/description.txt"
def getScreenshotURL(self):
return self.baseUrl + "/screenshot.png"
return self.baseUrl + "/placeholder.png"
def getCommitsURL(self, branch):
return "https://api.github.com/repos/{}/{}/commits?sha={}" \

View File

@ -24,7 +24,7 @@ Dashboard
<ul class="packagegrid">
{% for p in packages %}
<li><a href="{{ p.getDetailsURL() }}"
style="background-image: url({{ p.getMainScreenshotURL() or '/static/screenshot.png' }});">
style="background-image: url({{ p.getMainScreenshotURL() or '/static/placeholder.png' }});">
<span>{{ p.title }} by {{ p.author.display_name }}</span>
</a></li>
{% else %}