1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-06-08 21:38:16 +08:00

, API: list user repos, list repo hooks

This commit is contained in:
Unknwon
2014-11-13 02:32:18 -05:00
parent 8c9338a537
commit 8eb5120fbd
12 changed files with 315 additions and 37 deletions
cmd
gogs.go
models
modules
auth
middleware
public/ng/js
routers/api/v1
templates

@ -210,7 +210,7 @@ var Gogs = {};
if (json.ok && json.data.length) {
var html = '';
$.each(json.data, function (i, item) {
html += '<li><a><img src="' + item.avatar + '">' + item.username + '</a></li>';
html += '<li><a><img src="' + item.avatar_url + '">' + item.username + '</a></li>';
});
$target.html(html);
$target.toggleShow();
@ -230,7 +230,7 @@ var Gogs = {};
if (json.ok && json.data.length) {
var html = '';
$.each(json.data, function (i, item) {
html += '<li><a><span class="octicon octicon-repo"></span> ' + item.repolink + '</a></li>';
html += '<li><a><span class="octicon octicon-repo"></span> ' + item.full_name + '</a></li>';
});
$target.html(html);
$target.toggleShow();