Permalink
Browse files

remove links to login pages

  • Loading branch information...
1 parent e68549a commit 07db690098639fb2da4337054478bbd7bbc421dd Kevin Burke committed Jan 23, 2013
Showing with 3 additions and 40 deletions.
  1. +0 −16 app/app.rb
  2. +1 −7 app/templates/index.mustache
  3. +1 −16 app/templates/layout.mustache
  4. +1 −1 app/views/index.rb
View
@@ -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?
@@ -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>
@@ -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>
View
@@ -142,4 +142,4 @@ def view
[ :header => @view['header'], :body => @view['body'] ]
end
end
-end
+end

0 comments on commit 07db690

Please sign in to comment.