Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
6740d6bb
Commit
6740d6bb
authored
May 31, 2015
by
dileep bhimineni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solving merge issues
parent
9cea4f64
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
12 deletions
+10
-12
homeRoutes.js
dashboard/v2/public/modules/home/homeRoutes.js
+2
-1
navigationController.js
...oard/v2/public/modules/navigation/navigationController.js
+2
-2
navigationModule.js
dashboard/v2/public/modules/navigation/navigationModule.js
+3
-1
navigationResource.js
dashboard/v2/public/modules/navigation/navigationResource.js
+1
-1
searchController.js
dashboard/v2/public/modules/search/searchController.js
+0
-1
searchRoutes.js
dashboard/v2/public/modules/search/searchRoutes.js
+1
-5
searchResult.html
dashboard/v2/public/modules/search/views/searchResult.html
+1
-1
No files found.
dashboard/v2/public/modules/home/homeRoutes.js
View file @
6740d6bb
...
@@ -25,7 +25,8 @@ angular.module('dgc.home.routes', []).config(['$stateProvider',
...
@@ -25,7 +25,8 @@ angular.module('dgc.home.routes', []).config(['$stateProvider',
// states for my app
// states for my app
$stateProvider
.
state
(
'home'
,
{
$stateProvider
.
state
(
'home'
,
{
url
:
'/search'
,
url
:
'/search'
,
templateUrl
:
'/modules/search/views/search.html'
templateUrl
:
'/modules/search/views/search.html'
,
controller
:
'SearchController'
});
});
}
}
]);
]);
dashboard/v2/public/modules/navigation/navigationController.js
View file @
6740d6bb
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
angular
.
module
(
'dgc.navigation'
).
controller
(
'NavigationController'
,
[
'$scope'
,
'NavigationResource'
,
angular
.
module
(
'dgc.navigation'
).
controller
(
'NavigationController'
,
[
'$scope'
,
'NavigationResource'
,
function
(
$scope
,
NavigationResource
)
{
function
(
$scope
,
NavigationResource
)
{
$scope
.
leftnav
=
NavigationResource
.
get
();
$scope
.
leftnav
=
NavigationResource
.
get
();
$scope
.
updateVar
=
function
(
event
)
{
$scope
.
updateVar
=
function
(
event
)
{
$scope
.
$$prevSibling
.
query
=
angular
.
element
(
event
.
target
).
text
();
$scope
.
$$prevSibling
.
query
=
angular
.
element
(
event
.
target
).
text
();
...
@@ -29,4 +28,4 @@ angular.module('dgc.navigation').controller('NavigationController', ['$scope', '
...
@@ -29,4 +28,4 @@ angular.module('dgc.navigation').controller('NavigationController', ['$scope', '
};
};
}
}
]);
]);
\ No newline at end of file
dashboard/v2/public/modules/navigation/navigationModule.js
View file @
6740d6bb
...
@@ -17,4 +17,5 @@
...
@@ -17,4 +17,5 @@
*/
*/
'use strict'
;
'use strict'
;
angular
.
module
(
'dgc.navigation'
,[]);
angular
.
module
(
'dgc.navigation'
,[]);
\ No newline at end of file
dashboard/v2/public/modules/navigation/navigationResource.js
View file @
6740d6bb
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
angular
.
module
(
'dgc.navigation'
).
factory
(
'NavigationResource'
,
[
'$resource'
,
function
(
$resource
)
{
angular
.
module
(
'dgc.navigation'
).
factory
(
'NavigationResource'
,
[
'$resource'
,
function
(
$resource
)
{
return
$resource
(
'api/metadata/types?type=TRAIT'
,
{},
{
return
$resource
(
'api/metadata/types?type=TRAIT'
,
{},
{
get
:
{
get
:
{
'method'
:
'GET'
,
'method'
:
'GET'
,
'responseType'
:
'json'
,
'responseType'
:
'json'
,
'isArray'
:
true
,
'isArray'
:
true
,
...
...
dashboard/v2/public/modules/search/searchController.js
View file @
6740d6bb
...
@@ -39,7 +39,6 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
...
@@ -39,7 +39,6 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
NotificationService
.
reset
();
NotificationService
.
reset
();
$scope
.
limit
=
4
;
$scope
.
limit
=
4
;
SearchResource
.
search
({
query
:
query
},
function
searchSuccess
(
response
)
{
SearchResource
.
search
({
query
:
query
},
function
searchSuccess
(
response
)
{
$scope
.
resultCount
=
response
.
count
;
$scope
.
resultCount
=
response
.
count
;
$scope
.
results
=
response
.
results
;
$scope
.
results
=
response
.
results
;
$scope
.
resultRows
=
$scope
.
results
.
rows
;
$scope
.
resultRows
=
$scope
.
results
.
rows
;
...
...
dashboard/v2/public/modules/search/searchRoutes.js
View file @
6740d6bb
...
@@ -27,13 +27,9 @@ angular.module('dgc.search').config(['$stateProvider',
...
@@ -27,13 +27,9 @@ angular.module('dgc.search').config(['$stateProvider',
templateUrl
:
'/modules/search/views/search.html'
,
templateUrl
:
'/modules/search/views/search.html'
,
controller
:
'SearchController'
controller
:
'SearchController'
}).
state
(
'search.results'
,
{
}).
state
(
'search.results'
,
{
url
:
'/:query'
,
templateUrl
:
'/modules/search/views/searchResult.html'
,
controller
:
'SearchController'
}).
state
(
'search.results'
,
{
url
:
'?query'
,
url
:
'?query'
,
templateUrl
:
'/modules/search/views/searchResult.html'
,
templateUrl
:
'/modules/search/views/searchResult.html'
,
controller
:
'SearchController'
controller
:
'SearchController'
});
});
}
}
]);
]);
dashboard/v2/public/modules/search/views/searchResult.html
View file @
6740d6bb
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<div
data-ng-if=
"!searchTypesAvailable"
data-ng-include=
"'/modules/search/views/types/guid.html'"
></div>
<div
data-ng-if=
"!searchTypesAvailable"
data-ng-include=
"'/modules/search/views/types/guid.html'"
></div>
</li>
</li>
</ul>
</ul>
<div
ng-show=
'
results.rows.length > 0
'
>
<div
ng-show=
'
searchTypesAvailable
'
>
<pagination
total-items=
"totalItems"
items-per-page=
"itemsPerPage"
ng-model=
"currentPage"
ng-change=
"pageChanged()"
></pagination>
<pagination
total-items=
"totalItems"
items-per-page=
"itemsPerPage"
ng-model=
"currentPage"
ng-change=
"pageChanged()"
></pagination>
<p>
<p>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment