aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--README_ZH.md4
-rw-r--r--cmd/web.go3
-rw-r--r--public/ng/css/gogs.css2
-rw-r--r--public/ng/less/gogs/repository.less2
-rw-r--r--routers/user/home.go2
6 files changed, 10 insertions, 9 deletions
diff --git a/README.md b/README.md
index 05771144..3c319896 100644
--- a/README.md
+++ b/README.md
@@ -9,8 +9,8 @@ Gogs(Go Git Service) is a painless self-hosted Git Service written in Go.
### NOTICES
-- Due to testing purpose, data of [try.gogits.org](http://try.gogits.org) has been reset in **June 21, 2014** and will reset multiple times after. Please do **NOT** put your important data on the site.
-- Demo site [try.gogits.org](http://try.gogits.org) is running under `dev` branch.
+- Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) has been reset in **June 21, 2014** and will reset multiple times after. Please do **NOT** put your important data on the site.
+- Demo site [try.gogs.io](https://try.gogs.io) is running under `dev` branch.
#### Other language version
@@ -24,7 +24,7 @@ The goal of this project is to make the easiest, fastest and most painless way t
- Please see [Documentation](http://gogs.io/docs/intro/) for project design, known issues, and change log.
- See [Trello Board](https://trello.com/b/uxAoeLUl/gogs-go-git-service) to follow the develop team.
-- Try it before anything? Do it [online](http://try.gogits.org/Unknown/gogs) or go down to **Installation -> Install from binary** section!
+- Try it before anything? Do it [online](https://try.gogs.io/Unknown/gogs) or go down to **Installation -> Install from binary** section!
- Having troubles? Get help from [Troubleshooting](http://gogs.io/docs/intro/troubleshooting.md).
## Features
diff --git a/README_ZH.md b/README_ZH.md
index 2fa82e7d..7faeee2b 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -5,7 +5,7 @@ Gogs(Go Git Service) 是一个基于 Go 语言的自助 Git 服务。
![Demo](https://gowalker.org/public/gogs_demo.gif)
-##### 当前版本:0.5.0 Beta
+##### 当前版本:0.5.1 Beta
## 开发目的
@@ -15,7 +15,7 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自
- 有关项目设计、已知问题和变更日志,请通过 [使用手册](http://gogs.io/docs/intro/) 查看。
- 您可以到 [Trello Board](https://trello.com/b/uxAoeLUl/gogs-go-git-service) 跟随开发团队的脚步。
-- 想要先睹为快?通过 [在线体验](http://try.gogits.org/Unknown/gogs) 或查看 **安装部署 -> 二进制安装** 小节。
+- 想要先睹为快?通过 [在线体验](https://try.gogs.io/Unknown/gogs) 或查看 **安装部署 -> 二进制安装** 小节。
- 使用过程中遇到问题?尝试从 [故障排查](http://gogs.io/docs/intro/troubleshooting.md) 页面获取帮助。
## 功能特性
diff --git a/cmd/web.go b/cmd/web.go
index a9ff9dbc..f56ae826 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -64,7 +64,8 @@ func newMacaron() *macaron.Macaron {
m := macaron.New()
m.Use(macaron.Logger())
m.Use(macaron.Recovery())
- m.Use(macaron.Static("public",
+ m.Use(macaron.Static(
+ path.Join(setting.StaticRootPath, "public"),
macaron.StaticOptions{
SkipLogging: !setting.DisableRouterLog,
},
diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css
index b92786de..8f82e0af 100644
--- a/public/ng/css/gogs.css
+++ b/public/ng/css/gogs.css
@@ -1032,7 +1032,7 @@ The register and sign-in page style
}
#repo-clone-url {
border-right: none;
- width: 200px;
+ width: 190px;
border-left: none;
}
#repo-clone-help {
diff --git a/public/ng/less/gogs/repository.less b/public/ng/less/gogs/repository.less
index 23d15650..c86cb7f0 100644
--- a/public/ng/less/gogs/repository.less
+++ b/public/ng/less/gogs/repository.less
@@ -95,7 +95,7 @@ background-color: @repoHeaderBgColor;
}
#repo-clone-url {
border-right: none;
- width: 200px;
+ width: 190px;
border-left: none;
}
#repo-clone-help {
diff --git a/routers/user/home.go b/routers/user/home.go
index bd33318d..372f111a 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -94,7 +94,7 @@ func Dashboard(ctx *middleware.Context) {
feeds := make([]*models.Action, 0, len(actions))
for _, act := range actions {
if act.IsPrivate {
- if has, _ := models.HasAccess(ctxUser.Name, act.RepoUserName+"/"+act.RepoName,
+ if has, _ := models.HasAccess(ctx.User.Name, act.RepoUserName+"/"+act.RepoName,
models.READABLE); !has {
continue
}