Skip to content
Browse files

Merge branch 'remove-login'

  • Loading branch information...
2 parents 672a56b + 07db690 commit 5c7b2f69516135d101089c49c46303b9fae8ca3a Kevin Burke committed Jan 24, 2013
Showing with 2 additions and 39 deletions.
  1. +0 −16 app/app.rb
  2. +1 −7 app/templates/index.mustache
  3. +1 −16 app/templates/layout.mustache
View
16 app/app.rb
@@ -103,22 +103,6 @@ def initialize(*args)
mustache :stats
end
- get '/login/?' do
- authenticate!
- redirect '/'
- end
-
- get '/login/callback/?' do
- authenticate!
- redirect '/'
- end
-
- get '/logout/?' do
- logout!
- session['flash'] = 'see you later!'
- redirect '/'
- end
-
post '/' do
return json(:error => "Calm down and try my margarita!") if rate_limited?
View
8 app/templates/index.mustache
@@ -14,13 +14,7 @@
{{^ next_hurl}}
{{# hurl?}}
- {{# logged_in?}}
- <a href="/" id="page-next" title="next">&rang;</a>
- {{/ logged_in?}}
-
- {{^ logged_in?}}
<a href="/" style="display:none;" id="page-next" title="next">&rang;</a>
- {{/ logged_in?}}
{{/ hurl?}}
{{/ next_hurl}}
@@ -155,4 +149,4 @@
<a href="#" class="full-size-link nav-item" target="_blank">view full size</a>
<a href="#" class="permalink nav-item">permalink</a>
</div>
-</div>
+</div>
View
17 app/templates/layout.mustache
@@ -31,21 +31,6 @@
<body>
<div id="inset">
<div id="header">
- <div id="nav">
- {{# logged_in? }}
- {{# user}}
- <a href="/hurls/" class="nav-item">
- <img src="{{ gravatar_url }}" class="gravatar">
- {{ login }}'s hurls
- </a>
- {{/ user}}
- <a href="/logout/" class="nav-item">log out</a>
- {{/ logged_in? }}
-
- {{^ logged_in?}}
- <a href="/login/">log in</a> to save your hurls
- {{/ logged_in?}}
- </div>
<a href="/"><img src="/img/logo.png" title="hurl" /></a>
</div>
<div id="content">
@@ -66,4 +51,4 @@
</div>
</div>
</body>
-</html>
+</html>

0 comments on commit 5c7b2f6

Please sign in to comment.
Something went wrong with that request. Please try again.