retrogit/app/templates/settings.html
2014-08-24 21:05:50 -07:00

59 lines
1.1 KiB
HTML

{{define "title"}}GitHop - Settings{{end}}
{{define "repo"}}
<li><a href="{{.HTMLURL}}">{{.FullName}}</a></li>
{{end}}
{{define "body"}}
<p>
<form method="POST" action="{{routeUrl "set-timezone"}}">
<select name="timezone_name">
{{$accountTimezoneName := .Account.TimezoneName}}
{{range .Timezones}}
{{if .LocationName}}
<option value={{.LocationName}} {{if eq .LocationName $accountTimezoneName}}selected{{end}}>{{.LocationName}} (GMT {{.DisplayUTCOffset}})</option>
{{else}}
<option disabled></option>
{{end}}
{{end}}
</select>
<input type="submit" value="Set Timezone">
</form>
</p>
<p>
You have {{len .Repos.AllRepos}} repositories:
</p>
<ul>
{{range .Repos.UserRepos}}
{{template "repo" .}}
{{end}}
</ul>
<ul>
{{range .Repos.OtherUserRepos}}
<li>{{.User.Login}}</li>
<ul>
{{range .Repos}}
{{template "repo" .}}
{{end}}
</ul>
{{end}}
</ul>
<ul>
{{range .Repos.OrgRepos}}
<li>{{.Org.Login}}</li>
<ul>
{{range .Repos}}
{{template "repo" .}}
{{end}}
</ul>
{{end}}
</ul>
{{end}}