Work in progress: Continue on org view

This commit is contained in:
Joseph Schorr 2013-11-04 19:11:13 -05:00
parent 3a11ea4229
commit e70f863350
4 changed files with 33 additions and 19 deletions

View file

@ -1180,6 +1180,15 @@ function NewRepoCtrl($scope, $location, $http, $timeout, UserService, Restangula
function OrgViewCtrl($scope, Restangular, $routeParams) {
var orgname = $routeParams.orgname;
$scope.getDescriptionFirstLine = function(commentString) {
return getMarkedDown(getFirstTextLine(commentString));
};
$scope.getMarkedDown = function(string) {
if (!string) { return ''; }
return getMarkedDown(string);
};
var loadOrganization = function() {
var getOrganization = Restangular.one(getRestUrl('organization', orgname));
getOrganization.get().then(function(resp) {