Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHARISM
Shelter Database
Commits
128d0df0
Commit
128d0df0
authored
Sep 04, 2016
by
Maarten van der Veen
Browse files
change init_db to unix formatting
parent
011351c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
init_db.sh
View file @
128d0df0
#! /bin/sh
#! /bin/sh
python3.5 src/manager.py db_empty
python3.5 src/manager.py db_empty
python3.5 src/manager.py db_create
python3.5 src/manager.py db_create
# Import the 'help' pages in the database
# Import the 'help' pages in the database
python3.5 src/manager.py import_page Bibliography data/pages/bibliography.html en
python3.5 src/manager.py import_page Bibliography data/pages/bibliography.html en
python3.5 src/manager.py import_page Recommendations data/pages/recommendations.html en
python3.5 src/manager.py import_page Recommendations data/pages/recommendations.html en
python3.5 src/manager.py import_page Glossary data/pages/glossary.html en
python3.5 src/manager.py import_page Glossary data/pages/glossary.html en
python3.5 src/manager.py import_page About data/pages/about.html en
python3.5 src/manager.py import_page About data/pages/about.html en
python3.5 src/manager.py import_page About data/pages/about_fr.html fr
python3.5 src/manager.py import_page About data/pages/about_fr.html fr
# Initializes the structure of the shelters
# Initializes the structure of the shelters
python3.5 src/manager.py init_shelters_structure data/shelters/Shelters_Structure.csv data/shelters/drawning
python3.5 src/manager.py init_shelters_structure data/shelters/Shelters_Structure.csv data/shelters/drawning
# Initializes the administrator (owner of the imported shelters)
# Initializes the administrator (owner of the imported shelters)
python3.5 src/manager.py create_admin_user
python3.5 src/manager.py create_admin_user
# Import of the shelters from the CSV files
# Import of the shelters from the CSV files
python3.5 src/manager.py import_shelters admin data/shelters/20150518_Haiti_shelters.csv
python3.5 src/manager.py import_shelters admin data/shelters/20150518_Haiti_shelters.csv
python3.5 src/manager.py import_shelters admin data/shelters/Phil-Bangla-Burundi.csv
python3.5 src/manager.py import_shelters admin data/shelters/Phil-Bangla-Burundi.csv
# Import pictures of the shelters
# Import pictures of the shelters
python3.5 src/manager.py import_shelters_pictures data/shelters/pictures/
python3.5 src/manager.py import_shelters_pictures data/shelters/pictures/
# Import documents of the shelters
# Import documents of the shelters
python3.5 src/manager.py import_shelters_documents data/shelters/documents/
python3.5 src/manager.py import_shelters_documents data/shelters/documents/
# Import of the translations
# Import of the translations
python3.5 src/manager.py import_translation data/translations/sheltersDataTraduction_FR_rev_ED.csv fr
python3.5 src/manager.py import_translation data/translations/sheltersDataTraduction_FR_rev_ED.csv fr
# Create database triggers for materialized view table
# Create database triggers for materialized view table
python3.5 src/manager.py create_db_triggers
python3.5 src/manager.py create_db_triggers
src/web/static/css/style_new.css
View file @
128d0df0
...
@@ -787,6 +787,7 @@ section.first {
...
@@ -787,6 +787,7 @@ section.first {
margin
:
30px
0
;
}
margin
:
30px
0
;
}
@media
only
screen
and
(
min-width
:
768px
)
{
@media
only
screen
and
(
min-width
:
768px
)
{
section
.first
{
section
.first
{
min-height
:
540px
;
height
:
100vh
;
}
height
:
100vh
;
}
section
.first
.toplayer
{
section
.first
.toplayer
{
padding-top
:
100px
;
}
}
padding-top
:
100px
;
}
}
...
...
src/web/templates/layout.html
View file @
128d0df0
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
</head>
</head>
<body>
<body>
<div
id=
"wrapper"
>
<header>
<header>
<nav>
<nav>
<a
class=
"home"
href=
"/"
><i
class=
"fa fa-plus-square"
></i><span
class=
"text"
>
Shelter Database
</span></a>
<a
class=
"home"
href=
"/"
><i
class=
"fa fa-plus-square"
></i><span
class=
"text"
>
Shelter Database
</span></a>
...
@@ -102,6 +101,5 @@
...
@@ -102,6 +101,5 @@
}
}
});
});
</script>
</script>
</div>
</body>
</body>
</html>
</html>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment