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
470bba5c
Commit
470bba5c
authored
Mar 24, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move issue and milestone counts to sidebar
parent
9023526c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
17 deletions
+39
-17
app/views/shared/milestones/_sidebar.html.haml
app/views/shared/milestones/_sidebar.html.haml
+39
-0
app/views/shared/milestones/_summary.html.haml
app/views/shared/milestones/_summary.html.haml
+0
-17
No files found.
app/views/shared/milestones/_sidebar.html.haml
View file @
470bba5c
...
...
@@ -31,6 +31,45 @@
=
surround
'('
,
')'
do
%span
.remaining-days
=
remaining_days
-
if
!
project
||
can?
(
current_user
,
:read_issue
,
project
)
.block
.sidebar-collapsed-icon
%strong
=
icon
(
'hashtag'
,
'aria-hidden'
:
'true'
)
%span
=
milestone
.
issues_visible_to_user
(
current_user
).
size
.title.hide-collapsed
Issues
%span
.badge
=
milestone
.
issues_visible_to_user
(
current_user
).
size
-
if
project
&&
can?
(
current_user
,
:create_issue
,
project
)
=
link_to
new_namespace_project_issue_path
(
project
.
namespace
,
project
,
issue:
{
milestone_id:
milestone
.
id
}),
class:
"pull-right"
,
title:
"New Issue"
do
New issue
.value.hide-collapsed
%span
.milestone-stat
Open:
=
milestone
.
issues_visible_to_user
(
current_user
).
opened
.
size
%span
.milestone-stat
Closed:
=
milestone
.
issues_visible_to_user
(
current_user
).
closed
.
size
.block
.sidebar-collapsed-icon
%strong
=
icon
(
'exclamation'
,
'aria-hidden'
:
'true'
)
%span
=
milestone
.
issues_visible_to_user
(
current_user
).
size
.title.hide-collapsed
Merge requests
%span
.badge
=
milestone
.
merge_requests
.
size
.value.hide-collapsed
%span
.milestone-stat
Open:
=
milestone
.
merge_requests
.
opened
.
size
%span
.milestone-stat
Closed:
=
milestone
.
merge_requests
.
closed
.
size
%span
.milestone-stat
Merged:
=
milestone
.
merge_requests
.
merged
.
size
-
milestone_ref
=
milestone
.
try
(
:to_reference
,
full:
true
)
-
if
milestone_ref
.
present?
.block
...
...
app/views/shared/milestones/_summary.html.haml
View file @
470bba5c
...
...
@@ -6,23 +6,6 @@
.milestone-stats-and-buttons
.milestone-stats
-
if
!
project
||
can?
(
current_user
,
:read_issue
,
project
)
%span
.milestone-stat.with-drilldown
%strong
=
milestone
.
issues_visible_to_user
(
current_user
).
size
issues:
%span
.milestone-stat
%strong
=
milestone
.
issues_visible_to_user
(
current_user
).
opened
.
size
open and
%strong
=
milestone
.
issues_visible_to_user
(
current_user
).
closed
.
size
closed
%span
.milestone-stat.with-drilldown
%strong
=
milestone
.
merge_requests
.
size
merge requests:
%span
.milestone-stat
%strong
=
milestone
.
merge_requests
.
opened
.
size
open and
%strong
=
milestone
.
merge_requests
.
merged
.
size
merged
%span
.milestone-stat
%strong
==
#{
milestone
.
percent_complete
(
current_user
)
}
%
complete
...
...
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