Replace placeholder screenshot
This commit is contained in:
parent
95235849f7
commit
31615da169
|
@ -25,7 +25,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-image: url("screenshot.png");
|
background-image: url("placeholder.png");
|
||||||
min-height: 220px;
|
min-height: 220px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 224 KiB |
|
@ -44,7 +44,7 @@ class GithubURLMaker:
|
||||||
return self.baseUrl + "/description.txt"
|
return self.baseUrl + "/description.txt"
|
||||||
|
|
||||||
def getScreenshotURL(self):
|
def getScreenshotURL(self):
|
||||||
return self.baseUrl + "/screenshot.png"
|
return self.baseUrl + "/placeholder.png"
|
||||||
|
|
||||||
def getCommitsURL(self, branch):
|
def getCommitsURL(self, branch):
|
||||||
return "https://api.github.com/repos/{}/{}/commits?sha={}" \
|
return "https://api.github.com/repos/{}/{}/commits?sha={}" \
|
||||||
|
|
|
@ -24,7 +24,7 @@ Dashboard
|
||||||
<ul class="packagegrid">
|
<ul class="packagegrid">
|
||||||
{% for p in packages %}
|
{% for p in packages %}
|
||||||
<li><a href="{{ p.getDetailsURL() }}"
|
<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>
|
<span>{{ p.title }} by {{ p.author.display_name }}</span>
|
||||||
</a></li>
|
</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue