diff --git a/config.local.py b/config.local.py index f97d146..8244078 100644 --- a/config.local.py +++ b/config.local.py @@ -1,3 +1,4 @@ SQLALCHEMY_TRACK_MODIFICATIONS = True SQLALCHEMY_DATABASE_URI = "postgresql://participer_thsf:participer_thsf@localhost/participer_thsf" UPLOADED_FILES_DEST = "./upload" +DOMAIN_URL = "https://participer.redatomik.org" diff --git a/participate.py b/participate.py index 952e728..5bde9f3 100755 --- a/participate.py +++ b/participate.py @@ -556,7 +556,7 @@ def send_mail(email, link_id): recipients=[email]) msg.body = "Bonjour,\nVous recevez ce courriel car vous avez souhaité faire partie de l'équipe du staff du THSF.\n\n" msg.body += "Pour confirmer votre inscription, rendez vous à la page suivante:\n" - msg.body += "https://wemake.thsf.net/confirm/%s\n\n" % str(link_id) + msg.body += "%s/confirm/%s\n\n" % (str(app.config['DOMAIN_URL']), str(link_id)) msg.body += "Si vous n'êtes pas à l'origine de cette inscription, ignorez simplement ce courriel.\n" msg.body += "Votre compte sera automatiquement supprimé dans les 24 heures.\n\n" msg.body += "Si vous désirez vous désinscrire, faites simplement une demande sur https://bofh.tetalab.org\n\n" diff --git a/static/styles/tetawebapp_pdf.css b/static/styles/tetawebapp_pdf.css deleted file mode 100644 index d07b091..0000000 --- a/static/styles/tetawebapp_pdf.css +++ /dev/null @@ -1,534 +0,0 @@ -/* -* Do NOT modify this file: -* ------------------------ -* If you want to add or modify classes, create a new -* CSS files and make it loaded after this one in the -* HTML header section of the index.html template file. -*/ -@page { - size: 21cm 29.7cm; - margin: 3mm 5mm 3mm 5mm; -} - -@font-face { - font-family: 'Roboto Condensed'; - font-style: normal; - font-weight: 400; - src: url(http://participer.redatomik.org/static/fonts/RobotoCondensed-Regular.ttf) format('truetype'); -} - -@font-face { - font-family: 'Roboto Condensed'; - font-style: normal; - font-weight: 700; - src: url(http://participer.redatomik.org/static/fonts/RobotoCondensed-Bold.ttf) format('truetype'); -} - -* { - box-sizing: border-box; -} - -body { - margin: 10px; - font-family: 'Roboto Condensed'; - background-color: #2B2B2B; -} - -div.content { - display: flex; - min-height: calc(100vh - 110px); -} - -main > article { - flex: 1; - background-color: #E5E5E5; -} - -main > section.inline { - display: flex; - background-color: #E5E5E5; -} - -main > section.inline > article.left { - flex: 0 0 50%; - margin-left: 10px; -} - -main > section.inline > article.right { - flex: 1; - margin-left: 10px; -} - -div.content > nav.vertical { - flex: 0 0 200px; - background-color: #E5E5E5; - border-right-color: #BBBBBB; - border-right-style: solid; - border-right-width: 1px; -} - -div.content > nav.vertical { - order: -1; - display: block; -} - -div.content > nav.vertical > a { - display: block; - background-color: #E5E5E5; - font-size: 20px; - color: #555555; - padding: 5px; - text-decoration: none; -} - -div.content > nav.vertical > a:hover { - background-color: #FF5D00; - color: #FFFFFF; - cursor: pointer; -} - -div.content > nav.vertical > a.selected { - background-color: #FFB387; -} - -main { - color: #555555; - background-color: #E5E5E5; - width: 100%; -} - -main > div.navbar_container { - text-align: center; - padding: 0; - margin: 0; -} - -main > div.navbar_container > ul.horizontal { - display: inline-block; - list-style-type: none; - margin: 10px; - padding: 0; - overflow: hidden; - background-color: #FFFFFF; - border-color: #FF5D00; - border-style: solid; - border-width: 1px; - color: #555555; - border-radius: 2px; -} - -main > div.navbar_container > ul.horizontal > li { - float: left; -} - -main > div.navbar_container > ul.horizontal > li > a { - display: block; - color: #555555; - text-align: center; - padding: 5px; - text-decoration: none; -} - -main > div.navbar_container > ul.horizontal > li > a:hover { - background-color: #FF5D00; - color: #FFFFFF; -} - -main > div.navbar_container > ul.horizontal > li > a.right_border { - border-right-color: #FF5D00; - border-right-style: solid; - border-right-width: 1px; -} - -main > div.navbar_container > ul.horizontal > li > a.selected { - background-color: #FFB387; -} - -main > article { - padding: 10px; - color: #555555; - display: block; -} - -main > article.error, -main > article.error > p { - padding: 10px; - color: #555555; - display: block; - text-align: center; -} - -main > article > h3, -main > section.inline > article > h3 { - font-size: 30px; - color: #555555; - margin-bottom: 10px; -} - -main > article > p, -main > article > ul, -main > article > ol { - color: #555555; - text-align: justify; - text-justify: distribute; -} - -main > hr { - border-color: #BBBBBB; - border-style: solid; - border-width: 1px; -} - -main > article > img { - display:inline-block; - border-color: #BBBBBB; - border-style: solid; - border-width: 1px; - border-radius: 4px; -} - -main > article > p > a, -main > article > ul > li > a { - color: #FF5D00; -} - -main > article > p > a:hover, -main > article > ul > li > a:hover { - text-decoration: none; -} - -main > article.right > img { - float: right; - margin: 0 0 0px 10px; -} - -main > article.left > img { - float: left; - margin: 0 10px 0px 0; -} - -header { - height: 65px; - font-size: 34px; - padding: 10px; - text-align: right; - color: #FFFFFF; - background: url(http://participer.redatomik.org/static/images/logo.png);; - background-repeat: no-repeat; - background-position: 10px; - text-shadow: 0 0 1px #000000; - border-bottom-color: #888888; - border-bottom-style: solid; - border-bottom-width: 1px; - border-top-color: #FFFFFF; - border-top-style: solid; - border-top-width: 1px; -} - -footer { - height: 35px; - font-size: 12px; - text-align: center; - padding: 1em; - border-bottom-color: #FFFFFF; - border-bottom-style: solid; - border-bottom-width: 1px; - border-top-color: #888888; - border-top-style: solid; - border-top-width: 1px; -} - -header, -footer { - background-color: #FF5D00; - color: #FFFFFF; -} - -input[type='text'], -input[type='password'], -input[type='number'], -input[type='email'], -input[type='url'], -textarea, -select, -pre { - border-color: #888888; - border-style: solid; - border-width: 1px; - background-color: #FFFFFF; - color: #555555; - padding: 5px; - font-family: 'Roboto Condensed'; - margin: 5px; -} - -pre { - border-color: #FF5D00; -} - -button, -input[type='button'], -input[type='submit'] { - border-color: #888888; - border-style: solid; - border-width: 1px; - background-color: #FF5D00; - color: #FFFFFF; - font-weight: bold; - padding: 5px; - font-family: 'Roboto Condensed'; - margin: 5px; - border-radius: 4px; -} - -button:hover, -input[type='button']:hover, -input[type='submit']:hover, -input[type='file']:hover { - background-color: #FFB387; - color: #555555; - cursor: pointer; -} - -div.file_upload { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - margin: 0; - padding: 0; - border-radius: 2px; - border-style: solid; - border-width: 1px; - border-color: #E5E5E5; -} - -input[type='file'] { - position: absolute; - width: 18px; - height: 18px; - left: 0; - top: 1px; - opacity: 0; -} - - -input.add, -input.edit, -input.login, -input.logout, -input.refresh, -input.save, -input.search, -input.trash, -input.upload, -input.print { - width: 20px; - height: 20px; - margin: 0; - padding: 0; - border-radius: 2px; - border-style: none; -} - -input.add:hover, -input.edit:hover, -input.login:hover, -input.logout:hover, -input.refresh:hover, -input.save:hover, -input.search:hover, -input.trash:hover, -input.upload:hover, -input.print:hover { - border-color: #555555; - border-style: solid; - border-width: 1px; - background-color: #FF5D00; - cursor: pointer; -} - -input.add { - background: url(http://participer.redatomik.org/static/images/add.png); - background-repeat: no-repeat; - background-position: center center; -} -input.edit { - background: url(http://participer.redatomik.org/static/images/edit.png); - background-repeat: no-repeat; - background-position: center center; -} -input.login { - background: url(http://participer.redatomik.org/static/images/login.png); - background-repeat: no-repeat; - background-position: center center; -} -input.logout { - background: url(http://participer.redatomik.org/static/images/logout.png); - background-repeat: no-repeat; - background-position: center center; -} -input.refresh { - background: url(http://participer.redatomik.org/static/images/refresh.png); - background-repeat: no-repeat; - background-position: center center; -} -input.save { - background: url(http://participer.redatomik.org/static/images/save.png); - background-repeat: no-repeat; - background-position: center center; -} -input.search { - background: url(http://participer.redatomik.org/static/images/search.png); - background-repeat: no-repeat; - background-position: center center; -} -input.trash { - background: url(http://participer.redatomik.org/static/images/trash.png); - background-repeat: no-repeat; - background-position: center center; -} -input.upload { - background: url(http://participer.redatomik.org/static/images/upload.png); - background-repeat: no-repeat; - background-position: center center; -} -input.print { - background: url(http://participer.redatomik.org/static/images/print.png); - background-repeat: no-repeat; - background-position: center center; -} - -form { - width: 450px; - text-align: center; - line-height: 40px; -} - -form > label { - float: left; -} - -form > input[type='text'], -form > input[type='password'], -form > input[type='number'], -form > input[type='email'], -form > input[type='url'], -form > select { - float: right; - width: 200px; -} - -div.table_header { - background-color: #FF5D00; - text-align: left; - width: 910px; -} - -div.table_row { - text-align: left; - width: 910px; -} - -div.table_header > div, div.table_row > div { - display: inline-block; - text-align: center; - font-weight: bold; - width: 200px; -} - -div.table_row > div { - border-color: #FF5D00; - border-width: 1px; - font-weight: normal; -} - -div.even { - background-color: #FFB387; - border-color: #FF5D00; - border-width: 1px; - border-style: none none solid none; -} - -div.odd { - background-color: #FFFFFF; - border-color: #FF5D00; - border-width: 1px; - border-style: none none solid none; -} - -div.table_row > div.border_left { - border-style: none none none solid; -} - -div.table_row > div.border_right { - border-style: none solid none none; -} - -main > article > p.note { - color: #555555; - display: block; - font-size: 12px; -} - -article > div.table_header > div.sheet_day { - background-color: #FF5D00; - width: 100%; - font-size: 18px; - color: #FFFFFF; - text-align: left; - padding: 5px 5px 5px 5px; -} - -article > div.table_header > div.sheet_role { - background-color: #FFB387; - width: 100%; - text-align: left; - padding: 5px 5px 5px 10px; - border-color: #FF5D00; - border-style: none none solid none; - border-width: 1px; -} - -article > div.table_row > border_right { - border-right-style: solid; - border-right-color: #FF5D00; - border-right-width: 1px; -} - -article > div.table_row > div.sheet_time, -article > div.table_row > div.sheet_user1, -article > div.table_row > div.sheet_user2, -article > div.table_row > div.sheet_user3, -article > div.table_row > div.sheet_user4 { - width: 125px; - text-align: left; - padding: 5px 5px 5px 10px; -} - -article > div.table_row > div.sheet_user1:hover, -article > div.table_row > div.sheet_user2:hover, -article > div.table_row > div.sheet_user3:hover, -article > div.table_row > div.sheet_user4:hover { - cursor: pointer; -} - -article > div.table_row > div.sheet_user1 { - text-align: center; - width: 780px; -} - -article > div.table_row > div.sheet_user2 { - text-align: center; - width: 388px; -} - -article > div.table_row > div.sheet_user3 { - text-align: center; - width: 257px; -} - -article > div.table_row > div.sheet_user4 { - text-align: center; - width: 192px; -}