File tree 2 files changed +18
-1
lines changed 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Gitea Authors. All rights reserved.
2
+ // Use of this source code is governed by a MIT-style
3
+ // license that can be found in the LICENSE file.
4
+
5
+ package integrations
6
+
7
+ import (
8
+ "net/http"
9
+ "testing"
10
+ )
11
+
12
+ func TestExploreRepos (t * testing.T ) {
13
+ prepareTestEnv (t )
14
+
15
+ req := NewRequest (t , "GET" , "/explore/repos" )
16
+ MakeRequest (t , req , http .StatusOK )
17
+ }
Original file line number Diff line number Diff line change 2
2
{{range .Repos}}
3
3
<div class="item">
4
4
<div class="ui header">
5
- <a class="name" href="{{AppSubUrl}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if or $.PageIsExplore $.PageIsProfileStarList }}{{.Owner. Name}} / {{end}}{{.Name}}</a>
5
+ <a class="name" href="{{AppSubUrl}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner. Name}} / {{end}} {{end}}{{.Name}}</a>
6
6
{{if .IsPrivate}}
7
7
<span class="text gold"><i class="octicon octicon-lock"></i></span>
8
8
{{else if .IsFork}}
You can’t perform that action at this time.
0 commit comments