nitdoc: fixes double span on topmenu brand
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 24 Apr 2015 03:24:39 +0000 (23:24 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 6 May 2015 17:18:14 +0000 (13:18 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/doc_phases/doc_html.nit

index 3ee3379..d188371 100644 (file)
@@ -192,14 +192,7 @@ redef class DocPage
        # Build top menu template if any.
        fun init_topmenu(v: RenderHTMLPhase, doc: DocModel) do
                topmenu = new DocTopMenu
-               var brand = v.ctx.opt_custom_brand.value
-               if brand != null then
-                       var tpl = new Template
-                       tpl.add "<span class='navbar-brand'>"
-                       tpl.add brand
-                       tpl.add "</span>"
-                       topmenu.brand = tpl
-               end
+               topmenu.brand = v.ctx.opt_custom_brand.value
                var title = "Overview"
                if v.ctx.opt_custom_title.value != null then
                        title = v.ctx.opt_custom_title.value.to_s