/*globals $WowheadPower */
'use strict';

(function() {
    
    angular
        .module('simpleArmoryApp')
        .controller('MountsCtrl' , MountsCtrl);

    function MountsCtrl($scope, MountsAndPetsService, PlannerService, $window) {

    	// Analytics for page
        $window.ga('send', 'pageview', 'Mounts');

        // anchor css used for planner checkbox
        $scope.anchorCss = function (step) {
            if (step.epic) {
                return 'mnt-plan-epic';
            }

            return 'mnt-plan-rare';
        };

        // img src for planner image
        $scope.getPlanImageSrc = function (step) {
            if (!step.icon) {
                return '';
            }

            return '//wow.zamimg.com/images/wow/icons/tiny/' + step.icon + '.gif';
        };

        MountsAndPetsService.getItems('mounts', 'mounts', 'spellId').then(function(items){
            $scope.items = items;

            // called when planner checkbox is clicked
            $scope.plannerChanged = function() {
                if ($scope.showPlanner) {
                    $window.ga('send', 'pageview', 'Planner');

                    PlannerService.getSteps(items).then(function(steps){
                        $scope.planner = steps;
                    });
                }
            };            
        });       
    }

})();
@@ -387,36 +387,36 @@
 Css = function (
-step
+boss
 ) %7B%0A            
@@ -419,20 +419,20 @@
     if (
-step
+boss
 .epic) %7B
@@ -615,20 +615,20 @@
 nction (
-step
+boss
 ) %7B%0A    
@@ -640,20 +640,20 @@
    if (!
-step
+boss
 .icon) %7B
@@ -758,20 +758,20 @@
 iny/' + 
-step
+boss
 .icon + 

rename step to boss (minor)