Browse Source

Merge branch 'master' of https://gitote.in/gitote/gitote

Yoginth 7 years ago
parent
commit
22e2199eb3
2 changed files with 4 additions and 4 deletions
  1. 0 4
      models/user.go
  2. 4 0
      templates/admin/news/new.tmpl

+ 0 - 4
models/user.go

@@ -182,10 +182,6 @@ func (u *User) APIFormat() *api.User {
 		NumFollowing:     u.NumFollowing,
 		NumFollowers:     u.NumFollowers,
 		AvatarUrl:        u.AvatarLink(),
-		FollowersURL:     setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/followers",
-		FollowingURL:     setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/following",
-		OrganizationsURL: setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/orgs",
-		ReposURL:         setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/repos",
 	}
 }
 

+ 4 - 0
templates/admin/news/new.tmpl

@@ -12,6 +12,10 @@
 					<form class="ui form" action="{{.Link}}" method="post">
 						{{.CSRFTokenHTML}}
 						<!-- Types and name -->
+						<div class="required field">
+							<label for="">Image URL</label>
+							<input type="url" id="" name="" value="" autofocus required>
+						</div>
 						<div class="required field">
 							<label for="">Heading</label>
 							<input id="" name="" value="" autofocus required>