|
43 | 43 |
|
44 | 44 | <div class="inline required field {{if .Err_RepoName}}error{{end}}"> |
45 | 45 | <label for="repo_name">{{.locale.Tr "repo.repo_name"}}</label> |
46 | | - <input id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required> |
| 46 | + <input id="repo_name" name="repo_name" value="{{.RepoName}}" autofocus required> |
47 | 47 | <span class="help">{{.locale.Tr "repo.repo_name_helper"}}</span> |
48 | 48 | </div> |
49 | 49 | <div class="inline field"> |
|
53 | 53 | <input name="private" type="checkbox" checked readonly> |
54 | 54 | <label>{{.locale.Tr "repo.visibility_helper_forced" | Safe}}</label> |
55 | 55 | {{else}} |
56 | | - <input name="private" type="checkbox" {{if .private}}checked{{end}}> |
| 56 | + <input name="private" type="checkbox" {{if .Private}}checked{{end}}> |
57 | 57 | <label>{{.locale.Tr "repo.visibility_helper" | Safe}}</label> |
58 | 58 | {{end}} |
59 | 59 | </div> |
60 | 60 | <span class="help">{{.locale.Tr "repo.visibility_description"}}</span> |
61 | 61 | </div> |
62 | 62 | <div class="inline field {{if .Err_Description}}error{{end}}"> |
63 | 63 | <label for="description">{{.locale.Tr "repo.repo_desc"}}</label> |
64 | | - <textarea id="description" name="description" placeholder="{{.locale.Tr "repo.repo_desc_helper"}}">{{.description}}</textarea> |
| 64 | + <textarea id="description" name="description" placeholder="{{.locale.Tr "repo.repo_desc_helper"}}">{{.Description}}</textarea> |
65 | 65 | </div> |
66 | 66 | <div class="inline field"> |
67 | 67 | <label>{{.locale.Tr "repo.template"}}</label> |
68 | 68 | <div id="repo_template_search" class="ui search normal selection dropdown"> |
69 | | - <input type="hidden" id="repo_template" name="repo_template" value="{{.repo_template}}"> |
70 | | - <div class="default text">{{.repo_template_name}}</div> |
| 69 | + <input type="hidden" id="repo_template" name="repo_template" value="{{.RepoTemplate}}"> |
| 70 | + <div class="default text">{{.RepoTemplateName}}</div> |
71 | 71 | <div class="menu"> |
72 | 72 | </div> |
73 | 73 | </div> |
|
77 | 77 | <div class="inline field"> |
78 | 78 | <label>{{.locale.Tr "repo.template.items"}}</label> |
79 | 79 | <div class="ui checkbox"> |
80 | | - <input class="hidden" name="git_content" type="checkbox" tabindex="0" {{if .git_content}}checked{{end}}> |
| 80 | + <input class="hidden" name="git_content" type="checkbox" tabindex="0" {{if .GitContent}}checked{{end}}> |
81 | 81 | <label>{{.locale.Tr "repo.template.git_content"}}</label> |
82 | 82 | </div> |
83 | 83 | <div class="ui checkbox{{if not .SignedUser.CanEditGitHook}} tooltip{{end}}"{{if not .SignedUser.CanEditGitHook}} data-content="{{.locale.Tr "repo.template.git_hooks_tooltip"}}"{{end}}> |
84 | | - <input class="hidden" name="git_hooks" type="checkbox" tabindex="0" {{if .git_hooks}}checked{{end}}> |
| 84 | + <input class="hidden" name="git_hooks" type="checkbox" tabindex="0" {{if .GitHooks}}checked{{end}}> |
85 | 85 | <label>{{.locale.Tr "repo.template.git_hooks"}}</label> |
86 | 86 | </div> |
87 | 87 | </div> |
88 | 88 | <div class="inline field"> |
89 | 89 | <label></label> |
90 | 90 | <div class="ui checkbox"> |
91 | | - <input class="hidden" name="webhooks" type="checkbox" tabindex="0" {{if .webhooks}}checked{{end}}> |
| 91 | + <input class="hidden" name="webhooks" type="checkbox" tabindex="0" {{if .Webhooks}}checked{{end}}> |
92 | 92 | <label>{{.locale.Tr "repo.template.webhooks"}}</label> |
93 | 93 | </div> |
94 | 94 | <div class="ui checkbox"> |
95 | | - <input class="hidden" name="topics" type="checkbox" tabindex="0" {{if .topics}}checked{{end}}> |
| 95 | + <input class="hidden" name="topics" type="checkbox" tabindex="0" {{if .Topics}}checked{{end}}> |
96 | 96 | <label>{{.locale.Tr "repo.template.topics"}}</label> |
97 | 97 | </div> |
98 | 98 | </div> |
99 | 99 | <div class="inline field"> |
100 | 100 | <label></label> |
101 | 101 | <div class="ui checkbox"> |
102 | | - <input class="hidden" name="avatar" type="checkbox" tabindex="0" {{if .avatar}}checked{{end}}> |
| 102 | + <input class="hidden" name="avatar" type="checkbox" tabindex="0" {{if .Avatar}}checked{{end}}> |
103 | 103 | <label>{{.locale.Tr "repo.template.avatar"}}</label> |
104 | 104 | </div> |
105 | 105 | <div class="ui checkbox"> |
106 | | - <input class="hidden" name="labels" type="checkbox" tabindex="0" {{if .labels}}checked{{end}}> |
| 106 | + <input class="hidden" name="labels" type="checkbox" tabindex="0" {{if .Labels}}checked{{end}}> |
107 | 107 | <label>{{.locale.Tr "repo.template.issue_labels"}}</label> |
108 | 108 | </div> |
109 | 109 | </div> |
|
113 | 113 | <div class="inline field"> |
114 | 114 | <label>{{.locale.Tr "repo.issue_labels"}}</label> |
115 | 115 | <div class="ui search normal selection dropdown"> |
116 | | - <input type="hidden" name="issue_labels" value="{{.issueLabels}}"> |
| 116 | + <input type="hidden" name="issue_labels" value="{{.IssueLabels}}"> |
117 | 117 | <div class="default text">{{.locale.Tr "repo.issue_labels_helper"}}</div> |
118 | 118 | <div class="menu"> |
119 | 119 | <div class="item" data-value="">{{.locale.Tr "repo.issue_labels_helper"}}</div> |
|
129 | 129 | <div class="inline field"> |
130 | 130 | <label>.gitignore</label> |
131 | 131 | <div class="ui multiple search normal selection dropdown"> |
132 | | - <input type="hidden" name="gitignores" value="{{.gitignores}}"> |
| 132 | + <input type="hidden" name="gitignores" value="{{.Gitignores}}"> |
133 | 133 | <div class="default text">{{.locale.Tr "repo.repo_gitignore_helper"}}</div> |
134 | 134 | <div class="menu"> |
135 | | - {{range .Gitignores}} |
| 135 | + {{range .DefaultGitignores}} |
136 | 136 | <div class="item" data-value="{{.}}">{{.}}</div> |
137 | 137 | {{end}} |
138 | 138 | </div> |
|
142 | 142 | <div class="inline field"> |
143 | 143 | <label>{{.locale.Tr "repo.license"}}</label> |
144 | 144 | <div class="ui search selection dropdown"> |
145 | | - <input type="hidden" name="license" value="{{.license}}"> |
| 145 | + <input type="hidden" name="license" value="{{.License}}"> |
146 | 146 | <div class="default text">{{.locale.Tr "repo.license_helper"}}</div> |
147 | 147 | <div class="menu"> |
148 | 148 | <div class="item" data-value="">{{.locale.Tr "repo.license_helper"}}</div> |
|
157 | 157 | <div class="inline field"> |
158 | 158 | <label>{{.locale.Tr "repo.readme"}}</label> |
159 | 159 | <div class="ui selection dropdown"> |
160 | | - <input type="hidden" name="readme" value="{{.readme}}"> |
| 160 | + <input type="hidden" name="readme" value="{{.Readme}}"> |
161 | 161 | <div class="default text">{{.locale.Tr "repo.readme_helper"}}</div> |
162 | 162 | <div class="menu"> |
163 | 163 | {{range .Readmes}} |
|
169 | 169 | </div> |
170 | 170 | <div class="inline field"> |
171 | 171 | <div class="ui checkbox" id="auto-init"> |
172 | | - <input class="hidden" name="auto_init" type="checkbox" tabindex="0" {{if .auto_init}}checked{{end}}> |
| 172 | + <input class="hidden" name="auto_init" type="checkbox" tabindex="0" {{if .AutoInit}}checked{{end}}> |
173 | 173 | <label>{{.locale.Tr "repo.auto_init"}}</label> |
174 | 174 | </div> |
175 | 175 | </div> |
176 | 176 | <div class="inline field"> |
177 | 177 | <label for="default_branch">{{.locale.Tr "repo.default_branch"}}</label> |
178 | | - <input id="default_branch" name="default_branch" value="{{.default_branch}}" placeholder="{{.default_branch}}"> |
| 178 | + <input id="default_branch" name="default_branch" value="{{.DefaultBranch}}" placeholder="{{.DefaultBranch}}"> |
179 | 179 | <span class="help">{{.locale.Tr "repo.default_branch_helper"}}</span> |
180 | 180 | </div> |
181 | 181 | <div class="inline field"> |
182 | 182 | <label>{{.locale.Tr "repo.settings.trust_model"}}</label> |
183 | 183 | <div class="ui selection owner dropdown"> |
184 | | - <input type="hidden" id="trust_model" name="trust_model" value="default" required> |
| 184 | + <input type="hidden" id="trust_model" name="trust_model" value="{{.TrustModel}}" required> |
185 | 185 | <div class="default text">{{.locale.Tr "repo.settings.trust_model"}}</div> |
186 | 186 | {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
187 | 187 | <div class="menu"> |
|
204 | 204 | <div class="inline field"> |
205 | 205 | <label>{{.locale.Tr "repo.template"}}</label> |
206 | 206 | <div class="ui checkbox"> |
207 | | - <input class="hidden" name="template" type="checkbox" tabindex="0"> |
| 207 | + <input class="hidden" name="template" type="checkbox" tabindex="0" {{if .Template}}checked{{end}}> |
208 | 208 | <label>{{.locale.Tr "repo.template_helper"}}</label> |
209 | 209 | </div> |
210 | 210 | </div> |
|
0 commit comments