diff options
author | Unknwon <u@gogs.io> | 2016-07-24 01:08:22 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-24 01:08:22 +0800 |
commit | 1f2e173a745da8e4b57f96b5561a3c10054d3b76 (patch) | |
tree | 367f0f07e4fe1269ac0772e0561a4bf912b5153c /templates/admin | |
parent | 46e96c008cf966428c9dad71c7871de88186e3fe (diff) | |
download | gitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.tar.gz gitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.zip |
Refactor User.Id to User.ID
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/base/page.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/base/search.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/org/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/edit.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/list.tmpl | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/templates/admin/base/page.tmpl b/templates/admin/base/page.tmpl index b689ed0811..564d7dec34 100644 --- a/templates/admin/base/page.tmpl +++ b/templates/admin/base/page.tmpl @@ -20,4 +20,4 @@ </div> </div> {{end}} - {{end}}
\ No newline at end of file + {{end}} diff --git a/templates/admin/base/search.tmpl b/templates/admin/base/search.tmpl index 29026a11a1..22634354b8 100644 --- a/templates/admin/base/search.tmpl +++ b/templates/admin/base/search.tmpl @@ -3,4 +3,4 @@ <input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..." autofocus> <button class="ui blue button">{{.i18n.Tr "explore.search"}}</button> </div> -</form>
\ No newline at end of file +</form> diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 8560d02196..6b9423d03e 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -27,7 +27,7 @@ <tbody> {{range .Users}} <tr> - <td>{{.Id}}</td> + <td>{{.ID}}</td> <td><a href="{{.HomeLink}}">{{.Name}}</a></td> <td>{{.NumTeams}}</td> <td>{{.NumMembers}}</td> diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 78088d1a7b..bed3097a50 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -102,7 +102,7 @@ <div class="field"> <button class="ui green button">{{.i18n.Tr "admin.users.update_profile"}}</button> - <div class="ui red button delete-button" data-url="{{$.Link}}/delete" data-id="{{.User.Id}}">{{.i18n.Tr "admin.users.delete_account"}}</div> + <div class="ui red button delete-button" data-url="{{$.Link}}/delete" data-id="{{.User.ID}}">{{.i18n.Tr "admin.users.delete_account"}}</div> </div> </form> </div> diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 5b5048f84a..8c7a0c9a90 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -31,14 +31,14 @@ <tbody> {{range .Users}} <tr> - <td>{{.Id}}</td> + <td>{{.ID}}</td> <td><a href="{{AppSubUrl}}/{{.Name}}">{{.Name}}</a></td> <td><span class="text truncate email">{{.Email}}</span></td> <td><i class="fa fa{{if .IsActive}}-check{{end}}-square-o"></i></td> <td><i class="fa fa{{if .IsAdmin}}-check{{end}}-square-o"></i></td> <td>{{.NumRepos}}</td> <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created }}</span></td> - <td><a href="{{$.Link}}/{{.Id}}"><i class="fa fa-pencil-square-o"></i></a></td> + <td><a href="{{$.Link}}/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td> </tr> {{end}} </tbody> |