(function (env) {
    "use strict";
    env.ddg_spice_tfl_status = function(api_result){

        Spice.add({
            id: "tfl_status",
            name: "Travel",
            data: api_result,
            meta: {
                sourceName: "tfl.gov.uk",
    		sourceUrl: 'http://tfl.gov.uk/tube-dlr-overground/status/#line-' + api_result.id,
            },
            templates: {
                group: 'base',
                options: {
                    content: Spice.tfl_status.content,
                    moreAt: true
                }
            }
        });
    };
}(this));

(function (env) {
    "use strict";
    env.ddg_spice_tfl_status = function(api_result){

        Spice.add({
            id: "tfl_status",
            name: "Travel",
            data: api_result,
            meta: {
                sourceName: "tfl.gov.uk",
    		sourceUrl: 'http://tfl.gov.uk/tube-dlr-overground/status/#line-' + api_result[0].id,
            },
            templates: {
                group: 'base',
                options: {
                    content: Spice.tfl_status.content,
                    moreAt: true
                }
            }
        });
    };
}(this));

Fix for the "More at..." link to correct lineId
Fix for the "More at..." link to correct lineId

The sourceUrl link which controls the "More at tfl.gov.uk" href is now
fixed to link to the correct anchor for the line in question. This will
open the further information accordion and zoom the SVG map to the
correct line. (There appears to be an issue with the lineIds being incorrect on the
map  on tfl.gov.uk at the moment?)
