github.com/keysonZZZ/kmg@v0.0.0-20151121023212-05317bfd7d39/kmgView/kmgBootstrap/tplNavTabList.gotplhtml (about)

     1  <?
     2  package kmgBootstrap
     3  
     4  func tplNavTabList(conf NavTabList)string { ?>
     5  
     6  <?if conf.CustomClass == "" {
     7      conf.CustomClass="nav-pills"
     8  } ?>
     9      <ul class="nav <?=conf.CustomClass?>">
    10     <? for _,opt:=range conf.OptionList { ?>
    11      <li
    12          <?if opt.Name==conf.ActiveName { ?>
    13             class="active")
    14          <?}?>
    15              >
    16          <a href="<?=opt.Url?>"><?=opt.Name?></a>
    17      </li>
    18      <?}?>
    19  </ul>
    20  <? } ?>