diff --git a/app/views/layouts/_offline_flash.erb b/app/views/layouts/_offline_flash.erb index bda5accf602..de4d156323d 100644 --- a/app/views/layouts/_offline_flash.erb +++ b/app/views/layouts/_offline_flash.erb @@ -1,5 +1,17 @@ -<% if %w[database_offline api_offline].include? Settings.status %> - <%= t(".osm_offline") %> -<% elsif %w[database_readonly api_readonly].include? Settings.status %> - <%= t(".osm_read_only") %> -<% end %> +
+ <% if %w[database_offline api_offline].include? Settings.status %> +

+ <%= t(".osm_offline") %> +

+ <% elsif %w[database_readonly api_readonly].include? Settings.status %> +

+ <%= t(".osm_read_only") %> +

+ <% end %> + + <% if Settings.status_announcement_url %> +

+ <%= link_to t(".announcement"), Settings.status_announcement_url %> +

+ <% end %> +
diff --git a/config/locales/en.yml b/config/locales/en.yml index 1e53c643cc7..09bb66171ac 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1587,6 +1587,7 @@ en: offline_flash: osm_offline: "The OpenStreetMap database is currently offline while essential database maintenance work is carried out." osm_read_only: "The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out." + announcement: "You can read the announcement here." user_mailer: diary_comment_notification: description: "OpenStreetMap Diary Entry #%{id}" diff --git a/config/settings.yml b/config/settings.yml index db871775e78..3b0a99ca30b 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -23,6 +23,8 @@ api_version: "0.6" # database_offline - database offline with site in emergency mode # gpx_offline - gpx storage offline status: "online" +# Application status announcement url added to offline flash messages +#status_announcement_url: "https://en.osm.town/@osm_tech" # The maximum area you're allowed to request, in square degrees max_request_area: 0.25 # Number of GPS trace/trackpoints returned per-page