Sha256: a863d58cf942d5f22456a5fd4d073d3f38fe15bca80616b935d0570eee02cb15

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

%h1
  =root

- if parent
  %a{ :href => parent.empty? ? "/#{idx}" : "/#{idx}#{parent}", :class => "parent" }
    ↪
    = parent.empty? ? '/' : parent
- else
  %a{ :href => "/", :class => "parent" }
    ↪ Back to selection

%h2
  =request.path_info.empty? ? '/' : request.path_info

%table
  -contents.each_with_index do |f, i|
    %tr
      %td
        %a{ :href => "/#{idx}#{request.path_info}/#{File.basename(f)}" }
          ="#{request.path_info}/#{File.basename(f)}"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitdocs-0.2.0 lib/gitdocs/views/dir.haml