Skip to content

Commit

Permalink
added the announcement page
Browse files Browse the repository at this point in the history
  • Loading branch information
Thannarot committed Nov 16, 2020
1 parent 9d63cdd commit 2e281e5
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 22 deletions.
2 changes: 1 addition & 1 deletion landcoverportal/static/app/services/map-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
opacity: 1.0
};
var mapType = new google.maps.ImageMapType(eeMapOptions);
return mapType
return mapType;
};

service.getPolygonBoundArray = function (array) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions landcoverportal/templates/announcement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{% extends "layout.html" %}
{% block title %}Regional Land Cover Portal{% endblock %}
{% load staticfiles %}

{% block main_container %}

<div class="container-fluid">

<!--<div class="row">
<div class="col-md-12 video-container">
<iframe id="ytplayer" type="text/html" src="https://www.youtube.com/embed/W0LHTWG-UmQ?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&controls=0&modestbranding=1&playlist=W0LHTWG-UmQ&enablejsapi=1&mute=1"
frameborder="0" allowfullscreen>1
</iframe>
</div>
</div>-->

<div class="row main-padding" id="about" style="padding-top: 25px; margin-bottom: 40px;">

<div class="panel panel-primary justify-content-center" style="margin-left: 20%;border: 3px solid rgba(255,255,255,.15);background: rgba(0,0,0,.075);width:60%;">
<div class="panel-body text-center">
<h1 style="font-size:34px;margin:3px;font-weight: 700;">WE HAVE </h1>
<h1 style="font-size:86px; color:red; font-weight: 800;margin:3px;">MOVED</h1>
<a style="font-size:34px;" href="https://landcovermapping.org/">CLICK HERE</a>
<p style="font-size:20px;">to visite our NEW Website</p>
</div>

</div>
</div>

</div>

<!--<div class="arrow bounce">
<a class="glyphicon glyphicon-circle-arrow-down scroll-down" href="#" aria-hidden="true"></a>
</div>-->

{% endblock main_container %}
42 changes: 21 additions & 21 deletions landcoverportal/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from myanmar_ipcc import api as myanmar_ipcc_api
from myanmar_fra import api as myanmar_fra_api
from myanmar_plantation import api as myanmar_plantation_api
from .views import store_auth_code, home, service_applications, publications
from .views import store_auth_code, announcement, home, service_applications, publications

admin.autodiscover()

Expand All @@ -27,36 +27,36 @@
{'sitemaps': {'cmspages': CMSSitemap}}),
url(r'^oauth2/', include(oauth2_urls)),
# forest monitor urls
url(r'^api/forest-monitor/download-info/$', forest_monitor_views.DownloadInfoCreateRead.as_view()),
url(r'^api/forest-monitor/$', forest_monitor_api.api),
url(r'^api/landcover/$', landcover_api.api),
url(r'^api/myanmar-national/$', myanmar_national_api.api),
url(r'^api/myanmar-ipcc/$', myanmar_ipcc_api.api),
url(r'^api/myanmar-fra/$', myanmar_fra_api.api),
url(r'^api/myanmar-plantation/$', myanmar_plantation_api.api),
url(r'^storeauthcode/$', store_auth_code),
# url(r'^api/forest-monitor/download-info/$', forest_monitor_views.DownloadInfoCreateRead.as_view()),
# url(r'^api/forest-monitor/$', forest_monitor_api.api),
# url(r'^api/landcover/$', landcover_api.api),
# url(r'^api/myanmar-national/$', myanmar_national_api.api),
# url(r'^api/myanmar-ipcc/$', myanmar_ipcc_api.api),
# url(r'^api/myanmar-fra/$', myanmar_fra_api.api),
# url(r'^api/myanmar-plantation/$', myanmar_plantation_api.api),
# url(r'^storeauthcode/$', store_auth_code),
]

#urlpatterns += i18n_patterns(
urlpatterns += i18n_patterns(
url(r'^admin/', include(admin.site.urls)), # NOQA
#url(r'^$', TemplateView.as_view(template_name="home.html")),
#url(r'^home/', TemplateView.as_view(template_name="home.html")),
url(r'^$', home),
url(r'^home/', home),
url(r'^service-applications/', service_applications),
url(r'^publications/', publications),
url(r'^method/', TemplateView.as_view(template_name="method.html")),
url(r'^$', announcement),
url(r'^home/', announcement),
url(r'^service-applications/', announcement),
url(r'^publications/', announcement),
url(r'^method/', TemplateView.as_view(template_name="announcement.html")),
url(r'^privacy-policy/', TemplateView.as_view(template_name="privacy-policy.html")),
#url(r'^service-applications/', TemplateView.as_view(template_name="service-applications.html")),
#url(r'^side-by-side-map/', TemplateView.as_view(template_name="side-by-side-map.html")),
url(r'^', include('forest_monitor.urls')),
url(r'^', include('landcover_viewer.urls')),
url(r'^', include('myanmar_national.urls')),
url(r'^', include('myanmar_ipcc.urls')),
url(r'^', include('myanmar_fra.urls')),
url(r'^', include('myanmar_plantation.urls')),
url(r'^', include('cms.urls')),
# url(r'^', include('forest_monitor.urls')),
# url(r'^', include('landcover_viewer.urls')),
# url(r'^', include('myanmar_national.urls')),
# url(r'^', include('myanmar_ipcc.urls')),
# url(r'^', include('myanmar_fra.urls')),
# url(r'^', include('myanmar_plantation.urls')),
# url(r'^', include('cms.urls')),
)

# This is only needed when using runserver.
Expand Down
3 changes: 3 additions & 0 deletions landcoverportal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def store_auth_code(request):
def home(request):
return render(request, 'home.html', {'version1': True})

def announcement(request):
return render(request, 'announcement.html', {'version1': True})

def service_applications(request):
return render(request, 'service-applications.html', {'version1': True})

Expand Down

0 comments on commit 2e281e5

Please sign in to comment.