Remove the 'All Metrics' tab

This commit is contained in:
Gaël Métais
2014-10-27 18:07:30 +01:00
parent 13d4b075a8
commit d279959042
8 changed files with 15 additions and 85 deletions
@@ -21,10 +21,6 @@ var resultsController = function(req, res, googleAnalyticsId) {
fs.readFile('./app/node_views/results.html', {encoding: 'utf8'}, callback);
},
phantomasMetadata: function(callback) {
fs.readFile('./node_modules/phantomas/lib/metadata/metadata.json', {encoding: 'utf8'}, callback);
},
phantomasResults: function(callback) {
fs.readFile(phantomasResultsPath, {encoding: 'utf8'}, callback);
}
@@ -40,7 +36,6 @@ var resultsController = function(req, res, googleAnalyticsId) {
phantomasResults = phantomasResults.replace(/<\/script>/g, '\\u003c/script>');
var html = results.htmlTemplate;
html = strReplace(html, '%%METADATA%%', results.phantomasMetadata);
html = strReplace(html, '%%RESULTS%%', phantomasResults);
html = strReplace(html, '%%GA_ID%%', googleAnalyticsId);