Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
e241d1e6
Commit
e241d1e6
authored
Mar 22, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix form label for ssl requests
parent
52d8ed9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+8
-0
app/views/admin/projects/_form.html.haml
app/views/admin/projects/_form.html.haml
+1
-1
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+1
-1
No files found.
app/helpers/application_helper.rb
View file @
e241d1e6
...
...
@@ -11,6 +11,14 @@ module ApplicationHelper
true
end
def
request_protocol
request
.
ssl?
?
"https"
:
"http"
end
def
web_app_url
"
#{
request_protocol
}
://
#{
GIT_HOST
[
"host"
]
}
/"
end
def
body_class
(
default_class
=
nil
)
main
=
content_for
(
:body_class
).
blank?
?
default_class
:
...
...
app/views/admin/projects/_form.html.haml
View file @
e241d1e6
...
...
@@ -20,7 +20,7 @@
Code
.input
.input-prepend
%span
.add-on
=
"http://
#{
GIT_HOST
[
"host"
]
}
/"
%span
.add-on
=
web_app_url
=
f
.
text_field
:code
,
:placeholder
=>
"example"
-
unless
@admin_project
.
new_record?
...
...
app/views/projects/_form.html.haml
View file @
e241d1e6
...
...
@@ -19,7 +19,7 @@
Code
.input
.input-prepend
%span
.add-on
=
"http://
#{
GIT_HOST
[
"host"
]
}
/"
%span
.add-on
=
web_app_url
=
f
.
text_field
:code
,
:placeholder
=>
"example"
-
unless
@project
.
new_record?
||
@project
.
heads
.
empty?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment