|
|
@@ -10,22 +10,22 @@ import (
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
- // HOME page template
|
|
|
- HOME = "home"
|
|
|
-
|
|
|
- // EXPLORE_HOME page template
|
|
|
- EXPLORE_HOME = "explore/home"
|
|
|
-
|
|
|
- // EXPLORE_REPOS page template
|
|
|
- EXPLORE_REPOS = "explore/repos"
|
|
|
-
|
|
|
- // EXPLORE_USERS page template
|
|
|
- EXPLORE_USERS = "explore/users"
|
|
|
-
|
|
|
- // EXPLORE_TRENDING page template
|
|
|
- EXPLORE_TRENDING = "explore/trending"
|
|
|
-
|
|
|
- // EXPLORE_ORGANIZATIONS page template
|
|
|
+ // HOME page template
|
|
|
+ HOME = "home"
|
|
|
+
|
|
|
+ // EXPLORE_HOME page template
|
|
|
+ EXPLORE_HOME = "explore/home"
|
|
|
+
|
|
|
+ // EXPLORE_REPOS page template
|
|
|
+ EXPLORE_REPOS = "explore/repos"
|
|
|
+
|
|
|
+ // EXPLORE_USERS page template
|
|
|
+ EXPLORE_USERS = "explore/users"
|
|
|
+
|
|
|
+ // EXPLORE_TRENDING page template
|
|
|
+ EXPLORE_TRENDING = "explore/trending"
|
|
|
+
|
|
|
+ // EXPLORE_ORGANIZATIONS page template
|
|
|
EXPLORE_ORGANIZATIONS = "explore/organizations"
|
|
|
)
|
|
|
|
|
|
@@ -100,7 +100,7 @@ func ExploreRepos(c *context.Context) {
|
|
|
}
|
|
|
|
|
|
keyword := c.Query("q")
|
|
|
- // Search a repository
|
|
|
+ // Search a repository
|
|
|
repos, count, err := models.SearchRepositoryByName(&models.SearchRepoOptions{
|
|
|
Keyword: keyword,
|
|
|
UserID: c.UserID(),
|