Commit e241d1e6700f88ecd5aef481596fa1cc782841f0
1 parent
52d8ed9e
Exists in
master
and in
4 other branches
Fix form label for ssl requests
Showing
3 changed files
with
10 additions
and
2 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -11,6 +11,14 @@ module ApplicationHelper |
11 | 11 | true |
12 | 12 | end |
13 | 13 | |
14 | + def request_protocol | |
15 | + request.ssl? ? "https" : "http" | |
16 | + end | |
17 | + | |
18 | + def web_app_url | |
19 | + "#{request_protocol}://#{GIT_HOST["host"]}/" | |
20 | + end | |
21 | + | |
14 | 22 | def body_class(default_class = nil) |
15 | 23 | main = content_for(:body_class).blank? ? |
16 | 24 | default_class : | ... | ... |
app/views/admin/projects/_form.html.haml
app/views/projects/_form.html.haml