mirror of
https://github.com/neocities/neocities.git
synced 2025-04-28 11:12:30 +02:00
Merge ea815b3a12
into bb03385a28
This commit is contained in:
commit
e8b4d8ff72
3 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ class SiteChange < Sequel::Model
|
|||
one_to_one :site_change
|
||||
one_to_many :site_change_files
|
||||
|
||||
def site_change_filenames(limit=6)
|
||||
def site_change_filenames(limit=30)
|
||||
site_change_files_dataset.select(:filename).limit(limit).order(:created_at.desc).all.collect {|f| f.filename}.sort_by {|f| f.match('html') ? 0 : 1}
|
||||
end
|
||||
|
||||
|
|
|
@ -999,7 +999,7 @@ a.tag:hover {
|
|||
.html-thumbnail {
|
||||
width: 102px;
|
||||
}
|
||||
&:first-child .html-thumbnail.html {
|
||||
&.big-file .html-thumbnail.html {
|
||||
width: 540px;
|
||||
height: 405px;
|
||||
@media (max-device-width:480px), screen and (max-width:800px) {
|
||||
|
@ -1007,7 +1007,7 @@ a.tag:hover {
|
|||
height: 202px;
|
||||
}
|
||||
}
|
||||
&:first-child .html-thumbnail.html img {
|
||||
&.big-file .html-thumbnail.html img {
|
||||
width: 540px;
|
||||
height: 405px;
|
||||
@media (max-device-width:480px), screen and (max-width:800px) {
|
||||
|
|
|
@ -92,8 +92,8 @@
|
|||
<% unless site_change_filenames.empty? %>
|
||||
<div class="content">
|
||||
<div class="files">
|
||||
<% site_change_filenames.each do |f| %>
|
||||
<div class="file">
|
||||
<% site_change_filenames.each.with_index do |f, i| %>
|
||||
<div class="file <%= i == 0 && site_change_filenames.length <= 6 ? 'big-file' : '' %>">
|
||||
<div class="html-thumbnail <%= site_change_file_display_class f %>">
|
||||
<a href="https://<%= event_site.host %><%= f == 'index.html' ? '' : "/#{f}" %>">
|
||||
<% if site_change_file_display_class(f) == 'html' %>
|
||||
|
|
Loading…
Add table
Reference in a new issue