From e0de8e7df403528c10401f5aaba474a011f9bfea Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 7 Feb 2013 15:47:50 +0400 Subject: [PATCH] #898: remove "publish_i686_into_x86_64" field from #new and #create pages --- app/views/projects/projects/_form.html.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/projects/projects/_form.html.haml b/app/views/projects/projects/_form.html.haml index 830855d80..27cb0ae02 100644 --- a/app/views/projects/projects/_form.html.haml +++ b/app/views/projects/projects/_form.html.haml @@ -38,11 +38,12 @@ %span#niceCheckbox1.niceCheck-main= f.check_box :is_package .forcheck= f.label :is_package .both - #publish_form{:class => @project.publish_i686_into_x86_64 ? '' : 'hidden'} - .check - %span.niceCheck-main= f.check_box :publish_i686_into_x86_64 - .forcheck= f.label :publish_i686_into_x86_64 - .both + - unless [:new, :create].include? act + #publish_form{:class => @project.publish_i686_into_x86_64 ? '' : 'hidden'} + .check + %span.niceCheck-main= f.check_box :publish_i686_into_x86_64 + .forcheck= f.label :publish_i686_into_x86_64 + .both .both - if [:edit, :update].include? act