Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Steven Burrows
2016-09-27 10:40:53 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d8e6c33bce3e860567b21bea85392a2ebef191d5
d8e6c33b
1 parent
5e935458
Styled the breadcrumbs bar
Change-Id: I1930e95532fed2e1842b59c0bec73e6fa09988b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
6 deletions
web/gui/src/main/webapp/app/view/topo2/topo2.css
web/gui/src/main/webapp/app/view/topo2/topo2.html
web/gui/src/main/webapp/app/view/topo2/topo2Breadcrumb.js
web/gui/src/main/webapp/index.html
web/gui/src/main/webapp/app/view/topo2/topo2.css
View file @
d8e6c33
...
...
@@ -52,15 +52,35 @@
}
#breadcrumbs
{
font-size
:
13px
;
background
:
#f5f5f5
;
border-bottom
:
1px
solid
#c7c7c0
;
position
:
absolute
;
padding
:
10px
30px
;
top
:
54px
;
padding
:
10px
20px
;
left
:
0
;
top
:
48px
;
width
:
100%
;
}
#breadcrumbs
.breadcrumb
{
display
:
inline-block
;
margin-right
:
20px
;
margin-right
:
5px
;
}
#breadcrumbs
.breadcrumb
a
{
cursor
:
pointer
;
}
#breadcrumbs
.breadcrumb
:after
{
content
:
'»'
;
pointer-events
:
none
;
color
:
#353535
;
line-height
:
20px
;
margin-left
:
5px
;
}
#breadcrumbs
.breadcrumb
:last-child:after
{
display
:
none
;
}
#topo2-p-instance
.floatpanel
{
...
...
web/gui/src/main/webapp/app/view/topo2/topo2.html
View file @
d8e6c33
...
...
@@ -37,3 +37,5 @@
notifier=
"notifyResize()"
>
</svg>
</div>
<div
id=
"breadcrumbs"
></div>
...
...
web/gui/src/main/webapp/app/view/topo2/topo2Breadcrumb.js
View file @
d8e6c33
...
...
@@ -32,7 +32,8 @@
function
init
()
{
$log
.
debug
(
"Topo2BreadcrumbService Initiated"
);
breadcrumbs
=
[];
breadcrumbContainer
=
d3
.
select
(
'#breadcrumbs'
);
breadcrumbContainer
=
d3
.
select
(
'#breadcrumbs'
).
append
(
'span'
)
.
text
(
'Regions: '
);
render
();
}
...
...
@@ -69,7 +70,7 @@
.
append
(
'div'
)
.
attr
(
'class'
,
'breadcrumb'
)
.
on
(
'click'
,
navigateToRegion
)
.
append
(
'
text
'
)
.
append
(
'
a
'
)
.
text
(
function
(
d
)
{
return
d
.
name
;
});
...
...
web/gui/src/main/webapp/index.html
View file @
d8e6c33
...
...
@@ -238,7 +238,6 @@
ng-controller=
"NavCtrl as navCtrl"
ng-include=
"'nav.html'"
></div>
<div
id=
"breadcrumbs"
></div>
<div
id=
"floatpanels"
></div>
<div
id=
"alerts"
></div>
<div
id=
"tooltip"
></div>
...
...
Please
register
or
login
to post a comment