Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mapiris
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duchateau Fabien
mapiris
Commits
e562e7c8
Commit
e562e7c8
authored
6 years ago
by
Duchateau Fabien
Browse files
Options
Downloads
Patches
Plain Diff
minor corrections (zoom level locked by default, check for Mongo connection + flash message)
parent
ae562943
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
mapiris/main.py
+2
-1
2 additions, 1 deletion
mapiris/main.py
mapiris/model.py
+0
-1
0 additions, 1 deletion
mapiris/model.py
mapiris/templates/form.html
+2
-2
2 additions, 2 deletions
mapiris/templates/form.html
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
with
5 additions
and
5 deletions
mapiris/main.py
+
2
−
1
View file @
e562e7c8
...
...
@@ -15,8 +15,9 @@ url = 'http://127.0.0.1:8081'
@app.route
(
'
/
'
,
defaults
=
{
'
page
'
:
None
})
#@app.route('/<page>', methods=["GET", "POST"])
def
index
(
page
):
if
not
model
.
db
.
connection_status
:
# if no connection, display a flashing message
flash
(
"
Could not connect to the MongoDB database ! Check the connection.
"
,
"
danger
"
)
return
render_template
(
'
index.html
'
)
...
...
This diff is collapsed.
Click to expand it.
mapiris/model.py
+
0
−
1
View file @
e562e7c8
...
...
@@ -11,7 +11,6 @@ import json
# connection to the IRIS collection in MongoDB
db
=
Mongiris
()
iris_collection
=
db
.
collection_iris
db
.
init_connection
()
json_iris_indicator_code_to_label
=
'
static/data/dictionnaire-indicateurs.json
'
...
...
This diff is collapsed.
Click to expand it.
mapiris/templates/form.html
+
2
−
2
View file @
e562e7c8
...
...
@@ -5,9 +5,9 @@
<div
class=
"input-group mb-4"
>
<div
class=
"input-group-prepend"
>
<button
class=
"btn"
type=
"button"
id=
"boutonEnableDisableZoom"
>
<img
src=
"{{url_for('static', filename='css/open-iconic-master/svg/lock-
un
locked.svg')}}"
width=
"16"
height=
"16"
alt=
"Enable/Disable"
/>
<img
src=
"{{url_for('static', filename='css/open-iconic-master/svg/lock-locked.svg')}}"
width=
"16"
height=
"16"
alt=
"Enable/Disable"
/>
</button>
<input
type=
"number"
min=
"12"
max=
"18"
value=
"16"
maxlength=
"1"
id=
"inputZoomLevel"
style=
"width: 3em;"
/>
<input
type=
"number"
min=
"12"
max=
"18"
value=
"16"
disabled
maxlength=
"1"
id=
"inputZoomLevel"
style=
"width: 3em;"
/>
<span
valign=
"bottom"
class=
"ml-2 pt-1"
>
(niveau de zoom actuel =
<span
id=
"spanZoomLevel"
style=
"font-weight: bold;"
>
6
</span>
)
</span>
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
e562e7c8
[metadata]
name
= mapiris
version
= 0.1
2
version
= 0.1
3
description
= This package aims at searching and printing IRIS on a map.
author
= Fabien Duchateau
author_email
= fabien.duchateau@univ-lyon1.fr
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment