github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/ip_search.html (about) 1 {{template "header.html" . }} 2 <main id="ip_search_container"> 3 <div class="rowblock rowhead"> 4 <div class="rowitem"> 5 <h1>{{lang "ip_search_head"}}</h1> 6 </div> 7 </div> 8 <form action="/users/ips/"method="get"id="ip-search-form"></form> 9 <div class="rowblock ip_search_block"> 10 <div class="rowitem passive"> 11 <input form="ip-search-form"name="ip"class="ip_search_input"type="search"placeholder="🔍︎"{{if .IP}}value="{{.IP}}"{{end}}> 12 <input form="ip-search-form"class="ip_search_search"type="submit"value="{{lang "ip_search_search_button"}}"> 13 </div> 14 </div> 15 {{if .IP}}<div class="rowblock rowlist bgavatars micro_grid{{if .ItemList}} has_items{{end}}"> 16 {{range .ItemList}}<div class="rowitem"style="background-image:url('{{.Avatar}}');"> 17 <img src="{{.Avatar}}"class="bgsub"alt="Avatar"aria-hidden="true"> 18 <a class="rowTitle"href="{{.Link}}">{{.Name}}</a> 19 </div> 20 {{else}}<div class="rowitem rowmsg">{{lang "ip_search_no_users"}}</div>{{end}} 21 </div>{{end}} 22 </main> 23 {{template "footer.html" . }}