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
fbb7582c
Commit
fbb7582c
authored
Jun 01, 2015
by
dileep bhimineni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed homepage routing issues
parent
365f6e26
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
8 deletions
+24
-8
common.css
dashboard/v2/public/css/common.css
+5
-0
routes.js
dashboard/v2/public/js/routes.js
+1
-1
homeRoutes.js
dashboard/v2/public/modules/home/homeRoutes.js
+2
-3
splash.png
dashboard/v2/public/modules/home/img/splash.png
+0
-0
searchController.js
dashboard/v2/public/modules/search/searchController.js
+12
-1
search.html
dashboard/v2/public/modules/search/views/search.html
+3
-2
searchResult.html
dashboard/v2/public/modules/search/views/searchResult.html
+1
-1
No files found.
dashboard/v2/public/css/common.css
View file @
fbb7582c
...
...
@@ -127,3 +127,7 @@ footer.navbar-bottom img {
.pagination
{
float
:
right
;
}
.resultsPagination
{
height
:
140px
;
}
\ No newline at end of file
dashboard/v2/public/js/routes.js
View file @
fbb7582c
...
...
@@ -23,6 +23,6 @@ angular.module('dgc').config(['$locationProvider', '$urlRouterProvider',
function
(
$locationProvider
,
$urlRouterProvider
)
{
$locationProvider
.
hashPrefix
(
'!'
);
// For unmatched routes:
$urlRouterProvider
.
otherwise
(
'/
search
'
);
$urlRouterProvider
.
otherwise
(
'/'
);
}
]);
dashboard/v2/public/modules/home/homeRoutes.js
View file @
fbb7582c
...
...
@@ -24,9 +24,8 @@ angular.module('dgc.home.routes', []).config(['$stateProvider',
// states for my app
$stateProvider
.
state
(
'home'
,
{
url
:
'/search'
,
templateUrl
:
'/modules/search/views/search.html'
,
controller
:
'SearchController'
url
:
'/'
,
templateUrl
:
'/modules/home/views/home.html'
});
}
]);
dashboard/v2/public/modules/home/img/splash.png
View replaced file @
365f6e26
View file @
fbb7582c
154 KB
|
W:
|
H:
269 KB
|
W:
|
H:
2-up
Swipe
Onion skin
dashboard/v2/public/modules/search/searchController.js
View file @
fbb7582c
...
...
@@ -31,6 +31,16 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope
.
filteredResults
=
[];
$scope
.
resultRows
=
[];
$scope
.
$on
(
'$stateChangeStart'
,
function
(
event
,
toState
)
{
if
(
toState
.
resolve
)
{
$scope
.
loading
=
true
;
}
});
$scope
.
$on
(
'$stateChangeSuccess'
,
function
(
event
,
toState
)
{
if
(
toState
.
resolve
)
{
$scope
.
loading
=
false
;
}
});
$scope
.
setPage
=
function
(
pageNo
)
{
$scope
.
currentPage
=
pageNo
;
};
...
...
@@ -38,6 +48,8 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope
.
results
=
[];
NotificationService
.
reset
();
$scope
.
limit
=
4
;
$scope
.
searchMessage
=
'searching...'
;
$scope
.
$parent
.
query
=
query
;
SearchResource
.
search
({
query
:
query
},
function
searchSuccess
(
response
)
{
...
...
@@ -102,7 +114,6 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope
.
searchQuery
=
$location
.
search
();
$scope
.
query
=
(
$location
.
search
()).
query
;
if
(
$scope
.
query
)
{
$scope
.
searchMessage
=
'searching...'
;
$scope
.
search
(
$scope
.
query
);
}
}
...
...
dashboard/v2/public/modules/search/views/search.html
View file @
fbb7582c
...
...
@@ -23,7 +23,7 @@
<div
class=
"row input-group"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"Search"
data-ng-model=
"query"
required
/>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-success"
type=
"submit"
data-ng-disabled=
"form.$invalid"
data-ng-click=
"search(query
)"
>
<button
class=
"btn btn-success"
type=
"submit"
data-ng-disabled=
"form.$invalid"
ui-sref=
"search.results({ query: query }
)"
>
<i
class=
"glyphicon glyphicon-search white "
></i>
</button>
</span>
...
...
@@ -39,7 +39,7 @@
<div
data-ng-include=
"'/modules/navigation/views/navigation.html'"
></div>
<div
class=
"col-lg-9"
data-ui-view=
""
style=
"min-height: 1350px;"
></div>
<div
class=
"col-lg-9"
data-ui-view=
""
></div>
</div>
</div>
</div>
\ No newline at end of file
dashboard/v2/public/modules/search/views/searchResult.html
View file @
fbb7582c
...
...
@@ -41,7 +41,7 @@
<div
data-ng-if=
"!searchTypesAvailable"
data-ng-include=
"'/modules/search/views/types/guid.html'"
></div>
</li>
</ul>
<div
ng-show=
'filteredResults.length > 0'
>
<div
class=
"resultsPagination"
ng-show=
'filteredResults.length > 0'
>
<pagination
total-items=
"totalItems"
items-per-page=
"itemsPerPage"
ng-model=
"currentPage"
ng-change=
"pageChanged()"
></pagination>
<p>
</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