|
6 | 6 | <div class="ui mobile reversed stackable grid">
|
7 | 7 | <div class="ui container ten wide column">
|
8 | 8 | {{if .EnableHeatmap}}
|
9 |
| - <div id="user-heatmap" style="padding-right: 40px"> |
10 |
| - <activity-heatmap :locale="locale" :suburl="suburl" :user="heatmapUser"> |
11 |
| - <div slot="loading"> |
12 |
| - <div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.i18n.Tr "user.heatmap.loading"}}</div> |
13 |
| - </div> |
14 |
| - </activity-heatmap> |
15 |
| - <div class="ui divider"></div> |
16 |
| - </div> |
| 9 | + {{template "user/dashboard/heatmap" .}} |
17 | 10 | {{end}}
|
18 | 11 | {{template "user/dashboard/feeds" .}}
|
19 | 12 | </div>
|
20 |
| - <div id="app" class="six wide column"> |
21 |
| - <repo-search |
22 |
| - :search-limit="searchLimit" |
23 |
| - :suburl="suburl" |
24 |
| - :uid="uid" |
25 |
| - :more-repos-link="'{{.ContextUser.HomeLink}}'" |
26 |
| - {{if not .ContextUser.IsOrganization}} |
27 |
| - :organizations="[ |
28 |
| - {{range .ContextUser.Orgs}} |
29 |
| - {name: '{{.Name}}', num_repos: '{{.NumRepos}}'}, |
30 |
| - {{end}} |
31 |
| - ]" |
32 |
| - :is-organization="false" |
33 |
| - :organizations-total-count="{{.ContextUser.GetOrganizationCount}}" |
34 |
| - :can-create-organization="{{.SignedUser.CanCreateOrganization}}" |
35 |
| - {{end}} |
36 |
| - inline-template |
37 |
| - v-cloak |
38 |
| - > |
39 |
| - <div> |
40 |
| - <div v-if="!isOrganization" class="ui two item tabable menu"> |
41 |
| - <a :class="{item: true, active: tab === 'repos'}" @click="changeTab('repos')">{{.i18n.Tr "repository"}}</a> |
42 |
| - <a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{.i18n.Tr "organization"}}</a> |
43 |
| - </div> |
44 |
| - <div v-show="tab === 'repos'" class="ui tab active list dashboard-repos"> |
45 |
| - <h4 class="ui top attached header"> |
46 |
| - {{.i18n.Tr "home.my_repos"}} <span class="ui grey label">${reposTotalCount}</span> |
47 |
| - {{if or (not .ContextUser.IsOrganization) .IsOrganizationOwner}} |
48 |
| - <div class="ui right"> |
49 |
| - <a class="poping up" :href="suburl + '/repo/create{{if .ContextUser.IsOrganization}}?org={{.ContextUser.ID}}{{end}}'" data-content="{{.i18n.Tr "new_repo"}}" data-variation="tiny inverted" data-position="left center"> |
50 |
| - <i class="plus icon"></i> |
51 |
| - <span class="sr-only">{{.i18n.Tr "new_repo"}}</span> |
52 |
| - </a> |
53 |
| - </div> |
54 |
| - {{end}} |
55 |
| - </h4> |
56 |
| - <div class="ui attached secondary segment repos-search"> |
57 |
| - <div class="ui fluid icon input" :class="{loading: isLoading}"> |
58 |
| - <input @input="searchRepos(reposFilter)" v-model="searchQuery" ref="search" placeholder="{{.i18n.Tr "home.search_repos"}}"> |
59 |
| - <i class="search icon"></i> |
60 |
| - </div> |
61 |
| - <div class="ui secondary tiny pointing borderless menu center aligned grid repos-filter"> |
62 |
| - <a class="item" :class="{active: reposFilter === 'all'}" @click="changeReposFilter('all')"> |
63 |
| - {{.i18n.Tr "all"}} |
64 |
| - <div v-show="reposFilter === 'all'" class="ui circular mini grey label">${repoTypeCount}</div> |
65 |
| - </a> |
66 |
| - <a class="item" :class="{active: reposFilter === 'sources'}" @click="changeReposFilter('sources')"> |
67 |
| - {{.i18n.Tr "sources"}} |
68 |
| - <div v-show="reposFilter === 'sources'" class="ui circular mini grey label">${repoTypeCount}</div> |
69 |
| - </a> |
70 |
| - <a class="item" :class="{active: reposFilter === 'forks'}" @click="changeReposFilter('forks')"> |
71 |
| - {{.i18n.Tr "forks"}} |
72 |
| - <div v-show="reposFilter === 'forks'" class="ui circular mini grey label">${repoTypeCount}</div> |
73 |
| - </a> |
74 |
| - <a class="item" :class="{active: reposFilter === 'mirrors'}" @click="changeReposFilter('mirrors')"> |
75 |
| - {{.i18n.Tr "mirrors"}} |
76 |
| - <div v-show="reposFilter === 'mirrors'" class="ui circular mini grey label">${repoTypeCount}</div> |
77 |
| - </a> |
78 |
| - <a class="item" :class="{active: reposFilter === 'collaborative'}" @click="changeReposFilter('collaborative')"> |
79 |
| - {{.i18n.Tr "collaborative"}} |
80 |
| - <div v-show="reposFilter === 'collaborative'" class="ui circular mini grey label">${repoTypeCount}</div> |
81 |
| - </a> |
82 |
| - </div> |
83 |
| - </div> |
84 |
| - <div class="ui attached table segment"> |
85 |
| - <ul class="repo-owner-name-list"> |
86 |
| - <li v-for="repo in repos" :class="{'private': repo.private}" v-show="showRepo(repo, reposFilter)"> |
87 |
| - <a :href="suburl + '/' + repo.full_name"> |
88 |
| - <svg :class="'svg ' + repoClass(repo)" width="16" height="16" aria-hidden="true"><use :xlink:href="'#' + repoClass(repo)" /></svg> |
89 |
| - <strong class="text truncate item-name">${repo.full_name}</strong> |
90 |
| - <i v-if="repo.archived" class="archive icon archived-icon"></i> |
91 |
| - <span class="ui right text light grey"> |
92 |
| - ${repo.stars_count} <span class="rear">{{svg "octicon-star" 16}}</span> |
93 |
| - </span> |
94 |
| - </a> |
95 |
| - </li> |
96 |
| - <li v-if="showMoreReposLink"> |
97 |
| - <a :href="moreReposLink">{{.i18n.Tr "home.show_more_repos"}}</a> |
98 |
| - </li> |
99 |
| - </ul> |
100 |
| - </div> |
101 |
| - </div> |
102 |
| - <div v-if="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list"> |
103 |
| - <h4 class="ui top attached header"> |
104 |
| - {{.i18n.Tr "home.my_orgs"}} <span class="ui grey label">${organizationsTotalCount}</span> |
105 |
| - <div v-if="canCreateOrganization" class="ui right"> |
106 |
| - <a class="poping up" :href="suburl + '/org/create'" data-content="{{.i18n.Tr "new_org"}}" data-variation="tiny inverted" data-position="left center"> |
107 |
| - <i class="plus icon"></i> |
108 |
| - <span class="sr-only">{{.i18n.Tr "new_org"}}</span> |
109 |
| - </a> |
110 |
| - </div> |
111 |
| - </h4> |
112 |
| - <div class="ui attached table segment"> |
113 |
| - <ul class="repo-owner-name-list"> |
114 |
| - <li v-for="org in organizations"> |
115 |
| - <a :href="suburl + '/' + org.name"> |
116 |
| - {{svg "octicon-organization" 16}} |
117 |
| - <strong class="text truncate item-name">${org.name}</strong> |
118 |
| - <span class="ui right text light grey"> |
119 |
| - ${org.num_repos} <span class="rear">{{svg "octicon-repo" 16}}</span> |
120 |
| - </span> |
121 |
| - </a> |
122 |
| - </li> |
123 |
| - </ul> |
124 |
| - </div> |
125 |
| - </div> |
126 |
| - </div> |
127 |
| - </repo-search> |
128 |
| - </div> |
| 13 | + {{template "user/dashboard/repolist" .}} |
129 | 14 | </div>
|
130 | 15 | </div>
|
131 | 16 | </div>
|
|
0 commit comments