瀏覽代碼

Make log path required

tags/v0.9.99
Josh Frye 8 年之前
父節點
當前提交
8ab5399e83
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      modules/auth/user_form.go
  2. 2
    2
      templates/install.tmpl

+ 1
- 1
modules/auth/user_form.go 查看文件

@@ -27,7 +27,7 @@ type InstallForm struct {
SSHPort int
HTTPPort string `binding:"Required"`
AppUrl string `binding:"Required"`
LogRootPath string
LogRootPath string `binding:"Required"`

SMTPHost string
SMTPFrom string

+ 2
- 2
templates/install.tmpl 查看文件

@@ -109,9 +109,9 @@
<input id="app_url" name="app_url" value="{{.app_url}}" placeholder="e.g. https://try.gogs.io" required>
<span class="help">{{.i18n.Tr "install.app_url_helper"}}</span>
</div>
<div class="inline field">
<div class="inline required field">
<label for="log_root_path">{{.i18n.Tr "install.log_root_path"}}</label>
<input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log">
<input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log" required>
<span class="help">{{.i18n.Tr "install.log_root_path_helper"}}</span>
</div>


Loading…
取消
儲存