diff --git a/Gruntfile.js b/Gruntfile.js index a559d0d..367e2c2 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -19,7 +19,7 @@ 'use strict'; var pkg = require('./package.json'); -var AV_CONFIG_VERSION = '3.2.0'; +var AV_CONFIG_VERSION = '3.3.0'; //Using exclusion patterns slows down Grunt significantly //instead of creating a set of patterns like '**/*.js' and '!**/node_modules/**' @@ -81,6 +81,9 @@ module.exports = function (grunt) { // Project configuration. grunt.initConfig({ + variables: { + elections_html_body_include: '' + }, connect: { main: { options: { @@ -150,7 +153,7 @@ module.exports = function (grunt) { htmlmin:'<%= htmlmin.main.options %>' }, cwd: 'bower_components/avCommon', - src: ["avRegistration/**/*.html", "avUi/**/*.html" ], + src: ["avRegistration/**/*.html", "avUi/**/*.html"], dest: 'temp/templates-common.js' } }, @@ -208,6 +211,7 @@ module.exports = function (grunt) { options: { remove: ['script[data-remove!="false"]','link[data-remove!="false"]'], append: [ + {selector:'body',html:'<%= variables.elections_html_body_include %>'}, {selector:'body',html:''}, {selector:'body',html:''}, {selector:'body',html:''}, diff --git a/app.js b/app.js index f92be7d..a7f0d23 100755 --- a/app.js +++ b/app.js @@ -165,6 +165,10 @@ angular.module('agora-gui-elections').config( templateUrl: 'avElection/public-controller/legal.html', controller: "PublicController" }) + .state('election.public.show.documentation', { + url: '/documentation', + template: '
' + }) .state('election.results', { url: '/:id/results', templateUrl: 'avElection/results-controller/results-controller.html', diff --git a/avElection/layouts/default-election-directive/default-election-directive.html b/avElection/layouts/default-election-directive/default-election-directive.html index 32d64e7..76d4248 100644 --- a/avElection/layouts/default-election-directive/default-election-directive.html +++ b/avElection/layouts/default-election-directive/default-election-directive.html @@ -74,5 +74,5 @@

{{election.title}}

-