Browse Source

修改首页2021V2推荐组织链接为卡片

tags/v1.22.1.1^2
OpenIhu 4 years ago
parent
commit
872109f5b1
2 changed files with 6 additions and 3 deletions
  1. +3
    -0
      custom/public/css/git.openi.css
  2. +3
    -3
      public/home/home.js

+ 3
- 0
custom/public/css/git.openi.css View File

@@ -57,6 +57,9 @@
box-shadow: 0 2px 4px 0 rgba(34,36,38,.3);
}

.ui.blue {
color: #0366d6;
}

.ui.secondary.hometop.segment{
background: #DFE9F0;


+ 3
- 3
public/home/home.js View File

@@ -418,17 +418,17 @@ function displayOrg(json){
for(var i = 0; i < json.length;i++){
var record = json[i]
html += "<div class=\"column\">";
html += " <div class=\"ui fluid card\">";
html += " <a href=\"/" + record["Name"] + " class=\"ui fluid card\">";
html += " <div class=\"content\">";
html += " <div class=\"ui small header\">";
html += " <img class=\"ui image\" src=\"" + record["Avatar"] + "\">";
html += " <div class=\"content nowrap\">";
html += " <a href=\"/" + record["Name"] + "\">" + record["Name"] + "</a> " + record["FullName"];
html += " <span class=\"ui blue\">" + record["Name"] + "</sapn> " + record["FullName"];
html += " <div class=\"sub header\">" + record["NumRepos"] +" " + getRepoOrOrg(1,isZh) + " ・ " + record["NumMembers"] +" " + getRepoOrOrg(2,isZh) + " ・ " + record["NumTeams"] + " " + getRepoOrOrg(3,isZh) + "</div>";
html += " </div>";
html += " </div>";
html += " </div>";
html += " </div>";
html += " </a>";
html += "</div>";
}
}


Loading…
Cancel
Save