|
|
@@ -155,37 +155,61 @@ |
|
|
|
</div> |
|
|
|
<div class="ui six wide tablet four wide computer column"> |
|
|
|
<div id="repo-desc"> |
|
|
|
<h4 class="ui header">简介</h4> |
|
|
|
<h4 class="ui header">简介 |
|
|
|
<!-- <a class="edit-icon" href="javascript:void(0)"> |
|
|
|
<i class="gray edit outline icon"></i> |
|
|
|
</a> --> |
|
|
|
</h4> |
|
|
|
<p> |
|
|
|
{{if .Repository.DescriptionHTML}} |
|
|
|
<span class="description">{{.Repository.DescriptionHTML}}</span> |
|
|
|
{{else}} |
|
|
|
<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span> |
|
|
|
{{end}} |
|
|
|
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a> |
|
|
|
{{if .Repository.DescriptionHTML}} |
|
|
|
<span class="description" style="word-break:break-all">{{.Repository.DescriptionHTML}}</span> |
|
|
|
{{else}} |
|
|
|
<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{if .Repository.Website}} |
|
|
|
<p class="ui"> |
|
|
|
<i class="gray linkify icon"></i> |
|
|
|
<a class="link" target="_blank" href="{{.Repository.Website}}">{{.Repository.Website}}</a> |
|
|
|
</p> |
|
|
|
{{else}} |
|
|
|
<p class="ui" style="display: none;"></p> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
<p class="ui" id="repo-topics"> |
|
|
|
<i class="grey bookmark icon"></i> |
|
|
|
{{range .Topics}}<a class="ui repo-topic small label topic" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}} |
|
|
|
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<a id="manage_topic">{{.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}} |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
{{if .LanguageStats}} |
|
|
|
<p class="ui"> |
|
|
|
<i class="grey code icon"></i> |
|
|
|
{{range .LanguageStats}} |
|
|
|
{{.Language}} |
|
|
|
{{end}} |
|
|
|
</p> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
<p class="ui" style="display: none;"></p> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
{{if .LICENSE}} |
|
|
|
<p class="ui"> |
|
|
|
<i class="grey clone icon"></i> |
|
|
|
{{if .LICENSE}} |
|
|
|
{{.LICENSE}} |
|
|
|
{{end}} |
|
|
|
</p> |
|
|
|
{{else}} |
|
|
|
<p class="ui" style="display: none;"></p> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
<div class="ui divider"></div> |
|
|
|
|
|
|
|