Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #97 from 18F/status_light
Browse files Browse the repository at this point in the history
[BUGFIX] Allow statuspage link to be clickable.
  • Loading branch information
jcscottiii committed Sep 3, 2015
2 parents 155a74b + 98f8d7c commit 6075dd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions static/app/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
}
};
});
app.directive('cloudStatus', function() {
app.directive('cloudStatus', function($window) {
return {
templateUrl: 'app/views/partials/status.html',
controller: function($scope, $http) {
controller: function($scope, $http, $window) {
var sp = new StatusPage.page({ page : 'swcbylb1c30f' });
sp.status({
success: function(data) {
Expand All @@ -77,6 +77,11 @@
});
}
})
},
link: function($scope) {
$scope.goto = function() {
$window.open('https://cloudgov.statuspage.io/');
};
}
};
});
Expand Down
2 changes: 1 addition & 1 deletion static/app/views/partials/status.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<center>
<a style="color: inherit; text-decoration:none;" href="https://cloudgov.statuspage.io/" target="_blank">
<a href="" style="color: inherit; text-decoration:none;" ng-click="goto()" target="_blank">
<span ng-class="statuspagecolor">&#9673;</span>
Status
</a>
Expand Down

0 comments on commit 6075dd0

Please sign in to comment.