Skip to content

Commit b20af73

Browse files
committed
feature: load website preview
1 parent c1f5600 commit b20af73

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

api/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ def runAWSBackups(request):
593593
except BaseException as msg:
594594
logging.writeToFile(str(msg) + ' [API.runAWSBackups]')
595595

596-
597596
@csrf_exempt
598597
def submitUserCreation(request):
599598
try:

websiteFunctions/templates/websiteFunctions/listChildDomains.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2 id="domainNamePage">{% trans "List Child Domains" %}</h2> <img ng-hide="cybe
4141
style="padding: 0px; box-shadow: 0px 0px 1px 0px #888888;">
4242
<div class="">
4343
<div class="table-responsive no-gutter text-nowrap" style="overflow-x: hidden;">
44-
<div style="background-image: url({% static 'images/not-available-preview.png' %});
44+
<div style="background-image: url('https://cdn.statically.io/screenshot/{$ web.domain $}?fullPage=true');;
4545
height: 160px;
4646
width: 200px;
4747
background-position: top;

websiteFunctions/templates/websiteFunctions/listWebsites.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,14 @@ <h2 id="domainNamePage">{% trans "List Websites" %}</h2> <img ng-hide="cyberPane
4141
style="padding: 0px; box-shadow: 0px 0px 1px 0px #888888;">
4242
<div class="">
4343
<div class="table-responsive no-gutter text-nowrap" style="overflow-x: hidden;">
44-
<div
45-
style="background-image: url({% static 'images/not-available-preview.png' %});
44+
<div style="background-image: url('https://cdn.statically.io/screenshot/{$ web.domain $}?fullPage=true');
4645
height: 160px;
4746
width: 200px;
4847
background-position: top;
4948
background-repeat: no-repeat;
5049
background-size: cover;
5150
position: relative;"
52-
class="col-lg-3 col-md-12"
53-
>
51+
class="col-lg-3 col-md-12">
5452
</div>
5553
<div class="col-lg-9" style="text-transform: none">
5654
<div style="border-bottom: 1px solid #888888" class="col-md-12">

0 commit comments

Comments
 (0)