Skip to content

Commit

Permalink
waitlist page
Browse files Browse the repository at this point in the history
  • Loading branch information
patwalls committed Sep 23, 2018
1 parent 979f983 commit 23823c9
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/javascripts/waitlist.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/waitlist.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the waitlist controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 2 additions & 1 deletion app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ class DashboardController < ApplicationController
before_action :authenticate_user!

def show
redirect_to google_drive_authorize_path if current_user.google_auth_token.nil?
redirect_to waitlist_path if current_user.google_auth_token.nil?
# redirect_to google_drive_authorize_path if current_user.google_auth_token.nil?
@posts = current_user.posts
end
end
4 changes: 4 additions & 0 deletions app/controllers/waitlist_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class WaitlistController < ApplicationController
def show
end
end
2 changes: 2 additions & 0 deletions app/helpers/waitlist_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module WaitlistHelper
end
19 changes: 19 additions & 0 deletions app/views/waitlist/show.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.profile{ style: ""}
.container{ style: "margin-top:20px;"}
%h4 Hold up!
%p
Hey everyone!
%p
Google has decided to put a user quota on my API account, so I need to wait a bit (I'm working with them) before I can connect more users.
%p
Please check back in a couple hours to set up your blog!
%p
In the meantime, check out how I built and launched this project in 24 hours and streamed the whole process on Twitch!
%p
= link_to "Original Tweet", "https://twitter.com/thepatwalls/status/1043242997050167302"
%p
= link_to "Twitch Live Stream Recording", "https://www.twitch.tv/videos/313288148##"
%p
Thanks for your patience and feel free to contact me about whatever
%p
Pat
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
get '/google_drive_authorize' => 'google_drive#authorize', as: 'google_drive_authorize'
get '/callback' => 'google_drive#callback', as: 'callback'
get '/privacy_policy' => 'privacy_policy#show'
get '/waitlist' => 'waitlist#show'

get '/:username', to: 'i/posts#index'
get '/:username/:post_id', to: 'i/posts#show'
Expand Down
7 changes: 7 additions & 0 deletions test/controllers/waitlist_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class WaitlistControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

0 comments on commit 23823c9

Please sign in to comment.