The backend for the AiteStory website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
660 B

  1. $root = $
  2. mixin menuitem($path, $icon, $text)
  3. li
  4. .selected ? $root.ViewPath == $path
  5. a[href=$path]
  6. div.mg-icon #{$icon}
  7. div.mg-label #{$text}
  8. mixin tagmenuitem($tag)
  9. li
  10. [class=$tag.CSSClass]
  11. a[href=$tag.Path]
  12. div.mg-icon #{$tag.Icon}
  13. div.mg-label #{$tag.Name}
  14. mixin formoption($name, $selected, $label, $info)
  15. div.radio-wrapper
  16. $id = printf("checkbox-%s", $name)
  17. if $selected
  18. input[id=$id][type="checkbox"][name=$name][value="true"][checked]
  19. else
  20. input[id=$id][type="checkbox"][name=$name][value="true"]
  21. label[for="checkbox-unlisted"]
  22. b #{$label}:
  23. spamn #{$info}