mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
helps when you remember to add the files
This commit is contained in:
parent
d0a359283e
commit
cdb9f4290c
2 changed files with 21 additions and 0 deletions
9
migrations/005_mark_changed_sites.rb
Normal file
9
migrations/005_mark_changed_sites.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :initial_index_changed, :boolean, default: false
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :initial_index_changed
|
||||
}
|
||||
end
|
12
views/browse.slim
Normal file
12
views/browse.slim
Normal file
|
@ -0,0 +1,12 @@
|
|||
.row
|
||||
.span12.text-center
|
||||
h1 Home Pages on NeoCities
|
||||
p Want to make your own? <a href="/new">Click here</a>!
|
||||
|
||||
- @sites.each_with_index do |site,i|
|
||||
- if i.even? && i != 0
|
||||
.row
|
||||
|
||||
.span6.text-center
|
||||
= site.username
|
||||
img src="/site_screenshots/#{ENV['RACK_ENV'] == 'development' ? 'victoria' : site.username}.jpg"
|
Loading…
Add table
Reference in a new issue