@@ -49,12 +49,20 @@ export function rebuildFooter (footer: HTMLElement, store: LiveStore, pod: Named
4949 */
5050export function createControllerInfoBlock ( store : LiveStore , user : NamedNode | null , pod : NamedNode | null , podOwner : NamedNode | null , options ?: FooterOptions ) : HTMLElement {
5151 const profileLinkContainer = document . createElement ( 'div' )
52+ profileLinkContainer . setAttribute ( 'style' , style . footer )
53+
54+ const solidProjectLink = document . createElement ( 'a' )
55+ solidProjectLink . href = options && options . solidProjectUrl ? options . solidProjectUrl : DEFAULT_SOLID_PROJECT_URL
56+ solidProjectLink . innerText = options && options . solidProjectName ? options . solidProjectName : DEFAULT_SOLID_PROJECT_NAME
57+
5258 if ( ! pod || ! podOwner || ( user && user . equals ( podOwner ) ) ) {
59+ const defaultPrefix = document . createElement ( 'span' )
60+ defaultPrefix . innerText = 'Powered by '
61+ profileLinkContainer . appendChild ( defaultPrefix )
62+ profileLinkContainer . appendChild ( solidProjectLink )
5363 return profileLinkContainer
5464 }
5565
56- profileLinkContainer . setAttribute ( 'style' , style . footer )
57-
5866 const podLinkPre = document . createElement ( 'span' )
5967 podLinkPre . innerText = 'You\'re visiting '
6068
@@ -72,10 +80,6 @@ export function createControllerInfoBlock (store: LiveStore, user: NamedNode | n
7280 const solidProjectLinkPre = document . createElement ( 'span' )
7381 solidProjectLinkPre . innerText = '. For more info, check out '
7482
75- const solidProjectLink = document . createElement ( 'a' )
76- solidProjectLink . href = options && options . solidProjectUrl ? options . solidProjectUrl : DEFAULT_SOLID_PROJECT_URL
77- solidProjectLink . innerText = options && options . solidProjectName ? options . solidProjectName : DEFAULT_SOLID_PROJECT_NAME
78-
7983 const solidProjectLinkPost = document . createElement ( 'span' )
8084 solidProjectLinkPost . innerText = '.'
8185
0 commit comments