package gopherproxy var tpltext = ` {{ .Title }}
{{- $href := "" -}} {{- $uriParts := split .URI "/" -}} {{- $uriLast := $uriParts | last -}} {{- $uriParts = $uriParts | pop -}} {{- if eq $uriLast "" -}} {{- $uriLast = $uriParts | last -}} {{- $uriParts = $uriParts | pop -}} {{- end -}} {{- if eq (len $uriParts) 1 -}} {{- $uriLast = $uriParts | last -}} {{- $uriParts = $uriParts | pop -}} {{- end -}} {{- range $i, $part := $uriParts -}} {{- if ne $i 1 -}} {{- $href = printf "%s/%s" $href . -}} {{- if ne $i 0 -}} / {{- end -}} {{ . }} {{- else -}} {{- $href = printf "%s/1" $href -}} {{- end -}} {{- end -}} {{- if ne (len $uriParts) 0 -}} / {{- end -}} {{ $uriLast -}}
{{- if not .Lines -}} {{- end -}}
        {{- if .Lines -}}
          {{- $content := "" -}}
          {{- range .Lines -}}
            {{- if ne $content "" -}}
              {{- $content = printf "%s\n" $content -}}
            {{- end -}}
            {{- if .Link -}}
              {{- $content = printf "%s%s" $content (printf "%s  %s" .Type .Type .Link (.Text | HTMLEscape)) -}}
            {{- else -}}
              {{- $content = printf "%s%s" $content (printf "     %s" (.Text | HTMLEscape)) -}}
            {{- end -}}
          {{- end -}}
          {{- $content | safeHtml -}}
        {{- else -}}
          {{- .RawText -}}
        {{- end -}}
      
`