소스 검색

Minor tweaks

Angus McLeod 7 년 전
부모
커밋
c6d671b90a
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      assets/stylesheets/wizard/wizard_custom.scss
  2. 1 1
      plugin.rb

+ 1 - 0
assets/stylesheets/wizard/wizard_custom.scss

@@ -62,6 +62,7 @@
         width: 30px;
         height: 30px;
         vertical-align: middle;
+        padding-bottom: 5px;
       }
     }
   }

+ 1 - 1
plugin.rb

@@ -119,7 +119,7 @@ after_initialize do
     end
 
     def complete_custom_wizard
-      if requires_completion = CustomWizard::Wizard.prompt_completion(scope.user)
+      if scope.user && requires_completion = CustomWizard::Wizard.prompt_completion(scope.user)
         requires_completion.map { |w| { name: w[:name], url: "/w/#{w[:id]}" } }
       end
     end