Removed url setting. Created announcement feature.

parent 042766fe
Pipeline #32093330 passed with stage
in 15 minutes and 28 seconds
......@@ -772,3 +772,15 @@ th.active .arrow {
line-height:30px;
}
.announcement
{
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 @@
</nav>
</div>
{% 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 }}
</div>
</div>
</div>
</section>
{% endif %}
<section>
<div id='map'></div>
</section>
......
......@@ -642,6 +642,10 @@ CONSTANCE_ADDITIONAL_FIELDS = {
CONSTANCE_CONFIG = {
'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 faalkaart.nl, failmap.co.uk, example.com.'
' 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 = {
}
CONSTANCE_CONFIG_FIELDSETS = OrderedDict([
('General', ('COMMENTS', 'SITE_BASE_ADDRESS', 'MAPBOX_ACCESS_TOKEN', 'WAMBACHERS_OSM_CLIKEY')),
('General', ('COMMENTS', 'SHOW_ANNOUNCEMENT', 'ANNOUNCEMENT', 'MAPBOX_ACCESS_TOKEN', 'WAMBACHERS_OSM_CLIKEY')),
('Project', ('PROJECT_NAME', 'PROJECT_COUNTRY', 'PROJECT_TAGLINE', 'PROJECT_WEBSITE', 'PROJECT_MAIL',
'PROJECT_ISSUE_MAIL', 'PROJECT_TWITTER', 'PROJECT_FACEBOOK')),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment