[Pharo] Personal fitness tracker web app.
Reorganized main navigation bar elements.
src/MyFitnessTracker/MFTMainNavigationBarComponent.class.st
@@ -40,17 +40,18 @@
40
40
41
41
| pm |
42
42
pm := self session pageManager.
43
Removed:
"The toggler that is only visible when reducing the width of screen"
43
Added:
html navigationBarBrand
44
Added:
callback: [ pm setActivePageAt: #landing ];
45
Added:
with: 'MyFitnessTracker'.
46
Added:
"The toggler is only visible when the screen width is reduced."
44
47
html navigationBarToggler
45
48
beButtonType;
46
49
collapse;
47
50
dataTarget: '#navbarCollapsed';
48
51
with: [ html navigationBarTogglerIcon ].
49
Removed:
html navigationBarBrand
50
Removed:
callback: [ pm setActivePageAt: #landing ];
51
Removed:
with: 'MyFitnessTracker'.
52
52
html navigationBarCollapse collapse
53
53
id: 'navbarCollapsed';
54
Added:
class: 'justify-content-between';
54
55
with: [
55
56
html navigationBarNavigation: [
56
57
pm mainPages keysAndValuesDo: [ :key :value |
@@ -59,6 +60,6 @@
59
60
with: [
60
61
html navigationLink
61
62
callback: [ pm setActivePageAt: key ];
62
Removed:
with: value title capitalized ] ] ] ].
63
Removed:
html div: [ html render: loginRegisterLogout ]
63
Added:
with: value title capitalized ] ] ].
64
Added:
html render: loginRegisterLogout ]
64
65
]