header.tpl (2388B)
1 <!DOCTYPE html> 2 <head> 3 <meta name="Robots" content="index,follow"> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta charset="utf-8"/> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 <link rel="icon" href="/style/icon.png" type="image/png"> 8 <link rel="stylesheet" type="text/css" href="/style/style.css"> 9 {{ if eq .Template "query.tpl" }}<link href="{{.PfxPath}}/{{.BasePath}}/rss" type="application/rss+xml" rel="alternate" title="{{.Sysname}} {{.BasePath}} :: RSS feed" />{{ end }} 10 {{ if eq .Template "blog.tpl" }}<link href="{{.PfxPath}}/{{.BasePath}}+topics/rss" type="application/rss+xml" rel="alternate" title="{{.Sysname}} {{.BasePath}} :: RSS feed" />{{ end }} 11 12 <title>{{.Sysname}}</title> 13 </head> 14 <body> 15 <div id="body"> 16 <table id="header"> 17 <tr> 18 <td class="title"> 19 <span class="logo"><a href="/"><img class="logo" src="/style/icon.png">{{.Sysname}}</a></span> 20 {{ if eq .BasePath "" }} 21 <span class="info">II/IDEC networks :: <a href="{{ $.PfxPath }}/echo/all">New posts</a> 22 {{ else if gt (len .Topics) 0}} 23 <span class="info">II/IDEC networks {{ with .Echo }} :: <a href="{{$.PfxPath}}/echo/{{.}}">{{.}}</a> :: <span class="info">{{index $.Echolist.Info .}}</span>{{end}} 24 {{ else }} 25 {{ if eq .Template "query.tpl" }} 26 <span class="info">II/IDEC networks {{ with .Echo }} :: <a href="{{$.PfxPath}}/{{.}}">{{.}}</a> :: <span class="info">{{index $.Echolist.Info .}} / feed</span>{{end}} 27 {{ else }} 28 <span class="info">II/IDEC networks {{ with .Echo }} :: <a href="{{$.PfxPath}}/{{.}}">{{.}}</a> :: <span class="info">{{index $.Echolist.Info .}}</span>{{end}} 29 {{ end }} 30 {{ end }} 31 </span> 32 </td> 33 <td class="links"> 34 <span> 35 {{ template "links.tpl" }} 36 {{ if .User.Name }} 37 {{ if eq .BasePath "profile" }} 38 <a href="/reset">Reset password</a> | 39 <a href="/logout">Logout</a> 40 {{ else }} 41 <a href="/profile">{{.User.Name}}</a> 42 {{ end }} 43 44 {{ with .Echo }} 45 {{ if $.Topic }} 46 :: <a href="{{$.PfxPath}}/{{$.Topic}}/reply/new">New</a> 47 {{ else }} 48 :: <a href="{{$.PfxPath}}/{{.}}/new">New</a> 49 {{ end }} 50 {{ end }} 51 52 {{ else if eq .BasePath "login" }} 53 <a href="/register">Register</a> 54 {{ else }} 55 <a href="/login">Login</a> 56 {{ end }} 57 58 </span> 59 </td> 60 </tr> 61 </table>