|
|
|
@@ -163,14 +163,14 @@ function displayRepoResult(page,jsonResult,onlyReturnNum,keyword){ |
|
|
|
html += " <div class=\"description\">"; |
|
|
|
html += " <p class=\"has-emoji\"> " + recordMap["description"] + "</p>"; |
|
|
|
html += " <div class=\"ui tags\">"; |
|
|
|
if(!isEmpty(recordMap["topics"])){ |
|
|
|
if(!isEmpty(recordMap["topics"]) && recordMap["topics"] !="null"){ |
|
|
|
for(var j = 0; j < recordMap["topics"].length;j++){ |
|
|
|
html +=" <a href=\"/explore/repos?q=" + recordMap["topics"][j] + "&topic=\"><div class=\"ui small label topic\">"+ recordMap["topics"][j] + "</div></a>"; |
|
|
|
} |
|
|
|
} |
|
|
|
html +=" </div>"; |
|
|
|
html +=" <p class=\"time\">"; |
|
|
|
html +=" <i class=\"ri-star-line\"></i>" + recordMap["NumStars"] + "<i class=\"ri-git-branch-line am-ml-10\"></i>" + recordMap["NumForks"]; |
|
|
|
html +=" <i class=\"ri-star-line\"></i>" + recordMap["num_stars"] + "<i class=\"ri-git-branch-line am-ml-10\"></i>" + recordMap["num_forks"]; |
|
|
|
html +=" 最后更新于 <span class=\"time-since poping up\" title=\"\" data-content=\"\" data-variation=\"inverted tiny\">" + getTime(recordMap["updated_unix"],currentTime) +"</span>"; |
|
|
|
html +=" <span class=\"text grey am-ml-10\"><i class=\"color-icon\" style=\"background-color: #3572A5\"></i>" + recordMap["lang"] + "</span>"; |
|
|
|
html +=" </p>"; |
|
|
|
|