Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
Cesium
Commits
f5dda6fd
Commit
f5dda6fd
authored
8 years ago
by
CamilleC
Browse files
Options
Downloads
Patches
Plain Diff
Move buttons in node's list
parent
62ce4bf2
No related branches found
No related tags found
1 merge request
!257
Add filters in node's list
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
www/js/controllers/network-controllers.js
+3
-2
3 additions, 2 deletions
www/js/controllers/network-controllers.js
www/templates/network/modal_network.html
+40
-30
40 additions, 30 deletions
www/templates/network/modal_network.html
with
43 additions
and
32 deletions
www/js/controllers/network-controllers.js
+
3
−
2
View file @
f5dda6fd
...
@@ -114,6 +114,7 @@ function NetworkModalController($scope, $q, $translate, $timeout, $ionicPopover,
...
@@ -114,6 +114,7 @@ function NetworkModalController($scope, $q, $translate, $timeout, $ionicPopover,
$scope
.
formData
=
{
$scope
.
formData
=
{
useRelative
:
csSettings
.
data
.
useRelative
useRelative
:
csSettings
.
data
.
useRelative
};
};
$scope
.
enableFilter
=
true
;
$scope
.
enableFilter
=
true
;
$scope
.
display
=
'
members
'
;
$scope
.
display
=
'
members
'
;
$scope
.
screen
=
UIUtils
.
screen
;
$scope
.
screen
=
UIUtils
.
screen
;
...
@@ -152,19 +153,19 @@ function NetworkModalController($scope, $q, $translate, $timeout, $ionicPopover,
...
@@ -152,19 +153,19 @@ function NetworkModalController($scope, $q, $translate, $timeout, $ionicPopover,
}
}
});
});
$scope
.
$on
(
'
$destroy
'
,
function
(){
$scope
.
$on
(
'
modal.hidden
'
,
function
(){
csNetwork
.
close
();
csNetwork
.
close
();
});
});
}
}
};
};
$scope
.
refresh
=
function
()
{
$scope
.
refresh
=
function
()
{
// Network
$scope
.
loadingPeers
=
true
;
$scope
.
loadingPeers
=
true
;
csNetwork
.
loadPeers
();
csNetwork
.
loadPeers
();
};
};
$scope
.
countMembersNodes
=
function
(){
$scope
.
countMembersNodes
=
function
(){
$scope
.
nbMembersPeers
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
peers
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
$scope
.
peers
.
length
;
i
++
){
if
(
$scope
.
peers
[
i
].
level
){
if
(
$scope
.
peers
[
i
].
level
){
$scope
.
nbMembersPeers
++
;
$scope
.
nbMembersPeers
++
;
...
...
This diff is collapsed.
Click to expand it.
www/templates/network/modal_network.html
+
40
−
30
View file @
f5dda6fd
...
@@ -2,50 +2,59 @@
...
@@ -2,50 +2,59 @@
<ion-header-bar
class=
"bar-positive"
>
<ion-header-bar
class=
"bar-positive"
>
<button
class=
"button button-clear"
ng-click=
"closeModal()"
translate
>
COMMON.BTN_CANCEL
</button>
<button
class=
"button button-clear"
ng-click=
"closeModal()"
translate
>
COMMON.BTN_CANCEL
</button>
<h1
class=
"title"
translate
>
PEER.NODE_LIST
</h1>
<h1
class=
"title"
translate
>
PEER.NODE_LIST
</h1>
<ion-spinner
class=
"pull-right button button-icon hidden-xs hidden-sm"
icon=
"android"
ng-if=
"loadingPeers"
></ion-spinner>
<div
class=
"buttons buttons-right header-item"
>
<button
class=
"pull-right button button-icon ion-loop button-clear hidden-xs hidden-sm"
ng-if=
"!loadingPeers"
ng-click=
"refresh()"
>
<span
class=
"secondary"
>
<button
class=
"button button-clear icon ion-loop button-clear"
ng-click=
"refresh()"
>
</button>
</button>
<button
class=
"button button-icon button-clear icon ion-android-more-vertical visible-xs visible-sm"
<button
class=
"button button-icon button-clear icon ion-android-more-vertical visible-xs visible-sm"
ng-click=
"showActionsPopover($event)"
>
ng-click=
"showActionsPopover($event)"
>
</button>
</button>
</span>
</div>
</ion-header-bar>
</ion-header-bar>
<ion-content
scroll=
"true"
>
<ion-content>
<div
class=
"list"
>
<div
class=
"list"
>
<div
class=
"padding padding-xs"
style=
"display: block; height: 60px;"
>
<div
class=
"padding padding-xs"
style=
"display: block; height: 60px;"
>
<div
id=
"helptip-currency-peers"
class=
"pull-left"
>
<div
id=
"helptip-currency-peers"
class=
"pull-left"
>
<h4
class=
"visible-xs visible-sm"
<h4
class=
"visible-xs visible-sm"
ng-if=
"display=='allNodes'||!enableFilter"
>
ng-if=
"display=='allNodes'||!enableFilter"
>
{{'PEER.ALL_NODES' | translate}} ({{peers.length}}) :
{{'PEER.ALL_NODES' | translate}}
<span
ng-if=
"peers.length != 0"
>
({{peers.length}})
</span>
:
</h4>
</h4>
<h4
class=
"visible-xs visible-sm"
<h4
class=
"visible-xs visible-sm"
ng-if=
"display=='members'"
>
ng-if=
"display=='members'"
>
{{'PEER.MEMBERS' | translate}} ({{nbMembersPeers}}) :
{{'PEER.MEMBERS' | translate}}
<span
ng-if=
"nbMembersPeers != 0"
>
({{nbMembersPeers}})
</span>
:
</h4>
</h4>
<h4
class=
"hidden-xs hidden-sm"
<h4
class=
"hidden-xs hidden-sm"
>
ng-if=
"display=='allNodes'||!enableFilter"
>
{{'PEER.PEERS' | translate}}
{{'PEER.PEERS' | translate}} ({{peers.length}}) :
<span
ng-if=
"peers.length != 0 && (display=='allNodes'||!enableFilter)"
>
({{peers.length}})
</span>
</h4>
<span
ng-if=
"nbMembersPeers != 0 && display=='members'"
>
({{nbMembersPeers}})
</span>
:
<h4
class=
"hidden-xs hidden-sm"
ng-if=
"display=='members'"
>
{{'PEER.PEERS' | translate}} ({{nbMembersPeers}}) :
</h4>
</h4>
</div>
</div>
<div
class=
"pull-right hidden-xs hidden-sm"
ng-if=
"enableFilter"
>
<a
class=
"button button-text button-small ink icon ion-android-people"
<div
class=
"pull-right"
>
<ion-spinner
class=
"icon"
icon=
"android"
ng-if=
"loadingPeers"
></ion-spinner>
<div
class=
"pull-right"
>
<a
class=
"button button-text button-small ink icon ion-android-people hidden-xs hidden-sm"
ng-class=
"{'button-text-positive': display=='members'}"
ng-class=
"{'button-text-positive': display=='members'}"
ng-click=
"changeDisplay('members')"
>
ng-click=
"changeDisplay('members')"
ng-if=
"enableFilter"
>
{{'PEER.MEMBERS' | translate}}
{{'PEER.MEMBERS' | translate}}
</a>
</a>
<a
class=
"button button-text button-small ink icon ion-ios-infinite"
<a
class=
"button button-text button-small ink icon ion-ios-infinite
hidden-xs hidden-sm
"
ng-class=
"{'button-text-positive': display=='allNodes'}"
ng-class=
"{'button-text-positive': display=='allNodes'}"
ng-click=
"changeDisplay('allNodes')"
>
ng-click=
"changeDisplay('allNodes')"
ng-if=
"enableFilter"
>
{{'PEER.ALL_NODES' | translate}}
{{'PEER.ALL_NODES' | translate}}
</a>
</a>
</div>
</div>
</div>
</div>
</div>
<ng-click
class=
"peer-item item item-icon-left"
<ng-click
class=
"peer-item item item-icon-left"
ng-repeat=
"peer in peers track by peer.server"
ng-repeat=
"peer in peers track by peer.server"
id=
"helptip-currency-peer-{{$index}}"
id=
"helptip-currency-peer-{{$index}}"
...
@@ -71,6 +80,7 @@
...
@@ -71,6 +80,7 @@
</div>
</div>
</div>
</div>
</ng-click>
</ng-click>
</div>
</div>
</ion-content>
</ion-content>
</ion-modal-view>
</ion-modal-view>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment