We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7509fa2 commit ea375c0Copy full SHA for ea375c0
modules/template/template.go
@@ -34,6 +34,9 @@ var Funcs template.FuncMap = map[string]interface{}{
34
"AppSubUrl": func() string {
35
return setting.AppSubUrl
36
},
37
+ "AppUrl": func() string {
38
+ return setting.AppUrl
39
+ },
40
"AppVer": func() string {
41
return setting.AppVer
42
templates/repo/view_list.tmpl
@@ -30,7 +30,7 @@
30
{{if $entry.IsSubModule}}
31
<td>
32
<span class="icon octicon octicon-file-submodule"></span>
33
- {{if $commit.RefUrl}}
+ {{if $commit.RefUrl AppUrl}}
<a href="{{$commit.RefUrl}}">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a>
{{else}}
{{$entry.Name}} @ {{ShortSha $commit.RefId}}
0 commit comments