File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ func Dashboard(ctx *context.Context) {
131
131
// FIXME: update periodically
132
132
updateSystemStatus ()
133
133
ctx .Data ["SysStatus" ] = sysStatus
134
+ ctx .Data ["SSH" ] = setting .SSH
134
135
ctx .HTML (200 , tplDashboard )
135
136
}
136
137
Original file line number Diff line number Diff line change 35
35
<td>{{.i18n.Tr "admin.dashboard.git_gc_repos"}}</td>
36
36
<td><button type="submit" class="ui green button" name="op" value="git_gc_repos">{{svg "octicon-play"}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
37
37
</tr>
38
+ {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}}
38
39
<tr>
39
40
<td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}<br/>
40
41
{{.i18n.Tr "admin.dashboard.resync_all_sshkeys.desc"}}</td>
41
42
<td><button type="submit" class="ui green button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
42
43
</tr>
44
+ {{end}}
43
45
<tr>
44
46
<td>{{.i18n.Tr "admin.dashboard.resync_all_hooks"}}</td>
45
47
<td><button type="submit" class="ui green button" name="op" value="resync_all_hooks">{{svg "octicon-play"}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
You can’t perform that action at this time.
0 commit comments