This commit is contained in:
nek0 2014-08-12 18:16:27 +02:00
parent 8a81217624
commit e66bfe56b4
4 changed files with 18 additions and 35 deletions

14
.gitignore vendored Normal file
View file

@ -0,0 +1,14 @@
dist*
static/tmp/
static/combined/
config/client_session_key.aes
*.hi
*.o
*.sqlite3
.hsenv*
cabal-dev/
yesod-devel/
.cabal-sandbox
cabal.sandbox.config
.DS_Store
*.swp

View file

@ -28,7 +28,7 @@ postSignupR = do
[shamlet|
<h1> Welcome to Eidolon!
To complete your sgnup please activate your account by visiting the following link
<a href="#{activateLink}">#{activateLink}</a>
<a href="#{activateLink}">#{activateLink}
|]
setMessage $ [shamlet|<pre>User created|]
redirect $ HomeR

View file

@ -3,11 +3,6 @@ User
email Text
password Text
deriving Typeable
-- Email
-- email Text
-- user UserId Maybe
-- verkey Text Maybe
-- UniqueEmail email
Token
token Text
user User
@ -16,6 +11,7 @@ Media
path FilePath
thumbPath FilePath
time UTCTime
owner Text
description Text
tags Texts

View file

@ -1,10 +1,6 @@
$newline never
\<!doctype html>
\<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
\<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
\<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
\<!--[if gt IE 8]><!-->
<html class="no-js" lang="en"> <!--<![endif]-->
$doctype 5
<html class="no-js" lang="en">
<head>
<meta charset="UTF-8">
@ -16,12 +12,6 @@ $newline never
^{pageHead pc}
\<!--[if lt IE 9]>
\<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
\<![endif]-->
<script>
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/,'js');
<body>
<div class="container">
<header>
@ -29,20 +19,3 @@ $newline never
^{pageBody pc}
<footer>
#{extraCopyright $ appExtra $ settings master}
$maybe analytics <- extraAnalytics $ appExtra $ settings master
<script>
if(!window.location.href.match(/localhost/)){
window._gaq = [['_setAccount','#{analytics}'],['_trackPageview'],['_trackPageLoadTime']];
(function() {
\ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
}
\<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6. chromium.org/developers/how-tos/chrome-frame-getting-started -->
\<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js">
<script>
window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
\<![endif]-->