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
Boxiang Sun
gitlab-ce
Commits
15909d64
Commit
15909d64
authored
May 08, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move project visibility from clone bar to repository details block for non empty project.
parent
d9b6b920
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/views/projects/_aside.html.haml
app/views/projects/_aside.html.haml
+3
-1
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+1
-1
No files found.
app/views/projects/_aside.html.haml
View file @
15909d64
...
...
@@ -4,7 +4,9 @@
-
unless
@project
.
empty_repo?
.well
%h4
Repository
%h4
.visibility-level-label
=
visibility_level_icon
(
@project
.
visibility_level
)
=
"
#{
visibility_level_label
(
@project
.
visibility_level
).
capitalize
}
project"
%ul
.nav.nav-pills
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
branch_names
.
count
),
'branch'
),
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
...
...
app/views/shared/_clone_panel.html.haml
View file @
15909d64
...
...
@@ -18,7 +18,7 @@
:"data-container"
=>
"body"
}
=
gitlab_config
.
protocol
.
upcase
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"js-select-on-focus form-control input-sm"
,
readonly:
true
-
if
project
.
kind_of?
(
Project
)
-
if
project
.
kind_of?
(
Project
)
&&
project
.
empty_repo?
.input-group-addon
.visibility-level-label.has_tooltip
{
'data-title'
=>
"#{visibility_level_label(project.visibility_level)} project"
}
=
visibility_level_icon
(
project
.
visibility_level
)
...
...
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