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
56a17a77
Commit
56a17a77
authored
Jun 02, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put project Files and Commits tabs under Code tab
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
ae5f17ae
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
17 deletions
+16
-17
CHANGELOG
CHANGELOG
+1
-0
branches_controller.rb
app/controllers/projects/branches_controller.rb
+1
-1
_project.html.haml
app/views/layouts/nav/_project.html.haml
+9
-10
destroy.js.haml
app/views/projects/branches/destroy.js.haml
+0
-1
_head.html.haml
app/views/projects/commits/_head.html.haml
+4
-4
destroy.js.haml
app/views/projects/tags/destroy.js.haml
+0
-1
show.html.haml
app/views/projects/tree/show.html.haml
+1
-0
No files found.
CHANGELOG
View file @
56a17a77
...
@@ -32,6 +32,7 @@ v 8.9.0 (unreleased)
...
@@ -32,6 +32,7 @@ v 8.9.0 (unreleased)
- Cache project build count in sidebar nav
- Cache project build count in sidebar nav
- Reduce number of queries needed to render issue labels in the sidebar
- Reduce number of queries needed to render issue labels in the sidebar
- Improve error handling importing projects
- Improve error handling importing projects
- Put project Files and Commits tabs under Code tab
v 8.8.3
v 8.8.3
- Fix 404 page when viewing TODOs that contain milestones or labels in different projects. !4312
- Fix 404 page when viewing TODOs that contain milestones or labels in different projects. !4312
...
...
app/controllers/projects/branches_controller.rb
View file @
56a17a77
...
@@ -50,7 +50,7 @@ class Projects::BranchesController < Projects::ApplicationController
...
@@ -50,7 +50,7 @@ class Projects::BranchesController < Projects::ApplicationController
redirect_to
namespace_project_branches_path
(
@project
.
namespace
,
redirect_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
),
status:
303
@project
),
status:
303
end
end
format
.
js
{
render
status:
status
[
:return_code
]
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/views/layouts/nav/_project.html.haml
View file @
56a17a77
...
@@ -33,18 +33,11 @@
...
@@ -33,18 +33,11 @@
%span
%span
Activity
Activity
-
if
project_nav_tab?
:files
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file)
)
do
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file
commit commits compare repositories tags branches releases network
)
)
do
=
link_to
project_files_path
(
@project
),
title:
'Files'
,
class:
'shortcuts-tree'
do
=
link_to
project_files_path
(
@project
),
title:
'Files'
,
class:
'shortcuts-tree'
do
=
icon
(
'
files-o
fw'
)
=
icon
(
'
code
fw'
)
%span
%span
Files
Code
-
if
project_nav_tab?
:commits
=
nav_link
(
controller:
%w(commit commits compare repositories tags branches releases network)
)
do
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
=
icon
(
'history fw'
)
%span
Commits
-
if
project_nav_tab?
:pipelines
-
if
project_nav_tab?
:pipelines
=
nav_link
(
controller: :pipelines
)
do
=
nav_link
(
controller: :pipelines
)
do
...
@@ -129,4 +122,10 @@
...
@@ -129,4 +122,10 @@
=
link_to
project_builds_path
(
@project
),
title:
'Builds'
,
class:
'shortcuts-builds'
do
=
link_to
project_builds_path
(
@project
),
title:
'Builds'
,
class:
'shortcuts-builds'
do
Builds
Builds
-# Shortcut to commits page
-
if
project_nav_tab?
:commits
%li
.hidden
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
Commits
.fade-right
.fade-right
app/views/projects/branches/destroy.js.haml
deleted
100644 → 0
View file @
ae5f17ae
$('.js-totalbranch-count').html("
#{
@repository
.
branch_count
}
")
app/views/projects/commits/_head.html.haml
View file @
56a17a77
%ul
.nav-links
%ul
.nav-links
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file)
)
do
=
link_to
project_files_path
(
@project
)
do
Files
=
nav_link
(
controller:
[
:commit
,
:commits
])
do
=
nav_link
(
controller:
[
:commit
,
:commits
])
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
Commits
Commits
%span
.badge
=
number_with_delimiter
(
@repository
.
commit_count
)
=
nav_link
(
controller:
%w(network)
)
do
=
nav_link
(
controller:
%w(network)
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
...
@@ -16,9 +18,7 @@
...
@@ -16,9 +18,7 @@
=
nav_link
(
html_options:
{
class:
branches_tab_class
})
do
=
nav_link
(
html_options:
{
class:
branches_tab_class
})
do
=
link_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
do
Branches
Branches
%span
.badge.js-totalbranch-count
=
@repository
.
branch_count
=
nav_link
(
controller:
[
:tags
,
:releases
])
do
=
nav_link
(
controller:
[
:tags
,
:releases
])
do
=
link_to
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
do
Tags
Tags
%span
.badge.js-totaltags-count
=
@repository
.
tag_count
app/views/projects/tags/destroy.js.haml
View file @
56a17a77
$('.js-totaltags-count').html("
#{
@repository
.
tags
.
size
}
");
-
if
@repository
.
tags
.
empty?
-
if
@repository
.
tags
.
empty?
$('.tags').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000)
$('.tags').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000)
app/views/projects/tree/show.html.haml
View file @
56a17a77
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
-
if
current_user
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
=
render
'projects/last_push'
=
render
'projects/last_push'
=
render
"projects/commits/head"
.tree-controls
.tree-controls
=
render
'projects/find_file_link'
=
render
'projects/find_file_link'
...
...
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