diff --git a/modules/template/template.go b/modules/template/template.go index cc670a651..638febe89 100644 --- a/modules/template/template.go +++ b/modules/template/template.go @@ -34,6 +34,9 @@ var Funcs template.FuncMap = map[string]interface{}{ "AppSubUrl": func() string { return setting.AppSubUrl }, + "AppUrl": func() string { + return setting.AppUrl + }, "AppVer": func() string { return setting.AppVer }, diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index d94dc96e2..d88d7b559 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -30,7 +30,7 @@ {{if $entry.IsSubModule}}