Matteo Scandolo | 667334f | 2017-02-26 10:58:08 -0800 | [diff] [blame] | 1 | angular.module('app') |
| 2 | .constant('StyleConfig', { |
| 3 | projectName: '{{ gui_project_name }}', |
| 4 | favicon: '{{ gui_favicon }}', |
| 5 | background: '{{ gui_background }}', |
| 6 | payoff: '{{ gui_payoff }}', |
| 7 | logo: '{{ gui_logo }}', |
| 8 | routes: [ |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 9 | {% for route in gui_routes %} |
| 10 | { |
Matteo Scandolo | 667334f | 2017-02-26 10:58:08 -0800 | [diff] [blame] | 11 | label: '{{ route.label }}', |
| 12 | state: '{{ route.state }}', |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 13 | {% if route.parent is defined %} |
Matteo Scandolo | 667334f | 2017-02-26 10:58:08 -0800 | [diff] [blame] | 14 | parent: '{{ route.parent }}' |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 15 | {% endif %} |
| 16 | }, |
| 17 | {% endfor %} |
Matteo Scandolo | 667334f | 2017-02-26 10:58:08 -0800 | [diff] [blame] | 18 | ] |
| 19 | }); |