This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
myfreeweb
committed
Feb 20, 2011
1 parent
fea526a
commit 0fa81ea
Showing
11 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.bundle | ||
test.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
require 'rubygems' | ||
require 'bundler' | ||
Bundler.require | ||
require 'app' | ||
run Sinatra::Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'rubygems' | ||
require 'sequel' | ||
|
||
class Base < Sequel::Migration | ||
def up | ||
create_table! :users do | ||
primary_key :id | ||
String :email | ||
String :folder | ||
end | ||
end | ||
def down | ||
drop_table :users | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
%meta{:charset => "utf-8"}/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
%header | ||
%h1 Wikibox | ||
= if flash[:error] | ||
%div.error= flash[:error] | ||
= if flash[:info] | ||
%div.info= flash[:info] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
!!! 5 | ||
%html{:lang => "en"} | ||
%head | ||
%meta{:charset => "utf-8"}/ | ||
%title Wikibox | ||
= haml :head | ||
%body | ||
%h1 Wikibox alpha | ||
%a{:href => "/auth"} Login with Dropbox | ||
%a{:href => "/auth"} Login with Dropbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
!!! 5 | ||
%html{:lang => "en"} | ||
%head | ||
%title Wikibox | ||
= haml :head | ||
%body | ||
= haml :header | ||
%nav | ||
%ul | ||
= for page in @pages | ||
%li | ||
%a{:href => "/pages/#{page}"}= page | ||
%article | ||
%header | ||
%h1= page | ||
%a{:href => "/pages/#{@cur_page['name']}/delete"} delete | ||
= @cur_page['text'] or "This page doesn't exist yet." | ||
%form{:method => "post", :action => ""} | ||
%textarea{:name => "text"}= @cur_page['text'] | ||
%button{:type => "submit"} Save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
!!! 5 | ||
%html{:lang => "en"} | ||
%head | ||
%title Settings / Wikibox | ||
= haml :head | ||
%body | ||
= haml :header | ||
%h1 Settings | ||
%form{:method => "post", :action => ""} | ||
%label{:for => "folder"} Folder: | ||
%input{:name => "folder", :type => "text", value => @folder} | ||
%button{:type => "submit"} Save |