diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2017-07-27 22:00:06 +0900 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2017-07-27 22:15:48 +0900 |
commit | 35259a4f48e19a19437be10c02eb8398c108d507 (patch) | |
tree | 99dab3d70660bc6e82ccca757843fa43e93b9032 /app/views/projects/wikis/_form.html.haml | |
parent | 5c51db0bce6d0f1b94aaf14d1ac9c8d70f7f9468 (diff) | |
download | gitlab-ce-35259a4f48e19a19437be10c02eb8398c108d507.tar.gz |
Encapsulate the commit.sha logic
Diffstat (limited to 'app/views/projects/wikis/_form.html.haml')
-rw-r--r-- | app/views/projects/wikis/_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/wikis/_form.html.haml b/app/views/projects/wikis/_form.html.haml index 5c335ba306b..adb8d5aaecb 100644 --- a/app/views/projects/wikis/_form.html.haml +++ b/app/views/projects/wikis/_form.html.haml @@ -5,7 +5,7 @@ = f.hidden_field :title, value: @page.title - if @page.persisted? - = f.hidden_field :last_commit_sha, value: @page.commit.sha + = f.hidden_field :last_commit_sha, value: @page.last_commit_sha .form-group .col-sm-12= f.label :format, class: 'control-label-full-width' .col-sm-12 |