This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix panic when no user is signed in
See
#188
tags/v1.2.0-rc1
Bwko
8 years ago
parent
cb56320d28
commit
5b557eb23c
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
routers/repo/middlewares.go
+ 4
- 0
routers/repo/middlewares.go
View File
@@ -23,6 +23,10 @@ func SetEditorconfigIfExists(ctx *context.Context) {
}
func SetDiffViewStyle(ctx *context.Context) {
if !ctx.IsSigned {
return
}
var (
userStyle = ctx.User.DiffViewStyle
queryStyle = ctx.Query("style")
Write
Preview
Loading…
Cancel
Save