|
|
@@ -4,7 +4,7 @@ |
|
|
|
<div class="ui clearing divider"></div> |
|
|
|
<div id="app" class="six wide column"> |
|
|
|
<repo-search |
|
|
|
:search-limit="searchLimit" |
|
|
|
:search-limit=100 |
|
|
|
:suburl="suburl" |
|
|
|
:uid="uid" |
|
|
|
:more-repos-link="'{{.ContextUser.HomeLink}}'" |
|
|
@@ -90,39 +90,38 @@ |
|
|
|
</div> |
|
|
|
<div class="ui attached table segment"> |
|
|
|
<ul class="repo-owner-name-list"> |
|
|
|
<li v-for="repo in repos" :class="{'private': repo.private}" v-show="showRepo(repo)"> |
|
|
|
<a :href="suburl + '/' + repo.full_name"> |
|
|
|
<svg :class="'svg ' + repoClass(repo)" width="16" height="16" aria-hidden="true"><use :xlink:href="'#' + repoClass(repo)" /></svg> |
|
|
|
<strong class="text truncate item-name">${repo.full_name}</strong> |
|
|
|
<i v-if="repo.archived" class="archive icon archived-icon"></i> |
|
|
|
<span class="ui right text light grey"> |
|
|
|
${repo.stars_count} <span class="rear">{{svg "octicon-star" 16}}</span> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li v-if="showMoreReposLink"> |
|
|
|
<div class="center"> |
|
|
|
<div class="ui borderless pagination menu narrow"> |
|
|
|
<a class="item navigation" :class="{'disabled': page === 1}" |
|
|
|
@click="changePage(1)" title="{{$.i18n.Tr "admin.first_page"}}"> |
|
|
|
<i class="angle double left icon"></i> |
|
|
|
</a> |
|
|
|
<a class="item navigation" :class="{'disabled': page === 1}" |
|
|
|
@click="changePage(page - 1)" title="{{$.i18n.Tr "repo.issues.previous"}}"> |
|
|
|
<i class="left arrow icon"></i> |
|
|
|
</a> |
|
|
|
<a class="active item">${page}</a> |
|
|
|
<a class="item navigation" :class="{'disabled': page === finalPage}" |
|
|
|
@click="changePage(page + 1)" title="{{$.i18n.Tr "repo.issues.next"}}"> |
|
|
|
<i class="icon right arrow"></i> |
|
|
|
</a> |
|
|
|
<a class="item navigation" :class="{'disabled': page === finalPage}" |
|
|
|
@click="changePage(finalPage)" title="{{$.i18n.Tr "admin.last_page"}}"> |
|
|
|
<i class="angle double right icon"></i> |
|
|
|
<div class="ui repository list" v-for="repo in repos"> |
|
|
|
<div class="item"> |
|
|
|
<div class="ui header"> |
|
|
|
{{if .RelAvatarLink}} |
|
|
|
<img class="ui avatar image" src="{{.RelAvatarLink}}"> |
|
|
|
{{end}} |
|
|
|
<a class="name" :href="repo.html_url"> |
|
|
|
${repo.full_name} |
|
|
|
<i v-if="repo.archived" class="archive icon archived-icon"></i> |
|
|
|
</a> |
|
|
|
<span v-if="repo.private" class="middle text gold">{{svg "octicon-lock" 16}}</span> |
|
|
|
<span v-if="repo.fork" class="middle">{{svg "octicon-repo-forked" 16}}</span> |
|
|
|
<span v-if="repo.mirror" class="middle">{{svg "octicon-repo-clone" 16}}</span> |
|
|
|
<div class="ui right metas"> |
|
|
|
<span v-if="repo.primaryLanguage" class="text grey"> |
|
|
|
<i class="color-icon" v-bind:style="{backgroundColor: repo.primaryLanguageColor}"></i> |
|
|
|
${repo.primaryLanguage} |
|
|
|
</span> |
|
|
|
<span class="text grey">{{svg "octicon-star" 16}} ${repo.stars_count}</span> |
|
|
|
<span class="text grey">{{svg "octicon-git-branch" 16}} ${repo.forks_count}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="description"> |
|
|
|
<p v-if="repo.description" class="has-emoji">${repo.description}</p> |
|
|
|
<p class="time" >{{$.i18n.Tr "org.repo_updated"}}<span v-html="repo.timeSinceUnixUpdatedHtml"></span> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</div> |
|
|
|
<div v-if="repos.length==0"> |
|
|
|
{{$.i18n.Tr "explore.repo_no_results"}} |
|
|
|
</div> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|