@@ -162,6 +162,21 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
162
162
}
163
163
ctx .Data ["NumFollowing" ] = numFollowing
164
164
165
+ archived := ctx .FormOptionalBool ("archived" )
166
+ ctx .Data ["IsArchived" ] = archived
167
+
168
+ fork := ctx .FormOptionalBool ("fork" )
169
+ ctx .Data ["IsFork" ] = fork
170
+
171
+ mirror := ctx .FormOptionalBool ("mirror" )
172
+ ctx .Data ["IsMirror" ] = mirror
173
+
174
+ template := ctx .FormOptionalBool ("template" )
175
+ ctx .Data ["IsTemplate" ] = template
176
+
177
+ private := ctx .FormOptionalBool ("private" )
178
+ ctx .Data ["IsPrivate" ] = private
179
+
165
180
switch tab {
166
181
case "followers" :
167
182
ctx .Data ["Cards" ] = followers
@@ -208,6 +223,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
208
223
TopicOnly : topicOnly ,
209
224
Language : language ,
210
225
IncludeDescription : setting .UI .SearchRepoDescription ,
226
+ Archived : archived ,
227
+ Fork : fork ,
228
+ Mirror : mirror ,
229
+ Template : template ,
230
+ IsPrivate : private ,
211
231
})
212
232
if err != nil {
213
233
ctx .ServerError ("SearchRepository" , err )
@@ -230,6 +250,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
230
250
TopicOnly : topicOnly ,
231
251
Language : language ,
232
252
IncludeDescription : setting .UI .SearchRepoDescription ,
253
+ Archived : archived ,
254
+ Fork : fork ,
255
+ Mirror : mirror ,
256
+ Template : template ,
257
+ IsPrivate : private ,
233
258
})
234
259
if err != nil {
235
260
ctx .ServerError ("SearchRepository" , err )
@@ -275,6 +300,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
275
300
TopicOnly : topicOnly ,
276
301
Language : language ,
277
302
IncludeDescription : setting .UI .SearchRepoDescription ,
303
+ Archived : archived ,
304
+ Fork : fork ,
305
+ Mirror : mirror ,
306
+ Template : template ,
307
+ IsPrivate : private ,
278
308
})
279
309
if err != nil {
280
310
ctx .ServerError ("SearchRepository" , err )
0 commit comments