       <span class="editable">#{@model.get 'displayName'}</span>
       <input type="text" id="txtName" style="display: none"/>
     """
-    if window.user.effective?.logoUrl?
-      tpl = """<img src="#{window.user.effective.logoUrl}"> #{tpl}"""
-    @$el.html tpl
+    @$el.html whitelabel(tpl)
     @
+
+whitelabel = (tpl) ->
+   if window.user.effective?.logoUrl?
+     tpl = """<img src="#{window.user.effective.logoUrl}"> #{tpl}"""
+   tpl


  render: ->
    tpl = """#{@options.text}"""
    if window.user.effective?.logoUrl?
      tpl = """<img src="#{window.user.effective.logoUrl}"> #{tpl}"""
    @$el.html tpl
    @

  setDocumentTitle: (model) =>

      <span class="slash">/</span>
      Settings
    """
    @$el.html whitelabel(tpl)
    @


