redhat_access 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +24 -0
- data/LICENSE.txt +620 -0
- data/README.rdoc +7 -0
- data/Rakefile +131 -0
- data/app/assets/javascripts/insights/app.module.js +64 -0
- data/app/assets/javascripts/insights/application.js +18 -0
- data/app/assets/javascripts/insights/configuration.controller.js +66 -0
- data/app/assets/javascripts/insights/configuration.service.js +28 -0
- data/app/assets/javascripts/insights/views/configuration.html +85 -0
- data/app/assets/javascripts/insights/views/error.html +13 -0
- data/app/assets/javascripts/insights/views/help.html +16 -0
- data/app/assets/javascripts/redhat_access/analytics_dashboard.js +2 -0
- data/app/assets/javascripts/redhat_access/application.js +15 -0
- data/app/assets/javascripts/redhat_access/redhat_access.module.js +126 -0
- data/app/assets/stylesheets/insights/application.css +14 -0
- data/app/assets/stylesheets/insights/insights.css +21 -0
- data/app/assets/stylesheets/redhat_access/application.css +14 -0
- data/app/assets/stylesheets/redhat_access/telemetry_configuration.css +4 -0
- data/app/controllers/redhat_access/analytics_dashboard_controller.rb +12 -0
- data/app/controllers/redhat_access/api/api_controller.rb +24 -0
- data/app/controllers/redhat_access/api/attachments_controller.rb +40 -0
- data/app/controllers/redhat_access/api/logs_controller.rb +49 -0
- data/app/controllers/redhat_access/api/machine_telemetry_api_controller.rb +112 -0
- data/app/controllers/redhat_access/api/strata_proxy_controller.rb +81 -0
- data/app/controllers/redhat_access/api/telemetry_api_controller.rb +179 -0
- data/app/controllers/redhat_access/application_controller.rb +2 -0
- data/app/controllers/redhat_access/cases_controller.rb +14 -0
- data/app/controllers/redhat_access/configuration_controller.rb +21 -0
- data/app/controllers/redhat_access/log_viewer_controller.rb +9 -0
- data/app/controllers/redhat_access/redhat_access_controller.rb +8 -0
- data/app/controllers/redhat_access/search_controller.rb +9 -0
- data/app/controllers/redhat_access/strata_credentials_controller.rb +48 -0
- data/app/controllers/redhat_access/telemetry_configurations_controller.rb +38 -0
- data/app/controllers/redhat_access/telemetry_controller.rb +6 -0
- data/app/helpers/redhat_access/analytics_dashboard_helper.rb +13 -0
- data/app/helpers/redhat_access/application_helper.rb +4 -0
- data/app/helpers/redhat_access/attachments_helper.rb +4 -0
- data/app/helpers/redhat_access/cases_helper.rb +4 -0
- data/app/helpers/redhat_access/log_viewer_helper.rb +4 -0
- data/app/helpers/redhat_access/logs_helper.rb +4 -0
- data/app/helpers/redhat_access/redhat_access_helper.rb +4 -0
- data/app/helpers/redhat_access/search_helper.rb +4 -0
- data/app/helpers/redhat_access/telemetry_configuration_helper.rb +4 -0
- data/app/models/redhat_access/concerns/organization_extensions.rb +10 -0
- data/app/models/redhat_access/telemetry_configuration.rb +11 -0
- data/app/models/redhat_access/telemetry_proxy_credentials.rb +10 -0
- data/app/services/redhat_access/authentication/client_authentication.rb +80 -0
- data/app/services/redhat_access/telemetry/look_ups.rb +233 -0
- data/app/services/redhat_access/telemetry/portal_client.rb +39 -0
- data/app/views/redhat_access/analytics_dashboard/configuration.html.erb +85 -0
- data/app/views/redhat_access/analytics_dashboard/error.html.erb +13 -0
- data/app/views/redhat_access/analytics_dashboard/help.html.erb +16 -0
- data/app/views/redhat_access/analytics_dashboard/index.html.erb +69 -0
- data/app/views/redhat_access/analytics_dashboard/welcome.html.erb +8 -0
- data/app/views/redhat_access/redhat_access/index.html.erb +34 -0
- data/ca/rh_cert-api_chain.pem +74 -0
- data/config/config.yml.example +15 -0
- data/config/environments/development.rb +5 -0
- data/config/initializers/load_config.rb +5 -0
- data/config/mount_engine.rb +3 -0
- data/config/routes.rb +36 -0
- data/db/migrate/20141204161152_create_redhat_access_telemetry_proxy_credentials.rb +11 -0
- data/db/migrate/20150319153744_create_redhat_access_telemetry_configurations.rb +13 -0
- data/db/migrate/20160425175501_add_email_to_telemetry_configurations.rb +5 -0
- data/db/seeds.d/200-update-insights-roles.rb +11 -0
- data/lib/redhat_access/configuration.rb +8 -0
- data/lib/redhat_access/engine.rb +225 -0
- data/lib/redhat_access/sos_reports/generator.rb +58 -0
- data/lib/redhat_access/strata/client.rb +39 -0
- data/lib/redhat_access/version.rb +3 -0
- data/lib/redhat_access.rb +5 -0
- data/lib/tasks/redhat_access_tasks.rake +41 -0
- data/locale/Makefile +62 -0
- data/locale/de/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/de/redhat_access.po +589 -0
- data/locale/es/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/es/redhat_access.po +589 -0
- data/locale/fr/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/fr/redhat_access.po +593 -0
- data/locale/gemspec.rb +2 -0
- data/locale/it/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/it/redhat_access.po +589 -0
- data/locale/ja/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/ja/redhat_access.po +569 -0
- data/locale/ko/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/ko/redhat_access.po +570 -0
- data/locale/pt/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/pt/redhat_access.po +588 -0
- data/locale/redhat_access.pot +34 -0
- data/locale/ru/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/ru/redhat_access.po +580 -0
- data/locale/zh/LC_MESSAGES/redhat_access.mo +0 -0
- data/locale/zh/redhat_access.po +561 -0
- data/redhat_access.gemspec +30 -0
- data/script/rails +8 -0
- data/script/sos_reports/foreman_sosreport.pam +9 -0
- data/script/sos_reports/foreman_sosreport_console.apps +3 -0
- data/script/sos_reports/foreman_sosreport_wrapper.py +65 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/fixtures/redhat_access/telemetry_configurations.yml +11 -0
- data/test/fixtures/redhat_access/telemetry_proxy_credentials.yml +11 -0
- data/test/functional/redhat_access/analytics_dashboard_controller_test.rb +11 -0
- data/test/functional/redhat_access/attachments_controller_test.rb +11 -0
- data/test/functional/redhat_access/cases_controller_test.rb +16 -0
- data/test/functional/redhat_access/configuration_controller_test.rb +11 -0
- data/test/functional/redhat_access/log_viewer_controller_test.rb +11 -0
- data/test/functional/redhat_access/logs_controller_test.rb +9 -0
- data/test/functional/redhat_access/redhat_access_controller_test.rb +11 -0
- data/test/functional/redhat_access/search_controller_test.rb +11 -0
- data/test/functional/redhat_access/telemetry_configuration_controller_test.rb +26 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/models/redhat_access/telemetry_proxy_credentials_test.rb +9 -0
- data/test/redhat_access_test.rb +7 -0
- data/test/sos-report-test.rb +32 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/helpers/redhat_access/analytics_dashboard_helper_test.rb +6 -0
- data/test/unit/helpers/redhat_access/attachments_helper_test.rb +6 -0
- data/test/unit/helpers/redhat_access/cases_helper_test.rb +6 -0
- data/test/unit/helpers/redhat_access/log_viewer_helper_test.rb +6 -0
- data/test/unit/helpers/redhat_access/logs_helper_test.rb +6 -0
- data/test/unit/helpers/redhat_access/redhat_access_helper_test.rb +6 -0
- data/test/unit/helpers/redhat_access/search_helper_test.rb +6 -0
- data/test/unit/helpers/redhat_access/telemetry_configuration_helper_test.rb +6 -0
- data/test/unit/redhat_access/telemetry_configuration_test.rb +9 -0
- data/vendor/assets/fonts/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fonts/fontawesome-webfont.svg +655 -0
- data/vendor/assets/fonts/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fonts/icomoon.eot +0 -0
- data/vendor/assets/fonts/fonts/icomoon.svg +22 -0
- data/vendor/assets/fonts/fonts/icomoon.ttf +0 -0
- data/vendor/assets/fonts/fonts/icomoon.woff +0 -0
- data/vendor/assets/fonts/fonts/overpass_bold-web.eot +0 -0
- data/vendor/assets/fonts/fonts/overpass_bold-web.svg +454 -0
- data/vendor/assets/fonts/fonts/overpass_bold-web.ttf +0 -0
- data/vendor/assets/fonts/fonts/overpass_bold-web.woff +0 -0
- data/vendor/assets/fonts/fonts/overpass_light-webfont.eot +0 -0
- data/vendor/assets/fonts/fonts/overpass_light-webfont.svg +2105 -0
- data/vendor/assets/fonts/fonts/overpass_light-webfont.ttf +0 -0
- data/vendor/assets/fonts/fonts/overpass_light-webfont.woff +0 -0
- data/vendor/assets/fonts/fonts/overpass_regular-web.eot +0 -0
- data/vendor/assets/fonts/fonts/overpass_regular-web.svg +454 -0
- data/vendor/assets/fonts/fonts/overpass_regular-web.ttf +0 -0
- data/vendor/assets/fonts/fonts/overpass_regular-web.woff +0 -0
- data/vendor/assets/fonts/fonts/portalicons.eot +0 -0
- data/vendor/assets/fonts/fonts/portalicons.svg +145 -0
- data/vendor/assets/fonts/fonts/portalicons.ttf +0 -0
- data/vendor/assets/fonts/fonts/portalicons.woff +0 -0
- data/vendor/assets/images/images/Icon_RH_Document_Blueprint_RGB_Button.png +0 -0
- data/vendor/assets/images/images/Icon_RH_Misc_Lifestyle_RGB_Button.png +0 -0
- data/vendor/assets/images/images/Icon_RH_Software_Data_CMYK_Button.png +0 -0
- data/vendor/assets/images/images/Icon_RH_Software_Transfer-Upload_CMYK_Button.png +0 -0
- data/vendor/assets/images/images/bg1.jpg +0 -0
- data/vendor/assets/images/images/bg_body.jpg +0 -0
- data/vendor/assets/images/images/bg_chart-shadow.png +0 -0
- data/vendor/assets/images/images/bg_dount-hole-na.png +0 -0
- data/vendor/assets/images/images/bg_glow.jpg +0 -0
- data/vendor/assets/images/images/bg_pattern.png +0 -0
- data/vendor/assets/images/images/i_chart.png +0 -0
- data/vendor/assets/images/images/img-insights-connection-sat.png +0 -0
- data/vendor/assets/images/images/img-insights-connection.png +0 -0
- data/vendor/assets/images/images/img-sat5-step2-admin.png +0 -0
- data/vendor/assets/images/images/img-sat5-step3-completed.png +0 -0
- data/vendor/assets/images/images/img-sat5-step3-pending.png +0 -0
- data/vendor/assets/images/images/img-sat5-step3-setup.png +0 -0
- data/vendor/assets/images/images/img-sat5-step5-overview.png +0 -0
- data/vendor/assets/images/images/img-sat5-step5-reports.png +0 -0
- data/vendor/assets/images/images/img-sat5-step5-systems.png +0 -0
- data/vendor/assets/images/images/img-sat6-step2.jpg +0 -0
- data/vendor/assets/images/images/img-sat6-step3.jpg +0 -0
- data/vendor/assets/images/images/img-sat6-step3.png +0 -0
- data/vendor/assets/images/images/img-sat6-step4.jpg +0 -0
- data/vendor/assets/images/images/img-sat6-step5a.jpg +0 -0
- data/vendor/assets/images/images/img-sat6-step5b.jpg +0 -0
- data/vendor/assets/images/images/img-sat6-step5c.jpg +0 -0
- data/vendor/assets/images/images/img-sat6-step5d.jpg +0 -0
- data/vendor/assets/images/images/keynote-snap.jpg +0 -0
- data/vendor/assets/images/images/keynote-snap.png +0 -0
- data/vendor/assets/images/images/splash-gettingstarted.jpg +0 -0
- data/vendor/assets/images/images/splash-learnmore.jpg +0 -0
- data/vendor/assets/images/images/splash-security.jpg +0 -0
- data/vendor/assets/javascripts/angular/angular.js +20131 -0
- data/vendor/assets/javascripts/redhat_access/redhat_access_angular_ui-deps.js +14103 -0
- data/vendor/assets/javascripts/redhat_access/redhat_access_angular_ui.js +7854 -0
- data/vendor/assets/javascripts/telemetry/insights.js +39 -0
- data/vendor/assets/stylesheets/redhat_access/redhat_access_angular_ui-deps.css +11 -0
- data/vendor/assets/stylesheets/redhat_access/redhat_access_angular_ui.css +1 -0
- data/vendor/assets/stylesheets/telemetry/sat6.css +18 -0
- metadata +341 -0
@@ -0,0 +1,561 @@
|
|
1
|
+
# tfu <tfu@redhat.com>, 2014. #zanata
|
2
|
+
msgid ""
|
3
|
+
msgstr ""
|
4
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
5
|
+
"Content-Transfer-Encoding: 8bit\n"
|
6
|
+
"MIME-Version: 1.0\n"
|
7
|
+
"PO-Revision-Date: 2014-10-14 01:55-0400\n"
|
8
|
+
"Last-Translator: tfu <tfu@redhat.com>\n"
|
9
|
+
"Language-Team: Chinese (Simplified)\n"
|
10
|
+
"Language: zh-Hans\n"
|
11
|
+
"X-Generator: Zanata 3.5.1\n"
|
12
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
13
|
+
|
14
|
+
#: app/cases/views/detailsSection.html
|
15
|
+
#: app/cases/views/new.html
|
16
|
+
msgid "24x7 Contact:"
|
17
|
+
msgstr "24x7 联系方法:"
|
18
|
+
|
19
|
+
#: app/cases/views/detailsSection.html
|
20
|
+
#: app/cases/views/new.html
|
21
|
+
msgid "24x7 Support:"
|
22
|
+
msgstr "24x7 支持:"
|
23
|
+
|
24
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
25
|
+
msgid ""
|
26
|
+
"<span class=\"glyphicon glyphicon-plus\"></span> Open a New Support "
|
27
|
+
"Case"
|
28
|
+
msgstr "<span class=\"glyphicon glyphicon-plus\"></span> 创建一个新支持案例"
|
29
|
+
|
30
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
31
|
+
msgid "<span class=\"glyphicon glyphicon-refresh\"></span> Select Log"
|
32
|
+
msgstr "<span class=\"glyphicon glyphicon-refresh\"></span> 选择日志"
|
33
|
+
|
34
|
+
#: app/cases/views/detailsSection.html
|
35
|
+
msgid "Account Name:"
|
36
|
+
msgstr "帐户名称:"
|
37
|
+
|
38
|
+
#: app/cases/views/detailsSection.html
|
39
|
+
msgid "Account Number:"
|
40
|
+
msgstr "帐户号:"
|
41
|
+
|
42
|
+
#: app/cases/views/new.html
|
43
|
+
msgid "Account:"
|
44
|
+
msgstr "账户:"
|
45
|
+
|
46
|
+
#: app/cases/views/attachLocalFile.html
|
47
|
+
#: app/cases/views/attachProductLogs.html
|
48
|
+
msgid "Add"
|
49
|
+
msgstr "添加"
|
50
|
+
|
51
|
+
#: app/cases/views/addCommentSection.html
|
52
|
+
msgid "Add Comment"
|
53
|
+
msgstr "添加评论"
|
54
|
+
|
55
|
+
#: app/cases/views/detailsSection.html
|
56
|
+
msgid "Advanced Mission Critical"
|
57
|
+
msgstr "高级关键任务"
|
58
|
+
|
59
|
+
#: app/cases/views/detailsSection.html
|
60
|
+
msgid "Alternate Case ID:"
|
61
|
+
msgstr "备用案例 ID:"
|
62
|
+
|
63
|
+
#: app/cases/views/attachProductLogs.html
|
64
|
+
msgid "Attach Foreman logs:"
|
65
|
+
msgstr "附加 Foreman 日志:"
|
66
|
+
|
67
|
+
#: app/cases/views/attachLocalFile.html
|
68
|
+
msgid "Attach local file"
|
69
|
+
msgstr "附加本地文件"
|
70
|
+
|
71
|
+
#: app/cases/views/listAttachments.html
|
72
|
+
msgid "Attached"
|
73
|
+
msgstr "附加"
|
74
|
+
|
75
|
+
#: app/cases/views/listAttachments.html
|
76
|
+
msgid "Attached By"
|
77
|
+
msgstr "附件上传者"
|
78
|
+
|
79
|
+
#: app/cases/views/listAttachments.html
|
80
|
+
msgid "Attached Files"
|
81
|
+
msgstr "附加的文件"
|
82
|
+
|
83
|
+
#: app/cases/views/attachmentsSection.html
|
84
|
+
msgid "Attachments"
|
85
|
+
msgstr "附件"
|
86
|
+
|
87
|
+
#: app/cases/views/new.html
|
88
|
+
msgid "Attachments:"
|
89
|
+
msgstr "附件:"
|
90
|
+
|
91
|
+
#: app/log_viewer/views/navSideBar.html
|
92
|
+
msgid "Available Log Files"
|
93
|
+
msgstr "有效的日志文件"
|
94
|
+
|
95
|
+
#: app/cases/views/listBugzillas.html
|
96
|
+
msgid "Bugzilla Number"
|
97
|
+
msgstr "Bugzilla 号"
|
98
|
+
|
99
|
+
#: app/cases/views/listBugzillas.html
|
100
|
+
msgid "Bugzilla Tickets"
|
101
|
+
msgstr "Bugzilla 报告"
|
102
|
+
|
103
|
+
#: app/security/views/login_form.html
|
104
|
+
#: app/cases/views/createGroupModal.html
|
105
|
+
#: app/cases/views/editGroup.html
|
106
|
+
msgid "Cancel"
|
107
|
+
msgstr "取消"
|
108
|
+
|
109
|
+
#: app/cases/views/commentsSection.html
|
110
|
+
msgid "Case Discussion"
|
111
|
+
msgstr "支持案例讨论"
|
112
|
+
|
113
|
+
#: app/cases/views/createGroupModal.html
|
114
|
+
#: app/cases/views/new.html
|
115
|
+
msgid "Case Group:"
|
116
|
+
msgstr "支持案例组:"
|
117
|
+
|
118
|
+
#: app/cases/views/detailsSection.html
|
119
|
+
msgid "Case Type:"
|
120
|
+
msgstr "支持案例类别:"
|
121
|
+
|
122
|
+
#: app/cases/views/chatButton.html
|
123
|
+
msgid "Chat offline"
|
124
|
+
msgstr "离线互动咨询"
|
125
|
+
|
126
|
+
#: app/cases/views/chatButton.html
|
127
|
+
msgid "Chat with support"
|
128
|
+
msgstr "互动咨询支持"
|
129
|
+
|
130
|
+
#: app/common/views/treeview-selector.html
|
131
|
+
msgid "Choose File(s) To Attach:"
|
132
|
+
msgstr "选择要被附加的文件:"
|
133
|
+
|
134
|
+
#: app/common/views/alert.html
|
135
|
+
msgid "Close messages"
|
136
|
+
msgstr "关闭信息"
|
137
|
+
|
138
|
+
#: app/cases/views/requestManagementEscalationModal.html
|
139
|
+
msgid "Comment:"
|
140
|
+
msgstr "评论:"
|
141
|
+
|
142
|
+
#: app/cases/views/createGroupModal.html
|
143
|
+
msgid "Create Case Group"
|
144
|
+
msgstr "创建案例组"
|
145
|
+
|
146
|
+
#: app/cases/views/createGroupButton.html
|
147
|
+
msgid "Create New Case Group"
|
148
|
+
msgstr "创建新的案例组"
|
149
|
+
|
150
|
+
#: app/cases/views/listAttachments.html
|
151
|
+
msgid "Delete"
|
152
|
+
msgstr "删除"
|
153
|
+
|
154
|
+
#: app/cases/views/deleteGroupButton.html
|
155
|
+
msgid "Delete Group"
|
156
|
+
msgstr "删除组"
|
157
|
+
|
158
|
+
#: app/cases/services/attachmentsService.js
|
159
|
+
msgid "Deleting attachment:"
|
160
|
+
msgstr "删除附件:"
|
161
|
+
|
162
|
+
#: app/cases/views/descriptionSection.html
|
163
|
+
#: app/cases/views/listAttachments.html
|
164
|
+
msgid "Description"
|
165
|
+
msgstr "描述"
|
166
|
+
|
167
|
+
#: app/cases/views/new.html
|
168
|
+
msgid "Description:"
|
169
|
+
msgstr "描述:"
|
170
|
+
|
171
|
+
#: app/cases/views/detailsSection.html
|
172
|
+
msgid "Details"
|
173
|
+
msgstr "详细信息"
|
174
|
+
|
175
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
176
|
+
msgid "Diagnose"
|
177
|
+
msgstr "诊断"
|
178
|
+
|
179
|
+
#: app/cases/views/addCommentSection.html
|
180
|
+
msgid "Draft saved"
|
181
|
+
msgstr "保存草稿"
|
182
|
+
|
183
|
+
#: app/cases/views/emailNotifySelect.html
|
184
|
+
msgid "Email Notification Recipients"
|
185
|
+
msgstr "电子邮件通知接收者"
|
186
|
+
|
187
|
+
#: app/search/views/resultDetail.html
|
188
|
+
msgid "Environment"
|
189
|
+
msgstr "环境"
|
190
|
+
|
191
|
+
#: app/cases/views/exportCSVButton.html
|
192
|
+
msgid "Export All as CSV"
|
193
|
+
msgstr "将所有导出为 CSV"
|
194
|
+
|
195
|
+
#: app/cases/views/exportCSVButton.html
|
196
|
+
msgid "Exporting CSV..."
|
197
|
+
msgstr "导出 CSV..."
|
198
|
+
|
199
|
+
#: app/cases/views/attachLocalFile.html
|
200
|
+
msgid ""
|
201
|
+
"File names must be less than 80 characters. Maximum file size for web-"
|
202
|
+
"uploaded attachments is 250 MB. Please FTP larger files to dropbox.redhat."
|
203
|
+
"com."
|
204
|
+
msgstr ""
|
205
|
+
"文件名不能超过 80 个字符,网页上传文件大小不能超过 250 MB。请使用 FTP 将大文件上传到 dropbox.redhat.com。"
|
206
|
+
|
207
|
+
#: app/cases/views/listAttachments.html
|
208
|
+
msgid "Filename"
|
209
|
+
msgstr "文件名"
|
210
|
+
|
211
|
+
#: app/cases/views/listNewAttachments.html
|
212
|
+
msgid "Files to Attach"
|
213
|
+
msgstr "要附加的文件"
|
214
|
+
|
215
|
+
#: app/cases/views/editGroup.html
|
216
|
+
msgid "First Name"
|
217
|
+
msgstr "名"
|
218
|
+
|
219
|
+
#: app/cases/views/search.html
|
220
|
+
msgid "Group"
|
221
|
+
msgstr "组"
|
222
|
+
|
223
|
+
#: app/cases/views/detailsSection.html
|
224
|
+
msgid "Group:"
|
225
|
+
msgstr "组:"
|
226
|
+
|
227
|
+
#: app/cases/views/requestManagementEscalationModal.html
|
228
|
+
msgid ""
|
229
|
+
"If you feel the issue has become more severe or the case should be a higher "
|
230
|
+
"priority, please provide a detailed comment, and the case will be reviewed "
|
231
|
+
"by a support manager."
|
232
|
+
msgstr "如果您的问题愈发严重或案例应具有更高优先级,请提供详细信息,支持经理将会复核该案例。"
|
233
|
+
|
234
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
235
|
+
msgid ""
|
236
|
+
"In the event that you would still like to open a support case, select 'Open "
|
237
|
+
"a New Support Case'. The case will be pre-populated with the portion of the "
|
238
|
+
"log previously selected."
|
239
|
+
msgstr "如果您仍然希望创建一个新的支持案例,请选择“创建新支持案例”。系统将会根据您所选择的日志自动生成案例中的部分内容。"
|
240
|
+
|
241
|
+
#: app/cases/views/addCommentSection.html
|
242
|
+
msgid "Is Public:"
|
243
|
+
msgstr "是否公开:"
|
244
|
+
|
245
|
+
#: app/cases/views/editGroup.html
|
246
|
+
msgid "Last Name"
|
247
|
+
msgstr "姓"
|
248
|
+
|
249
|
+
#: app/cases/views/detailsSection.html
|
250
|
+
msgid "Last Updated:"
|
251
|
+
msgstr "最新更新:"
|
252
|
+
|
253
|
+
#: app/cases/views/requestManagementEscalationModal.html
|
254
|
+
msgid "Learn more"
|
255
|
+
msgstr "了解更多信息"
|
256
|
+
|
257
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
258
|
+
msgid "Log File Viewer"
|
259
|
+
msgstr "日志文件查看器"
|
260
|
+
|
261
|
+
#: app/security/views/login_status.html
|
262
|
+
msgid "Log In"
|
263
|
+
msgstr "登录"
|
264
|
+
|
265
|
+
#: app/security/views/login_status.html
|
266
|
+
msgid "Log Out"
|
267
|
+
msgstr "登出"
|
268
|
+
|
269
|
+
#: app/security/views/login_status.html
|
270
|
+
msgid "Logged into the Red Hat Customer Portal as"
|
271
|
+
msgstr "以以下身份登录到红帽客户门户网站"
|
272
|
+
|
273
|
+
#: app/cases/views/accountSelect.html
|
274
|
+
msgid "My Account"
|
275
|
+
msgstr "我的帐号"
|
276
|
+
|
277
|
+
#: app/cases/views/groupList.html
|
278
|
+
msgid "Name"
|
279
|
+
msgstr "名称"
|
280
|
+
|
281
|
+
#: app/cases/views/new.html
|
282
|
+
msgid "Next"
|
283
|
+
msgstr "下一步"
|
284
|
+
|
285
|
+
#: app/cases/views/listAttachments.html
|
286
|
+
msgid "No attachments added"
|
287
|
+
msgstr "无添加的附件"
|
288
|
+
|
289
|
+
#: app/cases/views/compactCaseList.html
|
290
|
+
#: app/cases/views/list.html
|
291
|
+
msgid "No cases found with given filters."
|
292
|
+
msgstr "无匹配的支持案例。"
|
293
|
+
|
294
|
+
#: app/cases/views/search.html
|
295
|
+
msgid "No cases found with given search criteria."
|
296
|
+
msgstr "无匹配的支持案例。"
|
297
|
+
|
298
|
+
#: app/cases/views/groupList.html
|
299
|
+
msgid "No groups found."
|
300
|
+
msgstr "没有找到组。"
|
301
|
+
|
302
|
+
#: app/cases/views/listBugzillas.html
|
303
|
+
msgid "No linked bugzillas"
|
304
|
+
msgstr "没有相关的 bugzilla 报告"
|
305
|
+
|
306
|
+
#: app/security/views/login_status.html
|
307
|
+
msgid "Not Logged into the Red Hat Customer Portal"
|
308
|
+
msgstr "没有登录到红帽用户门户网站"
|
309
|
+
|
310
|
+
#: app/security/views/login_form.html
|
311
|
+
msgid "Note:"
|
312
|
+
msgstr "备注:"
|
313
|
+
|
314
|
+
#: app/cases/views/detailsSection.html
|
315
|
+
msgid "Notes:"
|
316
|
+
msgstr "备注:"
|
317
|
+
|
318
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
319
|
+
msgid ""
|
320
|
+
"Once you have selected your log file then you may diagnose any part of the "
|
321
|
+
"log file and clicking the 'Red Hat Diagnose' button. This will then display "
|
322
|
+
"relevant articles and solutons from our Red Hat Knowledge base."
|
323
|
+
msgstr "在选择了您的日志文件后,点“红帽诊断”按钮可以根据您的日志文件对系统进行诊断,红帽知识库中的相应条目将会被显示。"
|
324
|
+
|
325
|
+
#: app/search/views/accordion_search_results.html
|
326
|
+
#: app/cases/views/list.html
|
327
|
+
#: app/cases/views/search.html
|
328
|
+
msgid "Open a New Support Case"
|
329
|
+
msgstr "创建一个新的支持案例"
|
330
|
+
|
331
|
+
#: app/cases/views/detailsSection.html
|
332
|
+
msgid "Opened:"
|
333
|
+
msgstr "创建:"
|
334
|
+
|
335
|
+
#: app/cases/views/search.html
|
336
|
+
msgid "Owner"
|
337
|
+
msgstr "所有者"
|
338
|
+
|
339
|
+
#: app/cases/views/detailsSection.html
|
340
|
+
#: app/cases/views/new.html
|
341
|
+
msgid "Owner:"
|
342
|
+
msgstr "所有者:"
|
343
|
+
|
344
|
+
#: app/security/views/login_form.html
|
345
|
+
msgid "Password"
|
346
|
+
msgstr "密码"
|
347
|
+
|
348
|
+
#: app/cases/views/new.html
|
349
|
+
msgid "Previous"
|
350
|
+
msgstr "上一步"
|
351
|
+
|
352
|
+
#: app/cases/views/search.html
|
353
|
+
msgid "Product"
|
354
|
+
msgstr "产品"
|
355
|
+
|
356
|
+
#: app/cases/views/detailsSection.html
|
357
|
+
#: app/cases/views/new.html
|
358
|
+
msgid "Product Version:"
|
359
|
+
msgstr "产品版本:"
|
360
|
+
|
361
|
+
#: app/cases/views/detailsSection.html
|
362
|
+
#: app/cases/views/new.html
|
363
|
+
msgid "Product:"
|
364
|
+
msgstr "产品:"
|
365
|
+
|
366
|
+
#: app/search/views/accordion_search_results.html
|
367
|
+
#: app/search/views/list_search_results.html
|
368
|
+
#: app/cases/views/recommendationsSection.html
|
369
|
+
msgid "Recommendations"
|
370
|
+
msgstr "建议"
|
371
|
+
|
372
|
+
#: app/security/views/login_form.html
|
373
|
+
msgid ""
|
374
|
+
"Red Hat Access makes it easy for you to self-solve issues, diagnose "
|
375
|
+
"problems, and engage with us via the Red Hat Customer Portal. To access Red "
|
376
|
+
"Hat Customer Portal resources, you must enter valid portal credentials."
|
377
|
+
msgstr ""
|
378
|
+
"通过使用 Red Hat "
|
379
|
+
"Access,您可以方便地通过红帽用户门户网站来自助解决问题、诊断问题并和红帽进行联系。您需要有效的账户来访问红帽用户门户网站的资源。"
|
380
|
+
|
381
|
+
#: app/security/views/login_form.html
|
382
|
+
msgid ""
|
383
|
+
"Red Hat Customer Portal credentials differ from the credentials used to log "
|
384
|
+
"into this product."
|
385
|
+
msgstr "红帽用户门户网站的用户帐号和登录到其它产品的用户帐号不同。"
|
386
|
+
|
387
|
+
#: app/log_viewer/views/logTabs.html
|
388
|
+
msgid "Red Hat Diagnose"
|
389
|
+
msgstr "红帽诊断"
|
390
|
+
|
391
|
+
#: app/security/views/login_form.html
|
392
|
+
msgid "Red Hat Login"
|
393
|
+
msgstr "红帽登录"
|
394
|
+
|
395
|
+
#: app/cases/views/detailsSection.html
|
396
|
+
msgid "Red Hat Owner:"
|
397
|
+
msgstr "红帽负责人:"
|
398
|
+
|
399
|
+
#: app/cases/views/commentsSection.html
|
400
|
+
#: app/cases/views/requestManagementEscalationModal.html
|
401
|
+
msgid "Request Management Escalation"
|
402
|
+
msgstr "请求管理升级"
|
403
|
+
|
404
|
+
#: app/search/views/resultDetail.html
|
405
|
+
msgid "Resolution"
|
406
|
+
msgstr "解决方案"
|
407
|
+
|
408
|
+
#: app/cases/views/createGroupModal.html
|
409
|
+
msgid "Save"
|
410
|
+
msgstr "保存"
|
411
|
+
|
412
|
+
#: app/cases/views/editGroup.html
|
413
|
+
msgid "Save Group"
|
414
|
+
msgstr "保存组"
|
415
|
+
|
416
|
+
#: app/cases/views/addCommentSection.html
|
417
|
+
msgid "Saving draft..."
|
418
|
+
msgstr "保存草稿..."
|
419
|
+
|
420
|
+
#: app/search/views/search_form.html
|
421
|
+
msgid "Search"
|
422
|
+
msgstr "搜索"
|
423
|
+
|
424
|
+
#: app/cases/views/search.html
|
425
|
+
msgid "Searching..."
|
426
|
+
msgstr "搜索..."
|
427
|
+
|
428
|
+
#: app/log_viewer/views/navSideBar.html
|
429
|
+
msgid "Select File"
|
430
|
+
msgstr "选择文件"
|
431
|
+
|
432
|
+
#: app/cases/views/attachmentsSection.html
|
433
|
+
msgid "Server File(s) To Attach:"
|
434
|
+
msgstr "附加的服务器文件:"
|
435
|
+
|
436
|
+
#: app/cases/views/search.html
|
437
|
+
msgid "Severity"
|
438
|
+
msgstr "严重性"
|
439
|
+
|
440
|
+
#: app/cases/views/detailsSection.html
|
441
|
+
#: app/cases/views/new.html
|
442
|
+
#: app/cases/views/searchResult.html
|
443
|
+
msgid "Severity:"
|
444
|
+
msgstr "严重性:"
|
445
|
+
|
446
|
+
#: app/security/views/login_form.html
|
447
|
+
msgid "Sign in"
|
448
|
+
msgstr "登录"
|
449
|
+
|
450
|
+
#: app/security/views/login_form.html
|
451
|
+
msgid "Sign into the Red Hat Customer Portal"
|
452
|
+
msgstr "登录到红帽用户门户网站"
|
453
|
+
|
454
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
455
|
+
msgid ""
|
456
|
+
"Simply navigate to and select a log file from the list on the left and click "
|
457
|
+
"the 'Select File' button."
|
458
|
+
msgstr "从左面的列表中查找并选择一个日志文件,点“选择文件”按钮。"
|
459
|
+
|
460
|
+
#: app/cases/views/listAttachments.html
|
461
|
+
msgid "Size"
|
462
|
+
msgstr "大小"
|
463
|
+
|
464
|
+
#: app/cases/views/search.html
|
465
|
+
msgid "Status"
|
466
|
+
msgstr "状态"
|
467
|
+
|
468
|
+
#: app/cases/views/detailsSection.html
|
469
|
+
#: app/cases/views/searchResult.html
|
470
|
+
msgid "Status:"
|
471
|
+
msgstr "状态:"
|
472
|
+
|
473
|
+
#: app/cases/views/new.html
|
474
|
+
msgid "Submit"
|
475
|
+
msgstr "提交"
|
476
|
+
|
477
|
+
#: app/cases/views/requestManagementEscalationModal.html
|
478
|
+
msgid "Submit Request"
|
479
|
+
msgstr "提交请求"
|
480
|
+
|
481
|
+
#: app/cases/services/attachmentsService.js
|
482
|
+
msgid "Successfully deleted attachment:"
|
483
|
+
msgstr "成功删除的附件:"
|
484
|
+
|
485
|
+
#: app/cases/services/attachmentsService.js
|
486
|
+
msgid "Successfully uploaded attachment"
|
487
|
+
msgstr "成功上传的附件"
|
488
|
+
|
489
|
+
#: app/cases/views/listBugzillas.html
|
490
|
+
msgid "Summary of Request"
|
491
|
+
msgstr "请求概述"
|
492
|
+
|
493
|
+
#: app/cases/views/new.html
|
494
|
+
msgid "Summary:"
|
495
|
+
msgstr "概述:"
|
496
|
+
|
497
|
+
#: app/cases/views/detailsSection.html
|
498
|
+
msgid "Support Level:"
|
499
|
+
msgstr "支持级别:"
|
500
|
+
|
501
|
+
#: app/log_viewer/views/logsInstructionPane.html
|
502
|
+
msgid ""
|
503
|
+
"The log file viewer gives the ability to diagnose application logs as well "
|
504
|
+
"as file a support case with Red Hat Global Support Services."
|
505
|
+
msgstr "日志文件查看器可以对应用程序的日志文件进行诊断,并可以在红帽全球支持服务系统中创建一个支持案例。"
|
506
|
+
|
507
|
+
#: app/cases/views/new.html
|
508
|
+
msgid ""
|
509
|
+
"This release is now retired, please refer to the recommended FAQ prior to "
|
510
|
+
"filing a case"
|
511
|
+
msgstr "这个版本已经不被支持,请在创建案例前参考我们推荐的 FAQ。"
|
512
|
+
|
513
|
+
#: app/search/views/list_search_results.html
|
514
|
+
msgid "To view a recommendation, click on it."
|
515
|
+
msgstr "点一个建议项来查看它的内容。"
|
516
|
+
|
517
|
+
#: app/cases/views/search.html
|
518
|
+
msgid "Type"
|
519
|
+
msgstr "类型"
|
520
|
+
|
521
|
+
#: app/common/services/strataService.js
|
522
|
+
msgid "Unauthorized."
|
523
|
+
msgstr "未授权。"
|
524
|
+
|
525
|
+
#: app/cases/views/detailsSection.html
|
526
|
+
msgid "Update Details"
|
527
|
+
msgstr "更新详情"
|
528
|
+
|
529
|
+
#: app/cases/views/searchResult.html
|
530
|
+
msgid "Updated:"
|
531
|
+
msgstr "更新:"
|
532
|
+
|
533
|
+
#: app/cases/views/attachmentsSection.html
|
534
|
+
msgid "Upload Attachments"
|
535
|
+
msgstr "上传附件"
|
536
|
+
|
537
|
+
#: app/cases/views/editGroup.html
|
538
|
+
msgid "User Name"
|
539
|
+
msgstr "用户名"
|
540
|
+
|
541
|
+
#: app/cases/views/recommendationsSection.html
|
542
|
+
msgid "View full article in new window"
|
543
|
+
msgstr "在新窗口中查看全文"
|
544
|
+
|
545
|
+
#: app/cases/views/commentsSection.html
|
546
|
+
msgid ""
|
547
|
+
"Would you like a Red Hat support manager to contact you regarding this case?"
|
548
|
+
msgstr "您是否希望红帽支持经理就此支持案例与您联系?"
|
549
|
+
|
550
|
+
#: app/cases/views/addCommentSection.html
|
551
|
+
msgid "You have used 0% of the 32KB maximum description size."
|
552
|
+
msgstr "您已经使用了最大描述大小限制(32 KB)中的 0%。"
|
553
|
+
|
554
|
+
#: app/cases/views/recommendationsSection.html
|
555
|
+
msgid "handpicked"
|
556
|
+
msgstr "精选"
|
557
|
+
|
558
|
+
#: app/cases/services/attachmentsService.js
|
559
|
+
msgid "to case"
|
560
|
+
msgstr "案例"
|
561
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
# Maintain your gem's version:
|
4
|
+
require "redhat_access/version"
|
5
|
+
|
6
|
+
# Describe your gem and declare its dependencies:
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "redhat_access"
|
9
|
+
s.version = RedhatAccess::VERSION
|
10
|
+
s.authors = ["Lindani Phiri"]
|
11
|
+
s.email = ["lphiri@redhat.com"]
|
12
|
+
s.homepage = "http://www.lphiri.redhat.com"
|
13
|
+
s.summary = "Plugin to add Redhat Access to Foreman"
|
14
|
+
s.description = "This plugin adds Red Hat Access knowledge base search, case management and diagnostics to Foreman"
|
15
|
+
|
16
|
+
s.files = Dir["{app,config,db,lib,vendor,public,script,ca,locale}/**/*"] + ["LICENSE.txt", "Rakefile", "README.rdoc", "redhat_access.gemspec", "Gemfile"]
|
17
|
+
s.test_files = Dir["test/**/*"]
|
18
|
+
|
19
|
+
#s.add_dependency "rails", "~> 3.2"
|
20
|
+
s.add_dependency "redhat_access_lib" , ">=1.0.1"
|
21
|
+
|
22
|
+
#s.add_dependency "haml-rails"
|
23
|
+
#s.add_dependency "requirejs-rails"
|
24
|
+
#-------------s.add_dependency "bootstrap-sass", "~> 3.0.3.0"
|
25
|
+
# s.add_dependency "jquery-rails"
|
26
|
+
s.add_dependency "angular-rails-templates", ">=0.0.4"
|
27
|
+
#s.add_development_dependency "sqlite3"
|
28
|
+
#s.add_development_dependency "sprockets", "~>2.2.2"
|
29
|
+
#s.add_development_dependency "redhat_access_lib"
|
30
|
+
end
|
data/script/rails
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/redhat_access/engine', __FILE__)
|
6
|
+
|
7
|
+
require 'rails/all'
|
8
|
+
require 'rails/engine/commands'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#%PAM-1.0
|
2
|
+
auth sufficient pam_rootok.so
|
3
|
+
auth sufficient pam_timestamp.so
|
4
|
+
auth sufficient pam_wheel.so group=foreman trust use_uid
|
5
|
+
auth include system-auth
|
6
|
+
account required pam_permit.so
|
7
|
+
session required pam_permit.so
|
8
|
+
session optional pam_xauth.so
|
9
|
+
session optional pam_timestamp.so
|
@@ -0,0 +1,65 @@
|
|
1
|
+
#!/usr/bin/python
|
2
|
+
# This program is free software; you can redistribute it and/or modify
|
3
|
+
# it under the terms of the GNU General Public License as published by
|
4
|
+
# the Free Software Foundation; either version 2 of the License, or
|
5
|
+
# (at your option) any later version.
|
6
|
+
|
7
|
+
# This program is distributed in the hope that it will be useful,
|
8
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
10
|
+
# GNU General Public License for more details.
|
11
|
+
|
12
|
+
# You should have received a copy of the GNU General Public License
|
13
|
+
# along with this program; if not, write to the Free Software
|
14
|
+
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
15
|
+
|
16
|
+
""" sos entry point. """
|
17
|
+
import os
|
18
|
+
import pwd
|
19
|
+
import sys
|
20
|
+
import tempfile
|
21
|
+
try:
|
22
|
+
from sos.sosreport import sosreport, doExitCode
|
23
|
+
except ImportError:
|
24
|
+
from sos.sosreport import main as sosreport
|
25
|
+
def doExitCode():
|
26
|
+
raise SystemExit()
|
27
|
+
|
28
|
+
|
29
|
+
if __name__ == '__main__':
|
30
|
+
for arg in sys.argv:
|
31
|
+
if arg.startswith('--tmp-dir=') or arg == '--tmp-dir':
|
32
|
+
sys.exit('--tmp-dir was passed to foreman-sosreport, and will conflict'
|
33
|
+
' with changes foreman-sosreport performs... exiting')
|
34
|
+
|
35
|
+
newtmpdir = tempfile.mkdtemp()
|
36
|
+
sys.argv.append('--tmp-dir=%s' % (newtmpdir))
|
37
|
+
|
38
|
+
try:
|
39
|
+
sosreport(sys.argv[1:])
|
40
|
+
except KeyboardInterrupt:
|
41
|
+
doExitCode()
|
42
|
+
|
43
|
+
filelist = os.listdir(newtmpdir)
|
44
|
+
filelist.append('')
|
45
|
+
|
46
|
+
foreman_uid = -1 # Ensures chown no-op if something weird happens in pwd.
|
47
|
+
|
48
|
+
try:
|
49
|
+
# get uid, this may raise KeyError if it can't lookup
|
50
|
+
foreman_uid = pwd.getpwnam('foreman').pw_uid
|
51
|
+
except KeyError:
|
52
|
+
pass
|
53
|
+
|
54
|
+
for file in filelist:
|
55
|
+
try:
|
56
|
+
# change UID, leave GID as-is, may raise OSError
|
57
|
+
os.chown(os.path.join(newtmpdir, file), foreman_uid, -1)
|
58
|
+
except OSError:
|
59
|
+
print sys.exc_info()
|
60
|
+
sys.exit("unable to chown file %s to foreman user" % (file))
|
61
|
+
|
62
|
+
print "sosreport files saved to: %s" % (newtmpdir)
|
63
|
+
|
64
|
+
# vim:ts=4 et sw=4
|
65
|
+
|