Sha256: 97b84abf25aad4a63910af782ce93fc6f6a662cbdbc65caa35a97a2b274ea2ac

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 Bytes

Contents

!!!
%html
  %head
    :css
      h3 { margin-top: 0 }
      .sidebar { float:left; width: 15%; font-size: small }
      ul { list-style-type: none; margin-left: 0; padding-left: 0 }
      .page-count { font-size: smaller; color: #CCC }
  %body
    .sidebar
      %h3 Namespaces
      %ul
        - namespaces.each do |namespace, count|
          %li
            - if root 
              %a{:href => "#{namespace}/index.html"}= namespace 
            - else
              %a{:href => "../#{namespace}/index.html"}= namespace 
            %span.page-count
              = count
    .sidebar
      - if ! root
        %h3= namespace
        %ul
          - pages.each do |page|
            %li
              %a{:href => "#{page}.html"}= page

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soywiki-0.7.3 lib/index_template.html.haml
soywiki-0.7.2 lib/index_template.html.haml