mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge branch 'pre_trustie_server' into trustie_server
This commit is contained in:
@@ -3,6 +3,8 @@ class Contents::CreateForm < BaseForm
|
||||
|
||||
validates :filepath, presence: true
|
||||
|
||||
validates :new_branch, length: { maximum: 100, too_long: "过长,仅支持%{count}的长度"}
|
||||
|
||||
validate :check_branch
|
||||
|
||||
def check_branch
|
||||
|
||||
5
config/locales/forms/create_file_form.zh-CN.yml
Normal file
5
config/locales/forms/create_file_form.zh-CN.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
'zh-CN':
|
||||
activemodel:
|
||||
attributes:
|
||||
contents/create_form:
|
||||
new_branch: 分支名称
|
||||
BIN
public/images/logo.png
Normal file
BIN
public/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images/logo_x2.png
Normal file
BIN
public/images/logo_x2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Reference in New Issue
Block a user