Removed url setting. Created announcement feature.

parent 042766fe
Pipeline #32093330 passed with stage
in 15 minutes and 28 seconds
......@@ -772,3 +772,15 @@ .arrow {
margin-top: 20px;
font-size: 1.5em;
text-align: center;
margin-bottom: 0;
background-color: #ffefef;
padding-top: 20px;
padding-bottom: 20px;
......@@ -188,6 +188,18 @@
{% if config.SHOW_ANNOUNCEMENT and config.ANNOUNCEMENT %}
<section class="announcement">
<div class="container">
<div class="row">
<div class="col-md-12">
<i class="fas fa-bell"></i> {{ config.ANNOUNCEMENT|safe }}
{% endif %}
<div id='map'></div>
......@@ -642,6 +642,10 @@ CONSTANCE_ADDITIONAL_FIELDS = {
'COMMENTS': ('', 'Some comments by you that say a little bit about why below settings are the way they are.', str),
'SHOW_ANNOUNCEMENT': (False, 'Shows the announcement bar. Announcements do not show when empty anyway.', bool),
'ANNOUNCEMENT': ('', 'Text / HTML message that should appear on the top of the site / app. For example with '
'important news / features or current issues. You can enter any HTML, JS, CSS.', str),
'PROJECT_NAME': ('', 'The name of this mapping project, used for branding and promotion.', str),
'PROJECT_COUNTRY': ('NL', 'Two letter ISO code of the country that should be shown.', str),
'PROJECT_TAGLINE': ('', 'Tagline for this project.', str),
......@@ -660,11 +664,6 @@ CONSTANCE_CONFIG = {
'MAPBOX_ACCESS_TOKEN': ('pk.eyJ1IjoibXJmYWlsIiwiYSI6ImNqMHRlNXloczAwMWQyd3FxY3JkMnUxb3EifQ.9nJBaedxrry91O1d90wfuw',
'Access token for Mapbox', str),
'SITE_BASE_ADDRESS': ('sitename.tld', 'Base address of this site, such as,,'
' Without the protocol (so no http or https). This is used for remote '
'scanners to contact this website. They will use: '
'redis://SITE_BASE_ADDRESS:1337/0', str),
'WAMBACHERS_OSM_CLIKEY': ('', 'CLI key for Wambachers OSM export feature', str),
'RESPONSIBLE_ORGANIZATION_NAME': ('', 'The name of the organization running this project.', str),
......@@ -755,7 +754,7 @@ CONSTANCE_CONFIG = {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment