foreman_openscap 9.0.4 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +0 -9
  3. data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +0 -9
  4. data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +0 -9
  5. data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +0 -9
  6. data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +0 -9
  7. data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +0 -9
  8. data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +0 -9
  9. data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +0 -9
  10. data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +0 -9
  11. data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +0 -9
  12. data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +0 -9
  13. data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +0 -9
  14. data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +0 -9
  15. data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +0 -9
  16. data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +0 -9
  17. data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +0 -9
  18. data/app/helpers/foreman_openscap_helper.rb +2 -18
  19. data/db/migrate/20201217161511_add_url_to_oval_content.rb +1 -1
  20. data/lib/foreman_openscap/engine.rb +148 -155
  21. data/lib/foreman_openscap/version.rb +1 -1
  22. data/locale/cs_CZ/foreman_openscap.edit.po +1443 -0
  23. data/locale/cs_CZ/foreman_openscap.po +0 -9
  24. data/locale/cs_CZ/foreman_openscap.po.time_stamp +0 -0
  25. data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
  26. data/locale/de/foreman_openscap.edit.po +1468 -0
  27. data/locale/de/foreman_openscap.po +0 -9
  28. data/locale/de/foreman_openscap.po.time_stamp +0 -0
  29. data/locale/en/foreman_openscap.edit.po +1443 -0
  30. data/locale/en/foreman_openscap.po +0 -9
  31. data/locale/en/foreman_openscap.po.time_stamp +0 -0
  32. data/locale/en_GB/foreman_openscap.edit.po +1443 -0
  33. data/locale/en_GB/foreman_openscap.po +0 -9
  34. data/locale/en_GB/foreman_openscap.po.time_stamp +0 -0
  35. data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
  36. data/locale/es/foreman_openscap.edit.po +1463 -0
  37. data/locale/es/foreman_openscap.po +0 -9
  38. data/locale/es/foreman_openscap.po.time_stamp +0 -0
  39. data/locale/foreman_openscap.pot +47 -57
  40. data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
  41. data/locale/fr/foreman_openscap.edit.po +1469 -0
  42. data/locale/fr/foreman_openscap.po +0 -9
  43. data/locale/fr/foreman_openscap.po.time_stamp +0 -0
  44. data/locale/gl/foreman_openscap.edit.po +1443 -0
  45. data/locale/gl/foreman_openscap.po +0 -9
  46. data/locale/gl/foreman_openscap.po.time_stamp +0 -0
  47. data/locale/it/foreman_openscap.edit.po +1445 -0
  48. data/locale/it/foreman_openscap.po +0 -9
  49. data/locale/it/foreman_openscap.po.time_stamp +0 -0
  50. data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
  51. data/locale/ja/foreman_openscap.edit.po +1460 -0
  52. data/locale/ja/foreman_openscap.po +0 -9
  53. data/locale/ja/foreman_openscap.po.time_stamp +0 -0
  54. data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
  55. data/locale/ka/foreman_openscap.edit.po +1449 -0
  56. data/locale/ka/foreman_openscap.po +0 -9
  57. data/locale/ka/foreman_openscap.po.time_stamp +0 -0
  58. data/locale/ko/foreman_openscap.edit.po +1443 -0
  59. data/locale/ko/foreman_openscap.po +0 -9
  60. data/locale/ko/foreman_openscap.po.time_stamp +0 -0
  61. data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
  62. data/locale/pt_BR/foreman_openscap.edit.po +1468 -0
  63. data/locale/pt_BR/foreman_openscap.po +0 -9
  64. data/locale/pt_BR/foreman_openscap.po.time_stamp +0 -0
  65. data/locale/ru/foreman_openscap.edit.po +1447 -0
  66. data/locale/ru/foreman_openscap.po +0 -9
  67. data/locale/ru/foreman_openscap.po.time_stamp +0 -0
  68. data/locale/sv_SE/foreman_openscap.edit.po +1443 -0
  69. data/locale/sv_SE/foreman_openscap.po +0 -9
  70. data/locale/sv_SE/foreman_openscap.po.time_stamp +0 -0
  71. data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
  72. data/locale/zh_CN/foreman_openscap.edit.po +1459 -0
  73. data/locale/zh_CN/foreman_openscap.po +0 -9
  74. data/locale/zh_CN/foreman_openscap.po.time_stamp +0 -0
  75. data/locale/zh_TW/foreman_openscap.edit.po +1444 -0
  76. data/locale/zh_TW/foreman_openscap.po +0 -9
  77. data/locale/zh_TW/foreman_openscap.po.time_stamp +0 -0
  78. data/test/unit/message_cleaner_test.rb +1 -0
  79. metadata +35 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db9d5beb1a4f3e676150bd6c7982feccee708f920dd68cb422b0736824a10cee
4
- data.tar.gz: cb3c657f011aac5d73fc6595a5b9abed49033928223a53974c20f69cd8f97eed
3
+ metadata.gz: 3a4d3ac458d67a0eb92a2d7c826777976cffc2ab1b4e147aa6b50b8299676426
4
+ data.tar.gz: 142a02612a9db592e5ac24650d947c02d338f1cb7f3fb8474a0e067997275b3f
5
5
  SHA512:
6
- metadata.gz: 4a7f09d5b4102cb8d1b95b2ed9e6b2005b84e5a28a9896411be2655bc073d5f4cb59b55096a42072e3450e685753534bdf0afcf7a91f4f567e412269092593a5
7
- data.tar.gz: 9fddaa152d91a99f7efaa986ffdaf64926c56378f170ea2a82213648c10c163e97c081f122100f1cb823537f8ad540623dc1bfe54f355817f198948ba299dc17
6
+ metadata.gz: 1428428c823197a8432fd1ddb25127ec1ad216c1df1c438047b78db92caf42267cbefc332f197adaf0276d3a759d366651d964f89ea391078f27db53cc145f61
7
+ data.tar.gz: fa1a35d80ac115895ae8abec058f67936273fe77f7cba9c56851febc5cf979094567427208d3bce459f10d38b6671db3f1ae38bbd03eec2eb898fa22a76f63e5
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  "Die folgenden %{key_name} fehlten für %{item_name}: %{key_names}. Stellen Sie sicher, dass sie importiert wurden, bevor Sie fortfahren."
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- "Die folgenden Smart-Proxys müssen aktualisiert werden um das Feature freizuschalten: %s."
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- "Die folgenden Proxys konnten nicht erreicht werden: %s . Bitte stellen Sie sicher, dass sie verfügbar sind, damit Foreman ihre Versionen überprüfen kann."
911
- ],
912
906
  "The identifier of the host": [
913
907
  "Die Kennung des Hosts"
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- "Dieses Feature ist temporär deaktiviert."
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -904,12 +904,6 @@
904
904
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
905
905
  "Faltan los siguientes %{key_name} para %{item_name}: %{key_names}. Asegúrese de que se importan antes de continuar."
906
906
  ],
907
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
908
- "Deben actualizarse los siguientes proxies inteligentes al desbloquear la funcionalidad: %s. "
909
- ],
910
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
911
- "No se pudieron alcanzar los siguientes proxies: %s. Asegúrese de que estén disponibles para que Foreman pueda verificar sus versiones."
912
- ],
913
907
  "The identifier of the host": [
914
908
  "El identificador del host"
915
909
  ],
@@ -928,9 +922,6 @@
928
922
  "There's no available report for this host": [
929
923
  ""
930
924
  ],
931
- "This feature is temporarily disabled. ": [
932
- "Esta función se encuentra temporalmente deshabilitada."
933
- ],
934
925
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
935
926
  ""
936
927
  ],
@@ -904,12 +904,6 @@
904
904
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
905
905
  "Les %%s suivants étaient manquants pour %{class} : %{key_names}. Assurez-vous qu'ils aient bien été importés avant de poursuivre."
906
906
  ],
907
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
908
- "Les smart proxies suivants doivent être mis à jour pour déverrouiller la fonction : %s "
909
- ],
910
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
911
- "Impossible d'atteindre les proxies suivants : %s. Veillez à ce qu'ils soient disponibles de sorte que Foreman puisse vérifier leur version."
912
- ],
913
907
  "The identifier of the host": [
914
908
  "Identifiant de l’hôte"
915
909
  ],
@@ -928,9 +922,6 @@
928
922
  "There's no available report for this host": [
929
923
  ""
930
924
  ],
931
- "This feature is temporarily disabled. ": [
932
- "Cette fonction est temporairement désactivée."
933
- ],
934
925
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
935
926
  ""
936
927
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -902,12 +902,6 @@
902
902
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
903
903
  "以下の %{key_name} が %{item_name}: %{key_names} にありませんでした。続行前にインポートされていることを確認してください。"
904
904
  ],
