helps when you remember to add the files

This commit is contained in:
Kyle Drake 2013-06-20 14:57:45 -07:00
parent d0a359283e
commit cdb9f4290c
2 changed files with 21 additions and 0 deletions

View 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
View 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"