aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/default/_colours.scss9
-rw-r--r--web/cobrands/default/base.scss7
-rw-r--r--web/cobrands/default/config.rb25
-rw-r--r--web/cobrands/default/layout.scss60
-rw-r--r--web/cobrands/fixmystreet/_base.scss48
-rw-r--r--web/cobrands/fixmystreet/dashboard.scss97
-rw-r--r--web/cobrands/lichfielddc/css/layout.css5
-rw-r--r--web/cobrands/zurich/_colours.scss9
-rw-r--r--web/cobrands/zurich/base.scss7
-rw-r--r--web/cobrands/zurich/config.rb25
-rw-r--r--web/cobrands/zurich/layout.scss3
-rwxr-xr-xweb/fixmystreet_app_cgi.cgi7
-rwxr-xr-xweb/fixmystreet_app_fastcgi.cgi6
-rw-r--r--web/js/map-bing-ol.js33
-rw-r--r--web/js/southampton.js6
-rw-r--r--web/xsl.eha.xsl95
-rw-r--r--web/xsl.xsl87
17 files changed, 312 insertions, 217 deletions
diff --git a/web/cobrands/default/_colours.scss b/web/cobrands/default/_colours.scss
new file mode 100644
index 000000000..2c044a6e7
--- /dev/null
+++ b/web/cobrands/default/_colours.scss
@@ -0,0 +1,9 @@
+/* COLOURS */
+
+$primary: #ff9900;
+$primary_b: #000000;
+$primary_text: #222222;
+
+$contrast1: #6688ff;
+$contrast1_dark: darken(#6688ff, 10%);
+$contrast2: #AA8D11;
diff --git a/web/cobrands/default/base.scss b/web/cobrands/default/base.scss
new file mode 100644
index 000000000..4594f832f
--- /dev/null
+++ b/web/cobrands/default/base.scss
@@ -0,0 +1,7 @@
+@import "../fixmystreet/_h5bp";
+@import "./_colours";
+@import "../fixmystreet/_mixins";
+@import "compass";
+
+@import "../fixmystreet/_base";
+
diff --git a/web/cobrands/default/config.rb b/web/cobrands/default/config.rb
new file mode 100644
index 000000000..cab97b18f
--- /dev/null
+++ b/web/cobrands/default/config.rb
@@ -0,0 +1,25 @@
+# Require any additional compass plugins here.
+
+# Set this to the root of your project when deployed:
+http_path = "/"
+css_dir = ""
+sass_dir = ""
+images_dir = ""
+javascripts_dir = ""
+
+# You can select your preferred output style here (can be overridden via the command line):
+# output_style = :expanded or :nested or :compact or :compressed
+
+# To enable relative paths to assets via compass helper functions. Uncomment:
+# relative_assets = true
+
+# To disable debugging comments that display the original location of your selectors. Uncomment:
+# line_comments = false
+
+# If you prefer the indented syntax, you might want to regenerate this
+# project again passing --syntax sass, or you can uncomment this:
+# preferred_syntax = :sass
+# and then run:
+# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
+
+line_comments = false # by Compass.app
diff --git a/web/cobrands/default/layout.scss b/web/cobrands/default/layout.scss
new file mode 100644
index 000000000..93a3f7120
--- /dev/null
+++ b/web/cobrands/default/layout.scss
@@ -0,0 +1,60 @@
+@import "_colours";
+@import "../fixmystreet/_layout";
+
+/*
+Note: The fact that the below has to override the CSS, though it is for the
+default template, is a sign that the CSS is not best organised. It needs
+refactoring, and making more maintainable through the use of SMACSS, OOCSS
+and similar.
+*/
+
+body {
+ background: #6688ff;
+}
+
+#front-main {
+ color: $primary_text;
+ background: $primary;
+ // layout sets this because base has it slightly lighter
+ h2 {
+ color: $primary_text;
+ }
+ a#geolocate_link {
+ color: $primary_text;
+ }
+}
+
+.nav-wrapper {
+ .nav-wrapper-2 {
+ border-top: 4px solid $primary;
+ @include border-image(none);
+ }
+}
+body.mappage {
+ .nav-wrapper {
+ .nav-wrapper-2 {
+ background: $contrast1;
+ }
+ }
+}
+
+#main-nav {
+ ul {
+ li {
+ a, span {
+ color: #000;
+ }
+ }
+ &#main-menu {
+ li {
+ a:hover {
+ background: $primary;
+ }
+ }
+ }
+ &#mysoc-menu {
+ background: $primary;
+ }
+ }
+}
+
diff --git a/web/cobrands/fixmystreet/_base.scss b/web/cobrands/fixmystreet/_base.scss
index 4d3b36888..5d71c33e6 100644
--- a/web/cobrands/fixmystreet/_base.scss
+++ b/web/cobrands/fixmystreet/_base.scss
@@ -863,8 +863,8 @@ a:hover.button-left {
list-style: none;
margin:0;
padding:0;
- a {
margin: 0.25em 0 0 0;
+ /* see note below about this */
display:table;
background: #f6f6f6;
color:#222222;
@@ -874,28 +874,39 @@ a:hover.button-left {
color:#222222;
background:#e6e6e6;
}
- .text,
- .img {
- display:table-cell;
- vertical-align:top;
+ a {
+ color:#222222;
}
- .img {
- text-align:right;
- width: 90px;
- img {
- height:auto;
- }
+ a:hover {
+ color:#222222;
+ background:#e6e6e6;
+ text-decoration: none;
}
.text {
- padding:0.25em 1em;
+ /* this is and the display:table above are required otherwise
+ on iphone the rows end up being slightly wider than the screen */
+ display: table-cell;
+ width: 100%;
+ vertical-align:top;
+ padding: 0px 0px 0px 1em;
+ .img {
+ width: 90px;
+ float: right;
+ height:auto;
+ }
h4 {
+ padding-right: 1em;
+ padding-top: 0.25em;
margin:0;
}
small {
color:#666;
+ display: block;
+ padding-right: 1em;
+ padding-top: 0.25em;
+ padding-bottom: 0.25em;
}
}
- }
>p {
margin: 0.25em 0 0 0;
padding: 0.5em 1em;
@@ -914,25 +925,20 @@ a:hover.button-left {
.ie6, .ie7 {
.issue-list-a {
overflow:hidden;
- li a {
+ li {
clear:both;
- width:auto;
+ width:100%;
display:block;
overflow:hidden;
.text {
float:left;
- width:18em;
- }
- .img {
- width:6.25em;
- float:right;
}
}
}
}
.ie6 .issue-list-a li a {
height:5.5em;
- .img img {
+ .img {
height:60px;
}
}
diff --git a/web/cobrands/fixmystreet/dashboard.scss b/web/cobrands/fixmystreet/dashboard.scss
new file mode 100644
index 000000000..bd241617e
--- /dev/null
+++ b/web/cobrands/fixmystreet/dashboard.scss
@@ -0,0 +1,97 @@
+ select {
+ width: auto;
+ }
+
+ #overview {
+ margin-top: 1em;
+
+ th[scope=col] {
+ font-size:0.8em;
+ }
+
+ tr:nth-child(2) {
+ background-color:#fee;
+ }
+ }
+
+ th {
+ text-align:left;
+ &[scope=col] {
+ border-left:1px solid #ccc;
+ padding:10px 0 10px 10px;
+ font-weight:bold;
+ }
+
+ &[scope=row] {
+ font-weight: normal;text-align:left;
+ border-top:1px solid #ddd;
+ padding-left:10px;
+ }
+
+ abbr[title] {
+ border: none;
+ }
+ }
+
+ td {
+ width:10%;
+ border-left:1px solid #ccc;
+ border-top:1px solid #ddd;
+ padding-left:10px;
+ }
+
+ tr.subtotal {
+ background-color:#eee;
+ border-bottom:20px solid white;
+ border-top:2px solid #aaa;
+ font-weight: bold;
+
+ th {
+ font-weight: bold;
+ }
+ }
+
+
+ #reports{
+ th {
+ padding-left: 20px;
+ border-bottom: none;
+ }
+ date {
+ font-size: 0.7em;
+ color: #ccc;
+ }
+ }
+
+ .filters{
+ background-color:#ffec99;
+ margin:0 -1em;
+ border-top:#ffd000 solid 0.75em;
+ padding:0 1em;
+
+ p {
+ float:left;
+ padding:0 1em;
+ width:25%;
+ font-size:0.75em;
+ color:#333333;
+ input {
+ margin-top: 2.5em;
+ }
+ }
+ select {
+ width:100%;
+ }
+ }
+
+ hgroup {
+ h2 {
+ color:#737373;
+ font-size:1.25em;
+ margin-bottom:0.5em;
+ }
+ h1 {
+ color:#333;
+ font-size:2.25em;
+ }
+ }
diff --git a/web/cobrands/lichfielddc/css/layout.css b/web/cobrands/lichfielddc/css/layout.css
index e671ef61c..363ab8579 100644
--- a/web/cobrands/lichfielddc/css/layout.css
+++ b/web/cobrands/lichfielddc/css/layout.css
@@ -7,6 +7,11 @@
background-color: #F3F4F4;
}
+#mysociety .other-problems {
+ margin: 2em 8em 0em 8em;
+ font-weight: bold;
+}
+
#mysociety #postcodeForm label {
float: none;
margin-bottom: 5px;
diff --git a/web/cobrands/zurich/_colours.scss b/web/cobrands/zurich/_colours.scss
new file mode 100644
index 000000000..1a62d0282
--- /dev/null
+++ b/web/cobrands/zurich/_colours.scss
@@ -0,0 +1,9 @@
+/* COLOURS */
+
+$primary: #FFD000;
+$primary_b: #F3B11E;
+$primary_text: #222;
+
+$contrast1: #00BD08;
+$contrast1_dark: #4B8304;
+$contrast2: #AA8D11;
diff --git a/web/cobrands/zurich/base.scss b/web/cobrands/zurich/base.scss
new file mode 100644
index 000000000..4594f832f
--- /dev/null
+++ b/web/cobrands/zurich/base.scss
@@ -0,0 +1,7 @@
+@import "../fixmystreet/_h5bp";
+@import "./_colours";
+@import "../fixmystreet/_mixins";
+@import "compass";
+
+@import "../fixmystreet/_base";
+
diff --git a/web/cobrands/zurich/config.rb b/web/cobrands/zurich/config.rb
new file mode 100644
index 000000000..cab97b18f
--- /dev/null
+++ b/web/cobrands/zurich/config.rb
@@ -0,0 +1,25 @@
+# Require any additional compass plugins here.
+
+# Set this to the root of your project when deployed:
+http_path = "/"
+css_dir = ""
+sass_dir = ""
+images_dir = ""
+javascripts_dir = ""
+
+# You can select your preferred output style here (can be overridden via the command line):
+# output_style = :expanded or :nested or :compact or :compressed
+
+# To enable relative paths to assets via compass helper functions. Uncomment:
+# relative_assets = true
+
+# To disable debugging comments that display the original location of your selectors. Uncomment:
+# line_comments = false
+
+# If you prefer the indented syntax, you might want to regenerate this
+# project again passing --syntax sass, or you can uncomment this:
+# preferred_syntax = :sass
+# and then run:
+# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
+
+line_comments = false # by Compass.app
diff --git a/web/cobrands/zurich/layout.scss b/web/cobrands/zurich/layout.scss
new file mode 100644
index 000000000..abaa25224
--- /dev/null
+++ b/web/cobrands/zurich/layout.scss
@@ -0,0 +1,3 @@
+@import "_colours";
+@import "../fixmystreet/_layout";
+
diff --git a/web/fixmystreet_app_cgi.cgi b/web/fixmystreet_app_cgi.cgi
index dd0984e15..8c2535e83 100755
--- a/web/fixmystreet_app_cgi.cgi
+++ b/web/fixmystreet_app_cgi.cgi
@@ -1,11 +1,10 @@
#!/usr/bin/env perl
BEGIN { # set all the paths to the perl code
+ use File::Basename qw(dirname);
use File::Spec;
- use File::Basename;
- my $root = dirname(File::Spec->rel2abs(__FILE__));
-
- require "$root/../setenv.pl";
+ my $d = dirname(File::Spec->rel2abs($0));
+ require "$d/../setenv.pl";
}
use Catalyst::ScriptRunner;
diff --git a/web/fixmystreet_app_fastcgi.cgi b/web/fixmystreet_app_fastcgi.cgi
index 08504f8f4..f83ef0023 100755
--- a/web/fixmystreet_app_fastcgi.cgi
+++ b/web/fixmystreet_app_fastcgi.cgi
@@ -1,10 +1,10 @@
#!/usr/bin/env perl
BEGIN { # set all the paths to the perl code
+ use File::Basename qw(dirname);
use File::Spec;
- use File::Basename;
- my $root = dirname(File::Spec->rel2abs(__FILE__));
- require "$root/../setenv.pl";
+ my $d = dirname(File::Spec->rel2abs($0));
+ require "$d/../setenv.pl";
}
use Catalyst::ScriptRunner;
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js
index 7d40f8afc..6d86663f0 100644
--- a/web/js/map-bing-ol.js
+++ b/web/js/map-bing-ol.js
@@ -22,12 +22,30 @@ function set_map_config(perm) {
if (fixmystreet.map_type) {
tile_base = fixmystreet.map_type;
}
- fixmystreet.map_type = OpenLayers.Layer.Bing;
+ fixmystreet.map_type = OpenLayers.Layer.BingUK;
}
-OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
+OpenLayers.Layer.BingUK = OpenLayers.Class(OpenLayers.Layer.XYZ, {
attributionTemplate: '${logo}${copyrights}',
+ uk_bounds: [
+ new OpenLayers.Bounds(-6.6, 49.8, 1.102680, 51),
+ new OpenLayers.Bounds(-5.4, 51, 2.28, 54.94),
+ new OpenLayers.Bounds(-5.85, 54.94, -1.15, 55.33),
+ new OpenLayers.Bounds(-9.35, 55.33, -0.7, 60.98)
+ ],
+ in_uk: function(c) {
+ c = c.clone();
+ c.transform(
+ fixmystreet.map.getProjectionObject(),
+ new OpenLayers.Projection("EPSG:4326")
+ );
+ if ( this.uk_bounds[0].contains(c.lon, c.lat) || this.uk_bounds[1].contains(c.lon, c.lat) || this.uk_bounds[2].contains(c.lon, c.lat) || this.uk_bounds[3].contains(c.lon, c.lat) ) {
+ return true;
+ }
+ return false;
+ },
+
setMap: function() {
OpenLayers.Layer.XYZ.prototype.setMap.apply(this, arguments);
this.updateAttribution();
@@ -38,7 +56,9 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
var z = this.map.getZoom() + this.zoomOffset;
var copyrights;
var logo = '';
- if (z >= 16) {
+ var c = this.map.getCenter();
+ var in_uk = c ? this.in_uk(c) : true;
+ if (z >= 16 && in_uk) {
copyrights = 'Contains Ordnance Survey data © Crown copyright and database right 2010';
} else {
logo = '<a href="http://www.bing.com/maps/"><img border=0 src="//dev.virtualearth.net/Branding/logo_powered_by.png"></a>';
@@ -98,14 +118,15 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
this.map.getZoom() + this.zoomOffset;
var url;
- if (z >= 16) {
+ var in_uk = this.in_uk(bounds.getCenterLonLat());
+ if (z >= 16 && in_uk) {
url = [];
for (var i=0; i< tile_base[0].length; i++) {
url.push( tile_base[1].replace('{S}', tile_base[0][i]) + "/${z}/${x}/${y}.png" );
}
} else {
var type = '';
- if (z > 10) { type = '&productSet=mmOS'; }
+ if (z > 10 && in_uk) { type = '&productSet=mmOS'; }
url = [
"//ecn.t0.tiles.virtualearth.net/tiles/r${id}.png?g=701" + type,
"//ecn.t1.tiles.virtualearth.net/tiles/r${id}.png?g=701" + type,
@@ -121,5 +142,5 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
return path;
},
- CLASS_NAME: "OpenLayers.Layer.Bing"
+ CLASS_NAME: "OpenLayers.Layer.BingUK"
});
diff --git a/web/js/southampton.js b/web/js/southampton.js
index af090d89b..ac7292f5d 100644
--- a/web/js/southampton.js
+++ b/web/js/southampton.js
@@ -120,7 +120,11 @@ $(function(){
$('#category_extra').hide('fast');
var lighting_content =
'<div id="street_light_report" style="margin: 1em 0em 1em 6.5em">Please report Street light problems using the Southampton Street Lighting site at: <a href="http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx">http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx</a></div>';
- $('#form_category_row').after(lighting_content);
+ if ( $('#form_category_row').count ) {
+ $('#form_category_row').after(lighting_content);
+ } else {
+ $('#form_category:parent').after(lighting_content);
+ }
} else {
$('#category_extra').hide('fast');
}
diff --git a/web/xsl.eha.xsl b/web/xsl.eha.xsl
deleted file mode 100644
index 41b86ea07..000000000
--- a/web/xsl.eha.xsl
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" />
- <xsl:variable name="title" select="/rss/channel/title"/>
- <xsl:variable name="uri" select="/rss/channel/uri"/>
- <xsl:template match="/">
-<html lang="en-gb">
- <head>
- <title><xsl:value-of select="$title"/> RSS Feed</title>
- <link rel="stylesheet" href="/css/core.css"/>
- <link rel="stylesheet" href="/cobrands/emptyhomes/css.css"/>
- </head>
- <body>
- <div id="header"><a href="http://www.emptyhomes.com/"><img border="0" src="/i/eha.png" alt="Empty Homes Agency" width="272" height="71"/></a></div>
- <div id="navigation">
- <ul>
- <li><a href="/">Report a property</a></li>
- <li><a href="/reports">Reports</a></li>
- <li><a href="/alert">Get local reports</a></li>
- <li><a href="/faq">FAQs</a></li>
- <li><a href="/about">About us</a></li>
- </ul>
- </div>
-
- <div id="wrapper"><div id="mysociety">
- <xsl:apply-templates select="rss/channel"/>
- </div></div>
-
-<div id="footer">
-Empty Homes Agency <br/>
-Downstream Building, 1 London Bridge, London, SE1 9BG
-
-<br/>
-Tel: 020 7022 1870 <br/>
-Fax: 020 7681 3214 <br/>
-Email: <a href="mailto:info&#64;emptyhomes.com">info&#64;emptyhomes.com</a>
-</div>
-
-</body>
-</html>
- </xsl:template>
-
- <xsl:template match="channel">
- <div id="rss_box">
- <h1>What is this page?</h1>
- <p>This is an RSS feed from the ReportEmptyHomes website. RSS feeds allow you to stay up to date with the latest changes and additions to the site.
- To subscribe to it, you will need a News Reader or other similar device.
- <br/>
- <a href="http://news.bbc.co.uk/1/hi/help/3223484.stm#whatisrss"><strong>Help</strong>, I don't know what a news reader is and still don't know what this is about <small>(from the BBC)</small>.</a></p>
- </div>
-
- <p>Below is the latest content available from this feed,
- <a href="#" class="item"><img height="16" hspace="5" vspace="0" border="0" width="16" alt="RSS News feeds" src="/i/feed.png" title="RSS News feeds" /><xsl:value-of select="$title"/></a>.</p>
-
- <div id="rss_items"><ul><xsl:apply-templates select="item"/></ul></div>
- <div id="rss_rhs">
- <h2 style="margin:0">Subscribe to this feed</h2>
- <p>You can subscribe to this RSS feed in a number of ways, including the following:</p>
- <ul>
- <li>Drag the orange RSS button into your News Reader</li>
- <li>Drag the URL of the RSS feed into your News Reader</li>
- <li>Cut and paste the URL of the RSS feed into your News Reader</li>
- </ul>
- <h3>One-click subscriptions</h3>
- <p>If you use one of the following web-based News Readers, click on the appropriate button to subscribe to the RSS feed.</p>
-<a href="http://www.bloglines.com/sub/{uri}"><img height="18" width="91" hspace="3" vspace="3" border="0" alt="bloglines" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/bloglines.gif" /></a>
-<a href="http://www.feedzilla.com/mini/default.asp?ref=bbc&amp;url={uri}"><img height="22" width="93" hspace="3" vspace="3" border="0" alt="feedzilla" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/feedzilla.gif" /></a>
-<a href="http://add.my.yahoo.com/rss?url={uri}"><img height="17" width="91" hspace="3" vspace="3" border="0" alt="my yahoo" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/myyahoo.gif" /></a>
-<a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url={uri}"><img height="17" width="91" hspace="3" vspace="3" border="0" alt="newsgator" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/newsgator.gif" /></a>
-<a href="http://www.live.com/?add={uri}"><img height="17" width="91" hspace="3" vspace="3" border="0" alt="Microsoft Live" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/windowslive.gif" /></a>
-<a href="http://feeds.my.aol.com/add.jsp?url={uri}"><img hspace="3" src="http://o.aolcdn.com/myfeeds/html/vis/myaol_cta1.gif" alt="Add to My AOL" border="0"/></a>
-<a href="http://www.netvibes.com/subscribe.php?url={uri}"><img hspace="3" src="http://www.netvibes.com/img/add2netvibes.gif" alt="Add to netvibes" /></a>
-<a href="http://fusion.google.com/add?feedurl={uri}"><img hspace="3" src="http://buttons.googlesyndication.com/fusion/add.gif" width="104" height="17" alt="Add to Google"/></a>
-<a href="http://www.pageflakes.com/subscribe.aspx?url={uri}"><img hspace="3" src="http://www.pageflakes.com/subscribe2.gif" border="0"/></a>
-
-<ul>
-<li><a href="http://google.com/reader/view/feed/{uri}">Google Reader</a></li>
-<li><a href="http://my.msn.com/addtomymsn.armx?id=rss&amp;ut={uri}&amp;tt=CENTRALDIRECTORY&amp;ru=http://rss.msn.com">My MSN</a></li>
-<li><a href="http://127.0.0.1:5335/system/pages/subscriptions?url={uri}">Userland</a></li>
-<li><a href="http://127.0.0.1:8888/index.html?add_url={uri}">Amphetadesk</a></li>
-<li><a href="http://www.feedmarker.com/admin.php?do=add_feed&amp;url={uri}">Feedmarker</a></li>
-</ul>
-
- </div>
-
- </xsl:template>
-
- <xsl:template match="item">
- <li>
- <a href="{link}" class="item"><xsl:value-of select="title"/></a><br/>
- <div><xsl:value-of disable-output-escaping="yes" select="description" /></div>
- </li>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/web/xsl.xsl b/web/xsl.xsl
deleted file mode 100644
index 12a4a93d5..000000000
--- a/web/xsl.xsl
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" />
- <xsl:variable name="title" select="/rss/channel/title"/>
- <xsl:variable name="uri" select="/rss/channel/uri"/>
- <xsl:template match="/">
-<html lang="en-gb">
- <head>
- <title><xsl:value-of select="$title"/> XML Feed</title>
- <link rel="stylesheet" href="/css/core.css"/>
- <link rel="stylesheet" href="/css/main.css"/>
- </head>
- <body>
- <div id="header"><a href="/">FixMyStreet</a></div>
- <div id="wrapper"><div id="mysociety">
- <xsl:apply-templates select="rss/channel"/>
- </div></div>
-
-<h2 class="v">Navigation</h2>
-<ul id="navigation">
-<li><a href="/report/new">Report a problem</a></li>
-<li><a href="/reports">All reports</a></li>
-<li><a href="/faq">Help</a></li>
-<li><a href="/contact">Contact</a></li>
-</ul>
-
-<p id="footer">Built by <a href="http://www.mysociety.org/">mySociety</a>,
-using some <a href="http://github.com/mysociety/fixmystreet">clever</a> <a
-href="https://secure.mysociety.org/cvstrac/dir?d=mysociety/services/TilMa">code</a>.</p>
-
-</body>
-</html>
- </xsl:template>
-
- <xsl:template match="channel">
- <div id="rss_box">
- <h1>What is this page?</h1>
- <p>This is an RSS feed from the FixMyStreet website. RSS feeds allow you to stay up to date with the latest changes and additions to the site.
- To subscribe to it, you will need a News Reader or other similar device.
- <br/>
- <a href="http://news.bbc.co.uk/1/hi/help/3223484.stm#whatisrss"><strong>Help</strong>, I don't know what a news reader is and still don't know what this is about <small>(from the BBC)</small>.</a></p>
- </div>
-
- <p>Below is the latest content available from this feed,
- <a href="#" class="item"><img height="16" hspace="5" vspace="0" border="0" width="16" alt="RSS News feeds" src="/i/feed.png" title="RSS News feeds" /><xsl:value-of select="$title"/></a>.</p>
-
- <div id="rss_items"><ul><xsl:apply-templates select="item"/></ul></div>
- <div id="rss_rhs">
- <h2 style="margin:0">Subscribe to this feed</h2>
- <p>You can subscribe to this RSS feed in a number of ways, including the following:</p>
- <ul>
- <li>Drag the orange RSS button into your News Reader</li>
- <li>Drag the URL of the RSS feed into your News Reader</li>
- <li>Cut and paste the URL of the RSS feed into your News Reader</li>
- </ul>
- <h3>One-click subscriptions</h3>
- <p>If you use one of the following web-based News Readers, click on the appropriate button to subscribe to the RSS feed.</p>
-<a href="http://www.bloglines.com/sub/{uri}"><img height="18" width="91" hspace="3" vspace="3" border="0" alt="bloglines" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/bloglines.gif" /></a>
-<a href="http://www.feedzilla.com/mini/default.asp?ref=bbc&amp;url={uri}"><img height="22" width="93" hspace="3" vspace="3" border="0" alt="feedzilla" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/feedzilla.gif" /></a>
-<a href="http://add.my.yahoo.com/rss?url={uri}"><img height="17" width="91" hspace="3" vspace="3" border="0" alt="my yahoo" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/myyahoo.gif" /></a>
-<a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url={uri}"><img height="17" width="91" hspace="3" vspace="3" border="0" alt="newsgator" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/newsgator.gif" /></a>
-<a href="http://www.live.com/?add={uri}"><img height="17" width="91" hspace="3" vspace="3" border="0" alt="Microsoft Live" src="http://newsimg.bbc.co.uk/shared/bsp/xsl/rss/img/windowslive.gif" /></a>
-<a href="http://feeds.my.aol.com/add.jsp?url={uri}"><img hspace="3" src="http://o.aolcdn.com/myfeeds/html/vis/myaol_cta1.gif" alt="Add to My AOL" border="0"/></a>
-<a href="http://www.netvibes.com/subscribe.php?url={uri}"><img hspace="3" src="http://www.netvibes.com/img/add2netvibes.gif" alt="Add to netvibes" /></a>
-<a href="http://fusion.google.com/add?feedurl={uri}"><img hspace="3" src="http://buttons.googlesyndication.com/fusion/add.gif" width="104" height="17" alt="Add to Google"/></a>
-<a href="http://www.pageflakes.com/subscribe.aspx?url={uri}"><img hspace="3" src="http://www.pageflakes.com/subscribe2.gif" border="0"/></a>
-
-<ul>
-<li><a href="http://google.com/reader/view/feed/{uri}">Google Reader</a></li>
-<li><a href="http://my.msn.com/addtomymsn.armx?id=rss&amp;ut={uri}&amp;tt=CENTRALDIRECTORY&amp;ru=http://rss.msn.com">My MSN</a></li>
-<li><a href="http://127.0.0.1:5335/system/pages/subscriptions?url={uri}">Userland</a></li>
-<li><a href="http://127.0.0.1:8888/index.html?add_url={uri}">Amphetadesk</a></li>
-<li><a href="http://www.feedmarker.com/admin.php?do=add_feed&amp;url={uri}">Feedmarker</a></li>
-</ul>
-
- </div>
-
- </xsl:template>
-
- <xsl:template match="item">
- <li>
- <a href="{link}" class="item"><xsl:value-of select="title"/></a><br/>
- <div><xsl:value-of disable-output-escaping="yes" select="description" /></div>
- </li>
- </xsl:template>
-
-</xsl:stylesheet>