Method: NginxStage::PunConfigView#restart_confirmation
- Defined in:
- lib/nginx_stage/views/pun_config_view.rb
#restart_confirmation ⇒ String
View used to confirm whether the user wants to restart the PUN to reload configuration changes
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/nginx_stage/views/pun_config_view.rb', line 93 def restart_confirmation <<-EOF.gsub("'", %q{\\\'}) <html> <head> <style> body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; color: #333; font-weight: 300; padding: 15px; } h2 { font-weight: 500; font-size: 30px; } .text-danger { color: #a94442; } .btn-danger { text-decoration: none; font-weight: 400; padding: 10px 16px; border-radius: 6px; color: #fff; background-color: #d9534f; } </style> </head> <body> <h2> App has not been initialized or does not exist </h2> <p class="text-danger"> This is the first time this app has been launched in your per-user NGINX (PUN) server. This requires a configuration change followed by a restart of your PUN server. Be sure you save all the work you are doing in other apps that have active websocket connections (i.e., Shell App) and you complete all file uploads/downloads. </p> <p> Clicking the "Initialize App" button will apply the configuration change and restart your per-user NGINX (PUN) server. </p> <a href="#{app_init_url}" class="btn-danger">Initialize App</a> </body> </html> EOF end |