Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
projects.thm.de
GitLab
Commits
36361f4e
Commit
36361f4e
authored
Aug 29, 2014
by
Dmitriy Zaporozhets
Browse files
Prevent 500 error when browse wiki page with repo access
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
d4180875
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/shared/_clone_panel.html.haml
View file @
36361f4e
...
...
@@ -4,7 +4,8 @@
%button
{
class:
"btn #{ 'active' if default_clone_protocol == 'ssh' }"
,
:"data-clone"
=>
project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn #{ 'active' if default_clone_protocol == 'http' }"
,
:"data-clone"
=>
project
.
http_url_to_repo
}=
gitlab_config
.
protocol
.
upcase
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"one_click_select form-control"
,
readonly:
true
.input-group-addon
.visibility-level-label.has_tooltip
{
'data-title'
=>
"#{visibility_level_label(project.visibility_level)} project"
}
=
visibility_level_icon
(
project
.
visibility_level
)
=
visibility_level_label
(
project
.
visibility_level
).
downcase
-
if
project
.
kind_of?
(
Project
)
.input-group-addon
.visibility-level-label.has_tooltip
{
'data-title'
=>
"#{visibility_level_label(project.visibility_level)} project"
}
=
visibility_level_icon
(
project
.
visibility_level
)
=
visibility_level_label
(
project
.
visibility_level
).
downcase
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