905
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
906
- "以下のスマートプロキシーを更新して機能のロックを解除する必要があります: %s "
907
- ],
908
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
909
- "以下のプロキシーに到達できませんでした: %s。Foreman がバージョンを確認できるように、プロキシーが利用可能であることを確認してください。"
910
- ],
911
905
  "The identifier of the host": [
912
906
  "ホストの ID"
913
907
  ],
@@ -926,9 +920,6 @@
926
920
  "There's no available report for this host": [
927
921
  ""
928
922
  ],
929
- "This feature is temporarily disabled. ": [
930
- "この機能は一時的に無効にされています。 "
931
- ],
932
923
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
933
924
  ""
934
925
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- "ფუნქციის ჩასართავად საჭიროა შემდეგი ჭკვიანი პროქსიების განახლება: %s. "
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  "ჰოსტის იდენტიფიკატორი"
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- "ფუნქცია დროებით გათიშულია. "
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -904,12 +904,6 @@
904
904
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
905
905
  "Os seguintes %{key_name} estavam ausentes para %{item_name}: %{key_names}. Certifique-se de que eles sejam importados antes de prosseguir."
906
906
  ],
907
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
908
- "Os proxies inteligentes a seguir precisam ser atualizados para desbloquear o recurso: %s. "
909
- ],
910
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
911
- "Não foi possível alcançar os proxies a seguir: %s. Certifique-se de que eles estejam disponíveis para que o Foreman possa verificar suas versões."
912
- ],
913
907
  "The identifier of the host": [
914
908
  "O identificador do host"
915
909
  ],
@@ -928,9 +922,6 @@
928
922
  "There's no available report for this host": [
929
923
  ""
930
924
  ],
931
- "This feature is temporarily disabled. ": [
932
- "Esse recurso está temporariamente desabilitado."
933
- ],
934
925
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
935
926
  ""
936
927
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -902,12 +902,6 @@
902
902
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
903
903
  "%{item_name} 缺少以下 %{key_name}:%{key_names}。在继续操作之前,请确保已将其导入。"
904
904
  ],
905
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
906
- "下列智能代理服务器需要更新,以便解锁功能:%s。 "
907
- ],
908
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
909
- "无法访问下列代理服务器:%s。请确保它们可用,以便 Foreman 检查其版本。"
910
- ],
911
905
  "The identifier of the host": [
912
906
  "主机 ID"
913
907
  ],
@@ -926,9 +920,6 @@
926
920
  "There's no available report for this host": [
927
921
  ""
928
922
  ],
929
- "This feature is temporarily disabled. ": [
930
- "此功能暂时被禁用。"
931
- ],
932
923
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
933
924
  ""
934
925
  ],
@@ -903,12 +903,6 @@
903
903
  "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
904
904
  ""
905
905
  ],
906
- "The following Smart Proxies need to be updated to unlock the feature: %s. ": [
907
- ""
908
- ],
909
- "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
910
- ""
911
- ],
912
906
  "The identifier of the host": [
913
907
  ""
914
908
  ],
@@ -927,9 +921,6 @@
927
921
  "There's no available report for this host": [
928
922
  ""
929
923
  ],
930
- "This feature is temporarily disabled. ": [
931
- ""
932
- ],
933
924
  "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
934
925
  ""
935
926
  ],
@@ -2,26 +2,10 @@ require 'foreman_openscap/version'
2
2
 
3
3
  module ForemanOpenscapHelper
4
4
  def scap_doc_button(section)
5
- documentation_button(section, root_url: scap_doc_url)
5
+ documentation_button('Managing_Security_Compliance', type: 'docs', chapter: section)
6
6
  end
7
7
 
8
8
  def scap_doc_url(section = '')
9
- return scap_root_url if section.empty?
10
-
11
- documentation_url(section, root_url: scap_root_url)
12
- end
13
-
14
- private
15
-
16
- def doc_flavor
17
- ForemanOpenscap.with_katello? ? 'katello' : 'foreman-el'
18
- end
19
-
20
- def scap_root_url
21
- @scap_root_url ||= begin
22
- version = SETTINGS[:version]
23
- version = version.tag == 'develop' ? 'nightly' : version.short
24
- "https://docs.theforeman.org/#{version}/Managing_Security_Compliance/index-#{doc_flavor}.html#"
25
- end
9
+ documentation_url('Managing_Security_Compliance', type: 'docs', chapter: section)
26
10
  end
27
11
  end
@@ -1,4 +1,4 @@
1
- class AddUrlToOvalContent < ActiveRecord::Migration[6.0]
1
+ class AddURLToOvalContent < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  add_column :foreman_openscap_oval_contents, :url, :string
4
4
  end