Class { #name : 'TBAdminHeaderComponent', #superclass : 'TBHeaderComponent', #category : 'TinyBlog-Components', #package : 'TinyBlog-Components' } { #category : 'rendering' } TBAdminHeaderComponent >> renderButtonsOn: html [ html form: [ self renderDisconnectButtonOn: html. self renderPublicViewButton: html ] ] { #category : 'rendering' } TBAdminHeaderComponent >> renderDisconnectButtonOn: html [ html formButton beSecondary; callback: [ self session reset ]; with: [ html text: 'Disconnect'. html span class: 'glyphicon glyphicon-logout' ] ] { #category : 'rendering' } TBAdminHeaderComponent >> renderPublicViewButton: html [ self session isLogged ifTrue: [ html formButton beSecondary; callback: [ component goToPostListView ]; with: [ html span class: 'glyphicon glyphicon-eye-open'. html text: ' Public View' ] ] ]