Permalink
Browse files

enable public pages

  • Loading branch information...
jeromegv committed Oct 5, 2014
1 parent f49fd67 commit 87aa7a468e99ddcfa64102f1d072d1d47cbfd145
Showing with 192 additions and 9 deletions.
  1. +9 −9 routes.js
  2. +61 −0 views/centralafricanrepublicpublic.jade
  3. +61 −0 views/nigeriapublic.jade
  4. +61 −0 views/southsudanpublic.jade
View
@@ -323,13 +323,13 @@ function load_routes(app) {
title: 'Nigeria Visualization'
});
}
- /*else {
+ else {
//Public access to the Visualization page without being logged in on Threatwiki
res.render('nigeriapublic', {
- title: "Visualization of the Persecution of the Bahá'ís community in Iran - The Sentinel Project"
+ title: "Atrocities and Intercommunal Violence in Nigeria - The Sentinel Project"
});
- }*/
+ }
};
exports.southsudanvisualization = function(req, res){
@@ -339,13 +339,13 @@ function load_routes(app) {
title: 'South Sudan Visualization'
});
}
- /*else {
+ else {
//Public access to the Visualization page without being logged in on Threatwiki
res.render('southsudanpublic', {
- title: "Visualization of the Persecution of the Bahá'ís community in Iran - The Sentinel Project"
+ title: "Atrocities and Intercommunal Violence in South Sudan - The Sentinel Project"
});
- }*/
+ }
};
exports.centralafricanrepublicvisualization = function(req, res){
@@ -355,13 +355,13 @@ function load_routes(app) {
title: 'Central African Republic Visualization'
});
}
- /*else {
+ else {
//Public access to the Visualization page without being logged in on Threatwiki
res.render('centralafricanrepublicpublic', {
- title: "Visualization of the Persecution of the Bahá'ís community in Iran - The Sentinel Project"
+ title: "Atrocities and Intercommunal Violence in Central African Republic - The Sentinel Project"
});
- }*/
+ }
};
exports.burmavisualization = function(req, res){
@@ -0,0 +1,61 @@
+!!!
+html(lang="en")
+ head
+ meta(name="author",content="The Sentinel Project")
+ meta(name="description",content="Data Visualization of Atrocities and Intercommunal Violence in Central African Republic, compiled by the research analysts from The Sentinel Project")
+ meta(property="og:title",content=title)
+ meta(property="og:type",content='website')
+ meta(property="og:description",content="Data Visualization of Atrocities and Intercommunal Violence in Central African Republic, compiled by the research analysts from The Sentinel Project")
+ meta(property="og:url",content="http://threatwiki.thesentinelproject.org/centralafricanrepublicvisualization")
+ meta(property="og:image",content="http://thesentinelproject.org/wp-content/uploads/iranvisualization.png")
+ title #{title}
+ link(rel='stylesheet', href='/stylesheets/reset.css')
+ link(rel='stylesheet', href='/lib/bootstrap/css/bootstrap.min.css')
+ script(type='text/javascript', src='/javascript/jquery.min.js')
+ script(src='/lib/bootstrap/js/bootstrap.min.js')
+ script(src="/lib/d3/js/d3.v3.min.js")
+ script(src="/lib/topojson/js/topojson.v1.min.js")
+ script(src="/lib/crossfilter/js/crossfilter.min.js")
+ script(src="/javascript/visualization.js")
+ script
+ generateVisualization("http://threatwiki.thesentinelproject.org/api/datapoint/soc/Central%20African%20Republic?callback=?",6.611110999999999,20.93944399999998,"/mapfiles/centralafricanrepublic.json",new Date(2014,07,25),"Central African Republic",5);
+ script(src="/javascript/moment.min.js")
+ script(src="/lib/mapbox/js/mapbox.js")
+ script(src="/lib/leaflet/js/leaflet.markercluster.js")
+ script(src="/lib/leaflet/js/L.Control.Zoomslider.js")
+ script
+ var _gaq=[["_setAccount","UA-24857452-2"],["_trackPageview"]];
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
+ g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
+ s.parentNode.insertBefore(g,s)}(document,"script"));
+ link(rel='stylesheet', href='/lib/mapbox/css/mapbox.css')
+ link(rel='stylesheet', href='/stylesheets/visualization.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/L.Control.Zoomslider.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/MarkerCluster.Default.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/MarkerCluster.css')
+ div(class='navbar navbar-inverse')
+ div.navbar-inner
+ div.container
+ ul(class='nav')
+ li
+ a(href='http://thesentinelproject.org/') Read more about The Sentinel Project
+ ul(class='nav pull-right')
+ li
+ a(href='mailto:contact@thesentinelproject.org',style="display:inline-block;padding:0px;")
+ img(src='/images/mail-icon.png',style="height: 28px; width:35px;")
+ a(href='http://facebook.com/stopgenocide',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/facebooklogo.png',style="height: 32px; width:32px;")
+ a(href='http://twitter.com/sentinelproject',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/twitter-bird-dark-bgs.png',style="height: 36px; width: 36px;")
+ a(href='http://thesentinelproject.org',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/logoblack.png',style="height: 44px; width:auto;")
+ div.container-fluid
+ #logo
+ div(align="center")
+ h3 Threatwiki - Tracking and Mapping
+ a(href="#", id="popovertitle", class="popover-link", data-delay"2000", data-title='<a href="#" style="float:none" class="close pull-right">&times;</a>', data-html="true", data-toggle="popover", data-placement="right", data-trigger="hover",data-content="Monitoring hate crimes is part of our <a href='http://thesentinelproject.org/our-work/early-warning-system-overview/' target='_blank'>Early Warning System</a> to help us identify communities at risk of genocide. <a href='http://thesentinelproject.org/new-visualization-and-hate-crime-mapping-tool-can-help-prevent-genocide/' target='_blank'>Read our blog announcement for more details.</a>") Hate Crimes
+ i(class="icon-info-sign")
+ h4 Atrocities and Intercommunal Violence in Central African Republic
+ br
+ body
+ include visualization
View
@@ -0,0 +1,61 @@
+!!!
+html(lang="en")
+ head
+ meta(name="author",content="The Sentinel Project")
+ meta(name="description",content="Data Visualization of Atrocities and Intercommunal Violence in Nigeria, compiled by the research analysts from The Sentinel Project")
+ meta(property="og:title",content=title)
+ meta(property="og:type",content='website')
+ meta(property="og:description",content="Data Visualization of Atrocities and Intercommunal Violence in Nigeria, compiled by the research analysts from The Sentinel Project")
+ meta(property="og:url",content="http://threatwiki.thesentinelproject.org/nigeriavisualization")
+ meta(property="og:image",content="http://thesentinelproject.org/wp-content/uploads/iranvisualization.png")
+ title #{title}
+ link(rel='stylesheet', href='/stylesheets/reset.css')
+ link(rel='stylesheet', href='/lib/bootstrap/css/bootstrap.min.css')
+ script(type='text/javascript', src='/javascript/jquery.min.js')
+ script(src='/lib/bootstrap/js/bootstrap.min.js')
+ script(src="/lib/d3/js/d3.v3.min.js")
+ script(src="/lib/topojson/js/topojson.v1.min.js")
+ script(src="/lib/crossfilter/js/crossfilter.min.js")
+ script(src="/javascript/visualization.js")
+ script
+ generateVisualization("http://threatwiki.thesentinelproject.org/api/datapoint/soc/Nigeria?callback=?",9.081999,8.675277000000051,"/mapfiles/nigeria.json",new Date(2014, 06,01),"Nigeria",5);
+ script(src="/javascript/moment.min.js")
+ script(src="/lib/mapbox/js/mapbox.js")
+ script(src="/lib/leaflet/js/leaflet.markercluster.js")
+ script(src="/lib/leaflet/js/L.Control.Zoomslider.js")
+ script
+ var _gaq=[["_setAccount","UA-24857452-2"],["_trackPageview"]];
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
+ g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
+ s.parentNode.insertBefore(g,s)}(document,"script"));
+ link(rel='stylesheet', href='/lib/mapbox/css/mapbox.css')
+ link(rel='stylesheet', href='/stylesheets/visualization.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/L.Control.Zoomslider.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/MarkerCluster.Default.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/MarkerCluster.css')
+ div(class='navbar navbar-inverse')
+ div.navbar-inner
+ div.container
+ ul(class='nav')
+ li
+ a(href='http://thesentinelproject.org/') Read more about The Sentinel Project
+ ul(class='nav pull-right')
+ li
+ a(href='mailto:contact@thesentinelproject.org',style="display:inline-block;padding:0px;")
+ img(src='/images/mail-icon.png',style="height: 28px; width:35px;")
+ a(href='http://facebook.com/stopgenocide',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/facebooklogo.png',style="height: 32px; width:32px;")
+ a(href='http://twitter.com/sentinelproject',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/twitter-bird-dark-bgs.png',style="height: 36px; width: 36px;")
+ a(href='http://thesentinelproject.org',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/logoblack.png',style="height: 44px; width:auto;")
+ div.container-fluid
+ #logo
+ div(align="center")
+ h3 Threatwiki - Tracking and Mapping
+ a(href="#", id="popovertitle", class="popover-link", data-delay"2000", data-title='<a href="#" style="float:none" class="close pull-right">&times;</a>', data-html="true", data-toggle="popover", data-placement="right", data-trigger="hover",data-content="Monitoring hate crimes is part of our <a href='http://thesentinelproject.org/our-work/early-warning-system-overview/' target='_blank'>Early Warning System</a> to help us identify communities at risk of genocide. <a href='http://thesentinelproject.org/new-visualization-and-hate-crime-mapping-tool-can-help-prevent-genocide/' target='_blank'>Read our blog announcement for more details.</a>") Hate Crimes
+ i(class="icon-info-sign")
+ h4 Atrocities and Intercommunal Violence in Nigeria
+ br
+ body
+ include visualization
@@ -0,0 +1,61 @@
+!!!
+html(lang="en")
+ head
+ meta(name="author",content="The Sentinel Project")
+ meta(name="description",content="Data Visualization of Atrocities and Intercommunal Violence in South Sudan, compiled by the research analysts from The Sentinel Project")
+ meta(property="og:title",content=title)
+ meta(property="og:type",content='website')
+ meta(property="og:description",content="Data Visualization of Atrocities and Intercommunal Violence in South Sudan, compiled by the research analysts from The Sentinel Project")
+ meta(property="og:url",content="http://threatwiki.thesentinelproject.org/southsudanvisualization")
+ meta(property="og:image",content="http://thesentinelproject.org/wp-content/uploads/iranvisualization.png")
+ title #{title}
+ link(rel='stylesheet', href='/stylesheets/reset.css')
+ link(rel='stylesheet', href='/lib/bootstrap/css/bootstrap.min.css')
+ script(type='text/javascript', src='/javascript/jquery.min.js')
+ script(src='/lib/bootstrap/js/bootstrap.min.js')
+ script(src="/lib/d3/js/d3.v3.min.js")
+ script(src="/lib/topojson/js/topojson.v1.min.js")
+ script(src="/lib/crossfilter/js/crossfilter.min.js")
+ script(src="/javascript/visualization.js")
+ script
+ generateVisualization("http://threatwiki.thesentinelproject.org/api/datapoint/soc/South%20Sudan?callback=?",7.9630921,30.158930300000065,"/mapfiles/southsudan.json",new Date(2014, 05,01),"South Sudan",5);
+ script(src="/javascript/moment.min.js")
+ script(src="/lib/mapbox/js/mapbox.js")
+ script(src="/lib/leaflet/js/leaflet.markercluster.js")
+ script(src="/lib/leaflet/js/L.Control.Zoomslider.js")
+ script
+ var _gaq=[["_setAccount","UA-24857452-2"],["_trackPageview"]];
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
+ g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
+ s.parentNode.insertBefore(g,s)}(document,"script"));
+ link(rel='stylesheet', href='/lib/mapbox/css/mapbox.css')
+ link(rel='stylesheet', href='/stylesheets/visualization.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/L.Control.Zoomslider.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/MarkerCluster.Default.css')
+ link(rel='stylesheet', href='/lib/leaflet/css/MarkerCluster.css')
+ div(class='navbar navbar-inverse')
+ div.navbar-inner
+ div.container
+ ul(class='nav')
+ li
+ a(href='http://thesentinelproject.org/') Read more about The Sentinel Project
+ ul(class='nav pull-right')
+ li
+ a(href='mailto:contact@thesentinelproject.org',style="display:inline-block;padding:0px;")
+ img(src='/images/mail-icon.png',style="height: 28px; width:35px;")
+ a(href='http://facebook.com/stopgenocide',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/facebooklogo.png',style="height: 32px; width:32px;")
+ a(href='http://twitter.com/sentinelproject',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/twitter-bird-dark-bgs.png',style="height: 36px; width: 36px;")
+ a(href='http://thesentinelproject.org',target="_blank",style="display:inline-block;padding:0px;")
+ img(src='/images/logoblack.png',style="height: 44px; width:auto;")
+ div.container-fluid
+ #logo
+ div(align="center")
+ h3 Threatwiki - Tracking and Mapping
+ a(href="#", id="popovertitle", class="popover-link", data-delay"2000", data-title='<a href="#" style="float:none" class="close pull-right">&times;</a>', data-html="true", data-toggle="popover", data-placement="right", data-trigger="hover",data-content="Monitoring hate crimes is part of our <a href='http://thesentinelproject.org/our-work/early-warning-system-overview/' target='_blank'>Early Warning System</a> to help us identify communities at risk of genocide. <a href='http://thesentinelproject.org/new-visualization-and-hate-crime-mapping-tool-can-help-prevent-genocide/' target='_blank'>Read our blog announcement for more details.</a>") Hate Crimes
+ i(class="icon-info-sign")
+ h4 Atrocities and Intercommunal Violence in South Sudan
+ br
+ body
+ include visualization

0 comments on commit 87aa7a4

Please sign in to comment.