mirror of
https://github.com/neocities/neocities.git
synced 2025-07-20 09:36:00 +02:00
refactor screenshots to work for all pages
This commit is contained in:
parent
72c971ae98
commit
b488cf4347
7 changed files with 70 additions and 70 deletions
|
@ -49,7 +49,7 @@
|
|||
<% @sites.each do |site| %>
|
||||
<li>
|
||||
<a href="http://<%= site.username %>.neocities.org" class="neo-Screen-Shot" target="_blank" title="Website of <%= site.username %>">
|
||||
<span class="img-Holder" style="background:url(/site_screenshots/<%= site.username %>.jpg) no-repeat;">
|
||||
<span class="img-Holder" style="background:url(<%= site.screenshot_url('index.html', '270x162') %>) no-repeat;">
|
||||
<img src="/img/placeholder.png" alt="<%= site.username %>" />
|
||||
</span>
|
||||
</a>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<div class="col col-50 signup-Area" style="width: 289px;">
|
||||
<div class="signup-Form">
|
||||
<fieldset class="content">
|
||||
<img class="screenshot" src="/site_screenshots/<%= current_site.username %>.jpg">
|
||||
<img class="screenshot" src="<%= current_site.screenshot_url('index.html', '270x162') %>">
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -78,7 +78,7 @@
|
|||
<div class="file filehover">
|
||||
<% if file.ext.match(/html|htm/) %>
|
||||
<div class="html-thumbnail html fileimagehover">
|
||||
<img src="https://neocities.org//site_screenshots/bigpig.jpg">
|
||||
<img src="<%= current_site.screenshot_url(file.filename, '105x63') %>">
|
||||
<div class="overlay"></div>
|
||||
</div>
|
||||
<% elsif file.ext.match(/jpg|png|bmp|gif/) %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue