BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
dc29b237
Commit
dc29b237
authored
Dec 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5725 from Popl7/http_repo_link_on_public_acces
Correct url to pull puplic repos anonymously on project page
parents
0da6394c
5907207e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+3
-3
public_projects.feature
features/public/public_projects.feature
+11
-0
projects_feature.rb
features/steps/public/projects_feature.rb
+10
-0
No files found.
app/views/shared/_clone_panel.html.haml
View file @
dc29b237
.git-clone-holder
%button
{
class:
"btn
active
"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}=
gitlab_config
.
protocol
.
upcase
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
,
readonly:
true
%button
{
class:
"btn
#{ current_user ? 'active' : '' }
"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn
#{ current_user ? '' : 'active' }
"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}=
gitlab_config
.
protocol
.
upcase
=
text_field_tag
:project_clone
,
(
current_user
?
@project
.
url_to_repo
:
@project
.
http_url_to_repo
)
,
class:
"one_click_select span5"
,
readonly:
true
features/public/public_projects.feature
View file @
dc29b237
...
...
@@ -38,3 +38,14 @@ Feature: Public Projects Feature
Given
I sign in as a user
When
I visit project
"Internal"
page
Then
I should see project
"Internal"
home page
Scenario
:
I
visit public project page
When
I visit project
"Community"
page
Then
I should see project
"Community"
home page
And
I should see a http link to the repository
Scenario
:
I
visit public area as user
Given
I sign in as a user
When
I visit project
"Community"
page
Then
I should see project
"Community"
home page
And
I should see a ssh link to the repository
features/steps/public/projects_feature.rb
View file @
dc29b237
...
...
@@ -83,5 +83,15 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
page
.
should
have_content
'Internal'
end
end
Then
'I should see a http link to the repository'
do
project
=
Project
.
find_by_name
'Community'
page
.
should
have_field
(
'project_clone'
,
with:
project
.
http_url_to_repo
)
end
Then
'I should see a ssh link to the repository'
do
project
=
Project
.
find_by_name
'Community'
page
.
should
have_field
(
'project_clone'
,
with:
project
.
url_to_repo
)
end
end
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