cerca

lean forum software (pmc local branch)
git clone http://git.permacomputing.net/repos/cerca.git # read-only access
Log | Files | Refs | README | LICENSE

index.html (515B)


      1 {{ template "head" . }}
      2 <main>
      3     {{ if len .Data.Threads | eq 0 }} 
      4     <p> There are currently no threads. </p>
      5     {{ end }}
      6     {{ range $index, $thread := .Data.Threads }}
      7     <h2>
      8       <a href="{{$thread.Slug}}">{{ $thread.Title }}</a>
      9       {{ if $thread.Private }} <span title='{{ "Private" | translate }}'>⚿</span> {{ end }}
     10     </h2>
     11     {{ end }}
     12 </main>
     13 {{ if .LoggedIn }}
     14 <aside>
     15     <p> <a href="/thread/new">{{ "ThreadStartNew" | translate }}</a></p>
     16 </aside>
     17 {{ end }}
     18 {{ template "footer" . }}