]> git.lizzy.rs Git - cheatdb.git/commitdiff
Replace placeholder screenshot
authorrubenwardy <rw@rubenwardy.com>
Sun, 13 May 2018 20:23:09 +0000 (21:23 +0100)
committerrubenwardy <rw@rubenwardy.com>
Sun, 13 May 2018 20:23:09 +0000 (21:23 +0100)
app/scss/packages.scss
app/static/placeholder.png [new file with mode: 0644]
app/static/screenshot.png [deleted file]
app/tasks/importtasks.py
app/templates/index.html

index a786d79117ded10a29325e1c3d6bc1abadb1d42c..04230cda3aeae04f22d48208501a0f26694393fc 100644 (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;
diff --git a/app/static/placeholder.png b/app/static/placeholder.png
new file mode 100644 (file)
index 0000000..265a5fb
Binary files /dev/null and b/app/static/placeholder.png differ
diff --git a/app/static/screenshot.png b/app/static/screenshot.png
deleted file mode 100644 (file)
index 3cbf879..0000000
Binary files a/app/static/screenshot.png and /dev/null differ
index 954e16e831848760f29480599c1729bbfe627e7f..7233d875bc1c956e5593933a08a66f23fcc597e1 100644 (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={}" \
index 8ad9ce6021b0c2645442eb39617dc022b2bc8bcf..43cd866c58e6cc00bcc991263caabfd13356fa26 100644 (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 %}