Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
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
openSource
spring-boot-admin
Commits
d8395c20
Commit
d8395c20
authored
Feb 03, 2015
by
Johannes Stelzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sorting for applicationlist in overview
parent
d35a01b0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
4 deletions
+45
-4
main.css
spring-boot-admin-server-ui/app/css/main.css
+16
-0
overviewCtrl.js
...ng-boot-admin-server-ui/app/js/controller/overviewCtrl.js
+22
-0
overview.html
spring-boot-admin-server-ui/app/views/overview.html
+7
-4
No files found.
spring-boot-admin-server-ui/app/css/main.css
View file @
d8395c20
...
...
@@ -190,6 +190,22 @@ span.refresh {
color
:
#f1f1f1
;
}
.sortable
{
cursor
:
pointer
;
}
.sorted-ascending
,
.sorted-descending
{
color
:
#6db33f
;
}
.sorted-ascending
::after
{
content
:
" \25b2"
;
}
.sorted-descending
::after
{
content
:
" \25bc"
;
}
.nav
>
li
>
a
{
color
:
#838789
;
}
...
...
spring-boot-admin-server-ui/app/js/controller/overviewCtrl.js
View file @
d8395c20
...
...
@@ -63,4 +63,26 @@ module.exports = function ($scope, $location, $interval, $q, Applications, Appli
$interval
(
function
()
{
$scope
.
loadData
();
},
30000
);
$scope
.
order
=
{
column
:
'name'
,
descending
:
false
};
$scope
.
orderBy
=
function
(
column
)
{
if
(
column
===
$scope
.
order
.
column
)
{
$scope
.
order
.
descending
=
!
$scope
.
order
.
descending
;
}
else
{
$scope
.
order
.
column
=
column
;
$scope
.
order
.
descending
=
false
;
}
};
$scope
.
orderByCssClass
=
function
(
column
)
{
if
(
column
===
$scope
.
order
.
column
)
{
return
'sorted-'
+
(
$scope
.
order
.
descending
?
'descending'
:
'ascending'
);
}
else
{
return
''
;
}
};
};
spring-boot-admin-server-ui/app/views/overview.html
View file @
d8395c20
...
...
@@ -4,14 +4,17 @@
<table
class=
"table table-striped"
>
<thead>
<tr>
<th>
Application / URL
</th>
<th>
Version
</th>
<th><span
class=
"sortable"
ng-class=
"orderByCssClass('name')"
ng-click=
"orderBy('name')"
>
Application
</span>
/
<span
class=
"sortable"
ng-class=
"orderByCssClass('url')"
ng-click=
"orderBy('url')"
>
URL
</span>
</th>
<th><span
class=
"sortable"
ng-class=
"orderByCssClass('version')"
ng-click=
"orderBy('version')"
>
Version
</span></th>
<th>
Info
</th>
<th
colspan=
"2"
>
Status
</th>
<th
colspan=
"2"
>
<span
class=
"sortable"
ng-class=
"orderByCssClass('status')"
ng-click=
"orderBy('status')"
>
Status
</span>
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"application in applications track by application.id"
>
<tr
ng-repeat=
"application in applications
|orderBy:order.column:order.descending
track by application.id"
>
<td>
{{ application.name }}
<br/><span
class=
"muted"
>
{{ application.url }}
</span></td>
<td>
{{ application.version }}
</td>
<td><span
ng-repeat=
"(name, value) in application.info track by name"
>
{{name}}: {{value}}
<br></span></td>
...
...
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