openshift-origin-console 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. data/COPYRIGHT +1 -0
  2. data/Gemfile +21 -0
  3. data/LICENSE +203 -0
  4. data/README.md +123 -0
  5. data/Rakefile +44 -0
  6. data/app/assets/images/cartridge-edge.gif +0 -0
  7. data/app/assets/images/console/arrow-down.png +0 -0
  8. data/app/assets/images/console/console-sprite.png +0 -0
  9. data/app/assets/images/favicon-32.png +0 -0
  10. data/app/assets/images/loader-dark.gif +0 -0
  11. data/app/assets/images/loader.gif +0 -0
  12. data/app/assets/images/sprite-vert.png +0 -0
  13. data/app/assets/javascripts/console.js +10 -0
  14. data/app/assets/javascripts/console/form.js.coffee +51 -0
  15. data/app/assets/stylesheets/_alerts.scss +84 -0
  16. data/app/assets/stylesheets/_breadcrumbs.scss +31 -0
  17. data/app/assets/stylesheets/_buttons.scss +229 -0
  18. data/app/assets/stylesheets/_code.scss +86 -0
  19. data/app/assets/stylesheets/_custom.scss +207 -0
  20. data/app/assets/stylesheets/_footer.scss +54 -0
  21. data/app/assets/stylesheets/_forms.scss +710 -0
  22. data/app/assets/stylesheets/_grid.scss +28 -0
  23. data/app/assets/stylesheets/_input-prepend-append.scss +138 -0
  24. data/app/assets/stylesheets/_labels.scss +40 -0
  25. data/app/assets/stylesheets/_mixins.scss +76 -0
  26. data/app/assets/stylesheets/_override-variables.scss +1 -0
  27. data/app/assets/stylesheets/_responsive.scss +438 -0
  28. data/app/assets/stylesheets/_ribbon.scss +57 -0
  29. data/app/assets/stylesheets/_type.scss +306 -0
  30. data/app/assets/stylesheets/_utilities.scss +10 -0
  31. data/app/assets/stylesheets/_variables.scss +131 -0
  32. data/app/assets/stylesheets/common.css.scss +82 -0
  33. data/app/assets/stylesheets/console/_application.scss +194 -0
  34. data/app/assets/stylesheets/console/_base.scss +26 -0
  35. data/app/assets/stylesheets/console/_breadcrumbs.scss +32 -0
  36. data/app/assets/stylesheets/console/_buttons.scss +214 -0
  37. data/app/assets/stylesheets/console/_core.scss +1002 -0
  38. data/app/assets/stylesheets/console/_dropdowns.scss +63 -0
  39. data/app/assets/stylesheets/console/_help.scss +54 -0
  40. data/app/assets/stylesheets/console/_mixins.scss +11 -0
  41. data/app/assets/stylesheets/console/_navbar.scss +415 -0
  42. data/app/assets/stylesheets/console/_ribbon.scss +82 -0
  43. data/app/assets/stylesheets/console/_tile.scss +122 -0
  44. data/app/assets/stylesheets/origin.css.scss +37 -0
  45. data/app/controllers/account/dashboard.rb +13 -0
  46. data/app/controllers/account_controller.rb +3 -0
  47. data/app/controllers/application_types_controller.rb +80 -0
  48. data/app/controllers/applications_controller.rb +183 -0
  49. data/app/controllers/building_controller.rb +81 -0
  50. data/app/controllers/capability_aware.rb +18 -0
  51. data/app/controllers/cartridge_types_controller.rb +53 -0
  52. data/app/controllers/cartridges_controller.rb +43 -0
  53. data/app/controllers/console/auth/basic.rb +65 -0
  54. data/app/controllers/console/auth/none.rb +5 -0
  55. data/app/controllers/console/auth/remote_user.rb +69 -0
  56. data/app/controllers/console/rescue.rb +48 -0
  57. data/app/controllers/console_controller.rb +19 -0
  58. data/app/controllers/console_index_controller.rb +14 -0
  59. data/app/controllers/domain_aware.rb +26 -0
  60. data/app/controllers/domain_session_sweeper.rb +29 -0
  61. data/app/controllers/domains_controller.rb +30 -0
  62. data/app/controllers/keys_controller.rb +43 -0
  63. data/app/controllers/scaling_controller.rb +46 -0
  64. data/app/controllers/sshkey_aware.rb +23 -0
  65. data/app/controllers/sshkey_session_sweeper.rb +29 -0
  66. data/app/controllers/user_session_sweeper.rb +29 -0
  67. data/app/helpers/console/community_helper.rb +78 -0
  68. data/app/helpers/console/console_helper.rb +26 -0
  69. data/app/helpers/console/help_helper.rb +270 -0
  70. data/app/helpers/console/html5_boilerplate_helper.rb +63 -0
  71. data/app/helpers/console/layout_helper.rb +277 -0
  72. data/app/helpers/console/model_helper.rb +106 -0
  73. data/app/helpers/console/secured_helper.rb +5 -0
  74. data/app/models/alias.rb +10 -0
  75. data/app/models/application.rb +148 -0
  76. data/app/models/application_associations.rb +36 -0
  77. data/app/models/application_template.rb +90 -0
  78. data/app/models/application_type.rb +258 -0
  79. data/app/models/async_aware.rb +60 -0
  80. data/app/models/capabilities.rb +62 -0
  81. data/app/models/cartridge.rb +122 -0
  82. data/app/models/cartridge_type.rb +140 -0
  83. data/app/models/domain.rb +44 -0
  84. data/app/models/domain_associations.rb +33 -0
  85. data/app/models/embedded.rb +11 -0
  86. data/app/models/gear.rb +13 -0
  87. data/app/models/gear_group.rb +104 -0
  88. data/app/models/key.rb +87 -0
  89. data/app/models/quickstart.rb +135 -0
  90. data/app/models/rest_api.rb +130 -0
  91. data/app/models/rest_api/base.rb +781 -0
  92. data/app/models/rest_api/cacheable.rb +91 -0
  93. data/app/models/rest_api/environment.rb +13 -0
  94. data/app/models/rest_api/info.rb +34 -0
  95. data/app/models/rest_api/log_subscriber.rb +29 -0
  96. data/app/models/rest_api/railties/controller_runtime.rb +37 -0
  97. data/app/models/user.rb +27 -0
  98. data/app/models/user_associations.rb +6 -0
  99. data/app/views/account/_domain.html.haml +14 -0
  100. data/app/views/account/_keys.html.haml +20 -0
  101. data/app/views/account/_user.html.haml +5 -0
  102. data/app/views/account/show.html.haml +15 -0
  103. data/app/views/application_templates/_application_template.html.haml +5 -0
  104. data/app/views/application_types/_application_type.html.haml +19 -0
  105. data/app/views/application_types/_custom.html.haml +19 -0
  106. data/app/views/application_types/_persisted.html.haml +26 -0
  107. data/app/views/application_types/_tile.html.haml +9 -0
  108. data/app/views/application_types/index.html.haml +87 -0
  109. data/app/views/application_types/search.html.haml +67 -0
  110. data/app/views/application_types/show.html.haml +219 -0
  111. data/app/views/applications/_application.html.haml +34 -0
  112. data/app/views/applications/_applications_filter.html.haml +8 -0
  113. data/app/views/applications/_footer.html.haml +0 -0
  114. data/app/views/applications/_name.html.haml +28 -0
  115. data/app/views/applications/delete.html.haml +19 -0
  116. data/app/views/applications/get_started.html.haml +145 -0
  117. data/app/views/applications/index.html.haml +55 -0
  118. data/app/views/applications/show.html.haml +193 -0
  119. data/app/views/building/delete.html.haml +22 -0
  120. data/app/views/building/new.html.haml +57 -0
  121. data/app/views/building/show.html.haml +12 -0
  122. data/app/views/cartridge_types/_cartridge_type.html.haml +61 -0
  123. data/app/views/cartridge_types/index.html.haml +37 -0
  124. data/app/views/cartridge_types/show.html.haml +21 -0
  125. data/app/views/cartridges/next_steps.html.haml +58 -0
  126. data/app/views/cartridges/show.html.haml +1 -0
  127. data/app/views/console/error.html.haml +58 -0
  128. data/app/views/console/help.html.haml +90 -0
  129. data/app/views/console/not_found.html.haml +69 -0
  130. data/app/views/console/unauthorized.html.haml +7 -0
  131. data/app/views/domains/_domain.html.haml +14 -0
  132. data/app/views/domains/_form.html.haml +13 -0
  133. data/app/views/domains/edit.html.haml +5 -0
  134. data/app/views/domains/new.html.haml +6 -0
  135. data/app/views/keys/_form.html.haml +14 -0
  136. data/app/views/keys/_simple_form.html.haml +14 -0
  137. data/app/views/keys/new.html.haml +2 -0
  138. data/app/views/layouts/_footer.html.haml +38 -0
  139. data/app/views/layouts/_head.html.haml +35 -0
  140. data/app/views/layouts/console.html.haml +60 -0
  141. data/app/views/layouts/console/_header.html.haml +44 -0
  142. data/app/views/layouts/console/_identity.html.haml +7 -0
  143. data/app/views/layouts/console/_javascripts.html.haml +5 -0
  144. data/app/views/layouts/console/_stylesheets.html.haml +6 -0
  145. data/app/views/scaling/delete.html.haml +17 -0
  146. data/app/views/scaling/new.html.haml +24 -0
  147. data/app/views/scaling/show.html.haml +81 -0
  148. data/app/views/shared/_tracking.html.haml +0 -0
  149. data/conf/console.conf.example +108 -0
  150. data/conf/openshift_console.conf +10 -0
  151. data/config/cartridge_types.yml +54 -0
  152. data/config/initializers/barista_config.rb +86 -0
  153. data/config/initializers/cartridge_types.rb +5 -0
  154. data/config/initializers/console_security.rb +1 -0
  155. data/config/initializers/date_helper.rb +5 -0
  156. data/config/initializers/extended_logger.rb +51 -0
  157. data/config/initializers/formtastic.rb +100 -0
  158. data/config/initializers/inflections.rb +38 -0
  159. data/config/initializers/rdiscount.rb +8 -0
  160. data/config/initializers/rest_api.rb +22 -0
  161. data/config/initializers/sass.rb +30 -0
  162. data/config/initializers/session_trace.rb +32 -0
  163. data/config/initializers/x_frame_options.rb +53 -0
  164. data/config/locales/en.yml +12 -0
  165. data/lib/active_resource/associations.rb +107 -0
  166. data/lib/active_resource/associations/builder/association.rb +35 -0
  167. data/lib/active_resource/associations/builder/belongs_to.rb +5 -0
  168. data/lib/active_resource/associations/builder/has_many.rb +5 -0
  169. data/lib/active_resource/associations/builder/has_one.rb +5 -0
  170. data/lib/active_resource/persistent_connection.rb +341 -0
  171. data/lib/active_resource/persistent_http_mock.rb +68 -0
  172. data/lib/active_resource/reflection.rb +78 -0
  173. data/lib/console.rb +8 -0
  174. data/lib/console/config_file.rb +13 -0
  175. data/lib/console/configuration.rb +163 -0
  176. data/lib/console/engine.rb +28 -0
  177. data/lib/console/formtastic/bootstrap_form_builder.rb +369 -0
  178. data/lib/console/rails/app_redirector.rb +40 -0
  179. data/lib/console/rails/filter_hash.rb +15 -0
  180. data/lib/console/rails/routes.rb +51 -0
  181. data/lib/console/version.rb +5 -0
  182. data/lib/tasks/assets.rake +79 -0
  183. data/lib/tasks/stats.rake +18 -0
  184. data/lib/tasks/test_suites.rake +73 -0
  185. data/test/coverage_helper.rb +27 -0
  186. data/test/fixtures/cartridges.json +1 -0
  187. data/test/fixtures/quickstarts.csv +3 -0
  188. data/test/functional/account_controller_test.rb +14 -0
  189. data/test/functional/application_types_controller_test.rb +251 -0
  190. data/test/functional/applications_controller_sanity_test.rb +26 -0
  191. data/test/functional/applications_controller_test.rb +365 -0
  192. data/test/functional/building_controller_test.rb +203 -0
  193. data/test/functional/cartridge_types_controller_isolation_test.rb +68 -0
  194. data/test/functional/cartridge_types_controller_test.rb +48 -0
  195. data/test/functional/cartridges_controller_test.rb +83 -0
  196. data/test/functional/console_auth_basic_controller_test.rb +82 -0
  197. data/test/functional/console_auth_remote_user_controller_test.rb +90 -0
  198. data/test/functional/console_index_controller_test.rb +22 -0
  199. data/test/functional/domains_controller_test.rb +194 -0
  200. data/test/functional/keys_controller_test.rb +163 -0
  201. data/test/functional/quickstarts.json +18 -0
  202. data/test/functional/scaling_controller_test.rb +153 -0
  203. data/test/integration/assets_test.rb +34 -0
  204. data/test/integration/help_link_test.rb +43 -0
  205. data/test/integration/quickstarts_test.rb +24 -0
  206. data/test/integration/rescue_from_test.rb +25 -0
  207. data/test/integration/rest_api/application_test.rb +115 -0
  208. data/test/integration/rest_api/cartridge_test.rb +44 -0
  209. data/test/integration/rest_api/cartridge_type_test.rb +143 -0
  210. data/test/integration/rest_api/domain_test.rb +91 -0
  211. data/test/integration/rest_api/info_test.rb +9 -0
  212. data/test/integration/rest_api/key_test.rb +85 -0
  213. data/test/integration/static_pages_test.rb +44 -0
  214. data/test/rails_app/Rakefile +7 -0
  215. data/test/rails_app/app/controllers/application_controller.rb +5 -0
  216. data/test/rails_app/config.ru +4 -0
  217. data/test/rails_app/config/application.rb +48 -0
  218. data/test/rails_app/config/boot.rb +10 -0
  219. data/test/rails_app/config/database.yml +25 -0
  220. data/test/rails_app/config/environment.rb +5 -0
  221. data/test/rails_app/config/environments/development.rb +38 -0
  222. data/test/rails_app/config/environments/production.rb +70 -0
  223. data/test/rails_app/config/environments/test.rb +43 -0
  224. data/test/rails_app/config/initializers/auth.rb +0 -0
  225. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  226. data/test/rails_app/config/initializers/inflections.rb +10 -0
  227. data/test/rails_app/config/initializers/mime_types.rb +5 -0
  228. data/test/rails_app/config/initializers/secret_token.rb +7 -0
  229. data/test/rails_app/config/initializers/session_store.rb +8 -0
  230. data/test/rails_app/config/locales/en.yml +5 -0
  231. data/test/rails_app/config/routes.rb +4 -0
  232. data/test/rails_app/script/rails +6 -0
  233. data/test/support/auth.rb +111 -0
  234. data/test/support/base.rb +142 -0
  235. data/test/support/errors.rb +28 -0
  236. data/test/support/rest_api.rb +189 -0
  237. data/test/test_helper.rb +14 -0
  238. data/test/unit/active_model_compliance_test.rb +23 -0
  239. data/test/unit/async_aware_test.rb +55 -0
  240. data/test/unit/configuration_test.rb +158 -0
  241. data/test/unit/filter_hash_test.rb +64 -0
  242. data/test/unit/helpers/model_helper_test.rb +61 -0
  243. data/test/unit/overrides_test.rb +9 -0
  244. data/test/unit/rest_api_test.rb +1590 -0
  245. data/vendor/assets/javascripts/MIT-LICENSE.txt +20 -0
  246. data/vendor/assets/javascripts/bootstrap-collapse.js +157 -0
  247. data/vendor/assets/javascripts/bootstrap-dropdown.js +100 -0
  248. data/vendor/assets/javascripts/bootstrap-tab.js +135 -0
  249. data/vendor/assets/javascripts/bootstrap-transition.js +61 -0
  250. data/vendor/assets/javascripts/jquery.spin.js +47 -0
  251. data/vendor/assets/javascripts/jquery.ui.widget.js +16 -0
  252. data/vendor/assets/javascripts/jquery_cookie.js +41 -0
  253. data/vendor/assets/javascripts/jquery_validate_min.js +51 -0
  254. data/vendor/assets/javascripts/modernizr.min.js +2 -0
  255. data/vendor/assets/javascripts/plugins.js +16 -0
  256. data/vendor/assets/stylesheets/bootstrap/_accordion.scss +28 -0
  257. data/vendor/assets/stylesheets/bootstrap/_alerts.scss +70 -0
  258. data/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +22 -0
  259. data/vendor/assets/stylesheets/bootstrap/_button-groups.scss +147 -0
  260. data/vendor/assets/stylesheets/bootstrap/_buttons.scss +183 -0
  261. data/vendor/assets/stylesheets/bootstrap/_carousel.scss +121 -0
  262. data/vendor/assets/stylesheets/bootstrap/_close.scss +18 -0
  263. data/vendor/assets/stylesheets/bootstrap/_code.scss +57 -0
  264. data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +18 -0
  265. data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +130 -0
  266. data/vendor/assets/stylesheets/bootstrap/_forms.scss +522 -0
  267. data/vendor/assets/stylesheets/bootstrap/_grid.scss +8 -0
  268. data/vendor/assets/stylesheets/bootstrap/_hero-unit.scss +20 -0
  269. data/vendor/assets/stylesheets/bootstrap/_labels.scss +32 -0
  270. data/vendor/assets/stylesheets/bootstrap/_layouts.scss +17 -0
  271. data/vendor/assets/stylesheets/bootstrap/_mixins.scss +602 -0
  272. data/vendor/assets/stylesheets/bootstrap/_modals.scss +84 -0
  273. data/vendor/assets/stylesheets/bootstrap/_navbar.scss +299 -0
  274. data/vendor/assets/stylesheets/bootstrap/_navs.scss +353 -0
  275. data/vendor/assets/stylesheets/bootstrap/_pager.scss +30 -0
  276. data/vendor/assets/stylesheets/bootstrap/_pagination.scss +55 -0
  277. data/vendor/assets/stylesheets/bootstrap/_popovers.scss +49 -0
  278. data/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +95 -0
  279. data/vendor/assets/stylesheets/bootstrap/_reset.scss +126 -0
  280. data/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +33 -0
  281. data/vendor/assets/stylesheets/bootstrap/_sprites.scss +158 -0
  282. data/vendor/assets/stylesheets/bootstrap/_tables.scss +150 -0
  283. data/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +35 -0
  284. data/vendor/assets/stylesheets/bootstrap/_tooltip.scss +35 -0
  285. data/vendor/assets/stylesheets/bootstrap/_type.scss +218 -0
  286. data/vendor/assets/stylesheets/bootstrap/_utilities.scss +23 -0
  287. data/vendor/assets/stylesheets/bootstrap/_variables.scss +107 -0
  288. data/vendor/assets/stylesheets/bootstrap/_wells.scss +17 -0
  289. data/vendor/assets/stylesheets/bootstrap/bootstrap.scss +66 -0
  290. data/vendor/assets/stylesheets/bootstrap/responsive.scss +334 -0
  291. metadata +506 -0
@@ -0,0 +1,58 @@
1
+ - breadcrumb_for_application @application, 'Add a Cartridge'
2
+ - content_for :page_title, 'Next Steps'
3
+
4
+ - if @wizard
5
+ = cartridge_wizard_steps_create 2, :completed => true
6
+ %h1.invisible Next Steps
7
+ - else
8
+ %h1 Next Steps
9
+
10
+ = flashes
11
+
12
+ .row
13
+ .span7
14
+ -# client
15
+ %h2 Managing your cartridge
16
+ %p
17
+ Most of the capabilities of OpenShift are exposed through our command line tool, <code>rhc</code>.
18
+ Whether it's adding cartridges, checking uptime, or pulling log files from
19
+ the server, you can quickly put a finger on the pulse of your application.
20
+ #{link_to "Follow these steps to install the client", getting_started_path(:anchor => 'install_client_tools')}
21
+ on Linux, Mac OS X, or Windows.
22
+
23
+ %p
24
+ You can get a list of cartridges by running
25
+
26
+ %pre.cli
27
+ = preserve do
28
+ :escaped
29
+ rhc app cartridge list
30
+ %p
31
+ You can manage the cartridge by running one of these commands
32
+ %pre.cli
33
+ = preserve do
34
+ :escaped
35
+ rhc app cartridge start -a #{@application.name} -c #{@cartridge.name}
36
+ rhc app cartridge stop -a #{@application.name} -c #{@cartridge.name}
37
+ rhc app cartridge restart -a #{@application.name} -c #{@cartridge.name}
38
+ rhc app cartridge reload -a #{@application.name} -c #{@cartridge.name}
39
+ rhc app cartridge status -a #{@application.name} -c #{@cartridge.name}
40
+
41
+ %p
42
+ You can remove the cartridge by running the following command.
43
+ .warning
44
+ Warning: make sure you've backed up any data you wish to keep before running this command
45
+ %pre.cli
46
+ = preserve do
47
+ :escaped
48
+ rhc app cartridge remove -a #{@application.name} -c #{@cartridge.name}
49
+
50
+ .span5
51
+ %h2 Cartridge info
52
+ = render :partial => @cartridge_type, :locals => {:hide_link => true, :extra_info => true}
53
+
54
+ %h2 Accessing your application
55
+ %p
56
+ The
57
+ = link_to "application overview page", application_path(@application)
58
+ provides a summary of your application and its cartridges.
@@ -0,0 +1 @@
1
+ = @cartridge.name
@@ -0,0 +1,58 @@
1
+ :css
2
+ #not_found {
3
+ min-height: 450px;
4
+ background-image:
5
+ url('/app/images/panda404_400.png');
6
+ background-position:
7
+ center top;
8
+ background-repeat:
9
+ no-repeat;
10
+ }
11
+ @media (max-width: 479px) {
12
+ #not_found {
13
+ background-image:
14
+ url('/app/images/panda404_250.png');
15
+ background-position:
16
+ center top;
17
+ min-height: 335px;
18
+ }
19
+ }
20
+ @media (min-width: 480px) and (max-width: 767px) {
21
+ #not_found {
22
+ background-image:
23
+ url('/app/images/panda404_300.png');
24
+ background-position:
25
+ center top;
26
+ min-height: 400px;
27
+ }
28
+ }
29
+ @media (min-width: 768px) and (max-width: 979px) {
30
+ #not_found {
31
+ background-image:
32
+ url('/app/images/panda404_350.png');
33
+ }
34
+ }
35
+
36
+ h1 span {
37
+ font-size: 16px;
38
+ color: #888;
39
+ color: rgb(136, 136, 136);
40
+ text-shadow: none;
41
+ }
42
+
43
+ - content_for :page_title, @message || "An error occurred"
44
+
45
+ %h1= @message || "An error has occurred"
46
+
47
+ %p You can try <a href="javascript:window.location.reload();">refreshing the page</a>, if the problem is temporary.
48
+
49
+ %p You can also try the following:
50
+
51
+ %ul.spaced-items
52
+ %li Seek assistance in the #{link_to "support forum", forums_url}.
53
+ %li Join #{link_to "IRC channel #openshift", irc_web_url } on Freenode.
54
+ %li If you are experiencing a repeatable error not related to a service outage, #{link_to "report it as a bug", open_bug_url }.
55
+
56
+ - if @reference_id
57
+ %p.error-reference Reference ##{@reference_id}
58
+
@@ -0,0 +1,90 @@
1
+ :css
2
+ .row-help a { font-weight: bold; }
3
+ -#:css
4
+ .row-help > .span3 {
5
+ position: relative;
6
+ }
7
+ .row-help > .span3 > h2:after {
8
+ content: ' ';
9
+ position: absolute;
10
+ right: -10px;
11
+ top: 0;
12
+ border-color: transparent #C83423;
13
+ border-style: solid;
14
+ border-width: 0 0 36px 10px;
15
+ }
16
+ .row-help > .span3 > h2:before {
17
+ content: ' ';
18
+ position: absolute;
19
+ left: -18px;
20
+ top: 0;
21
+ width: 10px;
22
+ border-color: #C83423 transparent;
23
+ border-style: solid;
24
+ border-width: 0 0 36px 10px;
25
+ }
26
+ .row-help > .span3 > h2 {
27
+ border-color: #C83423;
28
+ background-color: #C83423;
29
+ }
30
+ .row-help > .span3:first-child > h2:before {
31
+ border-left: 10px;
32
+ left: -10px;
33
+ border-color: #C83423;
34
+ }
35
+
36
+ %section.row.row-help
37
+ .span3
38
+ %h2 Create
39
+ %p
40
+ %strong Just starting with OpenShift?
41
+ %p Get your first application up off the ground through the application creation wizard.
42
+ %p #{link_to 'Create an app now', application_types_path, :class => 'btn btn-primary'}
43
+ %p If you prefer the command line, #{link_to 'our Getting Started page', getting_started_path} will help you install the client tools, create your application, and make your first change.
44
+ %p
45
+ Our #{link_to 'Get Started Fast page', developers_get_started_fast_url} has tutorials for creating apps based many different technologies like
46
+ #{link_to 'Drupal', openshift_github_project_url('drupal-example')},
47
+ #{link_to 'Ruby on Rails', openshift_github_project_url('rails-example')}, and
48
+ #{link_to 'Wordpress', openshift_github_project_url('wordpress-example')}. If you don't see your favorite framework, #{link_to 'let us know', mailto_openshift_url}.
49
+
50
+ .span3
51
+ %h2 Learn
52
+ %p
53
+ %strong Want to explore our platform?
54
+ %p #{link_to 'The Developer Center', developers_url} is the first destination for new developers to find the information you need about OpenShift.
55
+ %p When you're looking for a great reference for understanding OpenShift, look no further than the #{link_to 'the User Guide', user_guide_url}. It covers the entire experience and can be downloaded as HTML or PDF when you're on the go.
56
+ %p Our technology highlight pages bring together what you need to know - #{link_to 'JBoss', jboss_resources_url} and #{link_to 'MongoDB', mongodb_resources_url} are up now, with more to come.
57
+ %p For some great technology dives #{link_to 'see our Videos page', videos_url}.
58
+ -# Some of our favorites are below.
59
+
60
+ .span3
61
+ %h2 Troubleshoot
62
+ %p
63
+ %strong Hit a bump in the road?
64
+ %p Our #{link_to 'community forum', post_to_forum_url} is watched round the clock by an army of developers, evangelists, and OpenShift devotees.
65
+ %form.form-search{:method => 'get', :action => community_search_url}
66
+ %input.span3.search-query{:name => 'keys', :placeholder => 'Search the forums'}
67
+ %button.search{:type => 'submit', :value => 'Search'}
68
+ %p Check out the #{link_to 'Knowledge Base', knowledge_base_url} for known headaches and #{link_to 'FAQ', faq_url} for more general questions
69
+ %p Talk directly to the team on IRC - #{link_to 'freenode.net on channel #openshift', irc_web_url}.
70
+
71
+ .span3
72
+ %h2 Engage
73
+ %p
74
+ %strong Need to know what's new?
75
+ %p The OpenShift newsletter is a great way to track the latest news.
76
+ %p #{link_to 'Subscribe today', newsletter_signup_url, :class => 'btn btn-primary'}
77
+ %p OpenShift is #{link_to "powered by open source ", opensource_community_url} and can be #{link_to "run on your laptop", opensource_download_path}. #{link_to "Get involved today", get_involved_url} and help drive our evolution.
78
+ %p Follow us on Twitter at #{link_to '@openshift', openshift_twitter_url} or read the #{link_to 'OpenShift blog', openshift_blog_url}.
79
+ %p If you've found a real humdinger of a problem with the console, site, or community - #{link_to 'file a bug', open_bug_url, :target => '_blank' } and we'll try to make it right.
80
+
81
+ -#%section.row
82
+ .span12
83
+ %h2 Videos
84
+ %ul.thumbnails
85
+ %li.span3
86
+ .thumbnail
87
+ %h5 Product Tour
88
+ = link_to 'video1' do
89
+ %img{:src => '/app/images/video_stills/OpenShift-Express-demo.png'}
90
+ %p This video walks you through the high level functionality of OpenShift Express, from installing the client tools, creating a subdomain to deploying your app onto the cloud.
@@ -0,0 +1,69 @@
1
+ :css
2
+ #not_found {
3
+ min-height: 450px;
4
+ background-image:
5
+ url('/app/images/panda404_400.png');
6
+ background-position:
7
+ center top;
8
+ background-repeat:
9
+ no-repeat;
10
+ }
11
+ @media (max-width: 479px) {
12
+ #not_found {
13
+ background-image:
14
+ url('/app/images/panda404_250.png');
15
+ background-position:
16
+ center top;
17
+ min-height: 335px;
18
+ }
19
+ }
20
+ @media (min-width: 480px) and (max-width: 767px) {
21
+ #not_found {
22
+ background-image:
23
+ url('/app/images/panda404_300.png');
24
+ background-position:
25
+ center top;
26
+ min-height: 400px;
27
+ }
28
+ }
29
+ @media (min-width: 768px) and (max-width: 979px) {
30
+ #not_found {
31
+ background-image:
32
+ url('/app/images/panda404_350.png');
33
+ }
34
+ }
35
+
36
+ h1 span {
37
+ font-size: 16px;
38
+ color: #888;
39
+ color: rgb(136, 136, 136);
40
+ text-shadow: none;
41
+ }
42
+
43
+ - content_for :page_title, @message || 'Page not found'
44
+
45
+ %h1= @message || 'Page not found <small>404</small>'.html_safe
46
+
47
+ %section.row
48
+ .span7
49
+ - unless @message
50
+ %h2 The page you requested was not found or may no longer exist
51
+
52
+ - if @alternatives.present?
53
+ %p Were you looking for any of the following?
54
+ %ul
55
+ - @alternatives.each do |alt|
56
+ %li= link_to alt[0], alt[1], alt[2] || {}
57
+
58
+ %ul.spaced-items
59
+ %li= link_to "Management console", console_path
60
+ %li= link_to "View your account", account_path
61
+ %li= link_to "Get help", console_help_path
62
+
63
+ %p #{link_to "Contact us", mailto_openshift_url} if you feel you have reached this page in error.
64
+
65
+ - if @reference_id
66
+ %p.error-reference Reference ##{@reference_id}
67
+
68
+ .span5
69
+ #not-found
@@ -0,0 +1,7 @@
1
+ %h1 Unauthorized
2
+
3
+ %p The console was unable to authenticate you with the OpenShift server.
4
+
5
+ %p You may need to verify that your system configuration is accurate.
6
+
7
+ %p= link_to "Return to the console", console_path
@@ -0,0 +1,14 @@
1
+ #new_domain
2
+ = semantic_form_for :domain, :url => domain_path, :simple => true, :html => {:class => 'control-group-important'} do |f|
3
+ .control-group.control-group-important
4
+ .controls
5
+ .input-prepend-append
6
+ %span.add-on-first> http://applicationname&ndash;
7
+ = f.text_field :name, :autofocus => true, :placeholder => 'Namespace', :class => "domain_name"
8
+ %span.add-on-last>= RestApi.application_domain_suffix
9
+ .row.control-group.error
10
+ #app-errors.span
11
+ .help-block Your namespace must be letters or numbers with no spaces or symbols.
12
+ .btn-toolbar
13
+ = f.submit "Save", :class => 'btn btn-primary'
14
+ = f.loading
@@ -0,0 +1,13 @@
1
+ = semantic_form_for domain, :url => domain_path, :simple => true do |f|
2
+ = f.semantic_errors :name
3
+ .control-group.control-group-important{:class => domain.errors[:name].present? || domain.errors[:namespace].present? ? 'error' : '', :id => "domain_name_group", :data => domain.errors[:name].present? || domain.errors[:namespace].present? ? {:"server-error" => 'server-error'} : {}}
4
+ .controls
5
+ .input-prepend-append
6
+ %span.add-on-first> http://applicationname&ndash;
7
+ = f.text_field :name, :autofocus => true, :placeholder => 'Namespace', :class => 'domain_name'
8
+ %span.add-on-last>= RestApi.application_domain_suffix
9
+ .help-block Your namespace must be letters or numbers with no spaces or symbols.
10
+ = f.buttons do
11
+ = link_to "Cancel", account_path, :class => 'btn'
12
+ = f.commit_button :label => domain.persisted? ? 'Save' : 'Create'
13
+ = f.loading
@@ -0,0 +1,5 @@
1
+ %h1 Change your namespace
2
+ .alert.alert-warning
3
+ %strong Warning
4
+ Changing your namespace will alter the public URLs of your applications. If you change your namespace you will need to update any bookmarks or external links to your applications.
5
+ = render :partial => 'form', :locals => { :domain => @domain }
@@ -0,0 +1,6 @@
1
+ %h1 Set your namespace
2
+ %p
3
+ Your namespace is unique to your account and is the suffix of the public URLs we assign to your applications.
4
+ See #{link_to 'the User Guide', add_domains_user_guide_topic_url}
5
+ for information about adding your own domain names to an application.
6
+ = render :partial => 'form', :locals => { :domain => @domain }
@@ -0,0 +1,14 @@
1
+ - input_html = defined?(input_class) ? { :class => input_class } : {}
2
+
3
+ = semantic_form_for key, :html => {:class => 'form-horizontal'} do |f|
4
+ = f.semantic_errors
5
+ = f.inputs do
6
+ = f.input :name, :label => 'Key name', :input_html => {:placeholder => 'A name for your key'}
7
+ = f.input :raw_content,
8
+ :as => :text,
9
+ :label => 'Paste the contents of your public key file',
10
+ :input_html => input_html.merge({:placeholder => 'The contents of your public key file', :title => "Your SSH key will start with a short prefix that describes its type, followed by a long string of numbers and characters. Some keys have a bit of text at the end to describe who generated the key. Example:\n\nssh-rsa AAAAB3NzaC1yc....HcLJ bob@smith"})
11
+ = f.buttons do
12
+ = link_to "Cancel", account_path, :class => 'btn'
13
+ = f.commit_button :label => 'Create'
14
+ = f.loading
@@ -0,0 +1,14 @@
1
+ - input_html = { :class => input_class } if defined? input_class
2
+
3
+ = semantic_form_for key, :simple => true do |f|
4
+ = f.semantic_errors
5
+ = f.inputs do
6
+ = f.hidden_field :name, :value => 'default'
7
+ = f.hidden_field :first, :name => 'first', :value => true
8
+ = f.input :raw_content,
9
+ :as => :text,
10
+ :label => 'Paste the contents of your public key file (.pub)',
11
+ :input_html => input_html.merge({:placeholder => 'The contents of your public key file', :title => "Your SSH key will start with a short prefix that describes its type, followed by a long string of numbers and characters. Some keys have a bit of text at the end to describe who generated the key. Example:\n\nssh-rsa AAAAB3NzaC1yc....HcLJ bob@smith"})
12
+ = f.buttons do
13
+ = f.commit_button :label => 'Save', :button_html => { :class => 'btn btn-primary' }
14
+ = f.loading
@@ -0,0 +1,2 @@
1
+ %h1 Add a public key
2
+ = render :partial => 'keys/form', :locals => {:key => @key, :first => @first}
@@ -0,0 +1,38 @@
1
+ #footer-nav
2
+ .container
3
+ .row
4
+ %nav.span4
5
+ %header
6
+ %h3= link_to 'Developers', developers_url
7
+ %ul.unstyled
8
+ %li= link_to 'Get Started', getting_started_path
9
+ %li= link_to 'User Guide', user_guide_url
10
+ %li= link_to 'FAQ', faq_url
11
+ %li= link_to 'Ask on StackOverflow', stack_overflow_url
12
+
13
+ %nav.span4
14
+ %header
15
+ %h3= link_to 'Community', community_url
16
+ %ul.unstyled
17
+ %li= link_to 'Blog', openshift_blog_url
18
+ %li= link_to 'Forum', forums_url
19
+ %li= link_to 'IRC Channel', irc_web_url
20
+ %li= link_to 'Feedback', mailto_openshift_url
21
+
22
+ %nav.span4
23
+ %header
24
+ %h3= link_to 'OpenShift Origin', opensource_community_url
25
+ %ul.unstyled
26
+ %li= link_to 'Get the Source', opensource_download_url
27
+ %li= link_to 'Community Process', opensource_process_url
28
+ %li= link_to 'Make it Better', opensource_architecture_url
29
+ %li= link_to 'OpenShift on GitHub', openshift_github_url
30
+
31
+ %section#copyright
32
+ .container
33
+ Source code for the OpenShift Origin management console is
34
+ #{link_to "available on Github", openshift_github_project_url('origin-server/tree/master/console')}. See
35
+ #{link_to "README.md", openshift_github_project_url('origin-server/blob/master/README.md')}
36
+ for copyright and source information. OpenShift, OpenShift Origin and the OpenShift Logo are
37
+ trademarks of Red Hat, Inc.
38
+
@@ -0,0 +1,35 @@
1
+ %meta{ :charset => "utf-8" }/
2
+
3
+ -# Always force latest IE rendering engine (even in intranet) & Chrome Frame
4
+ -# Remove this if you use the .htaccess
5
+ %meta{ "http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1" }/
6
+
7
+ -# Allow views to modify title if desired
8
+ %title
9
+ - if content_for? :page_title
10
+ = yield :page_title
11
+ |
12
+ - elsif content_for? :title
13
+ = yield :title
14
+ |
15
+ = product_title
16
+
17
+ -#%meta{ :name => "description", :content => "" }/
18
+ -#%meta{ :name => "author", :content => "" }/
19
+
20
+ -# Mobile viewport optimized: j.mp/bplateviewport
21
+ %meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }/
22
+
23
+ %link{ :rel => "shortcut icon", :type => "image/png", :href => image_path('favicon-32.png') }
24
+
25
+ -# Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons
26
+
27
+ -# Pass in a stylesheet_partial to render inside your head
28
+ - if local_assigns[:stylesheet_partial]
29
+ = render :partial => local_assigns[:stylesheet_partial]
30
+
31
+ -# All JavaScript at the bottom, except for Modernizr and Respond.
32
+ -# Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
33
+ = javascript_include_tag 'modernizr.min'
34
+
35
+ = csrf_meta_tag