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
7ecd30a8
Commit
7ecd30a8
authored
Jan 27, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align Milestone's issue counter.
parent
2c31ebff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
labels.scss
app/assets/stylesheets/pages/labels.scss
+0
-4
milestone.scss
app/assets/stylesheets/pages/milestone.scss
+7
-0
show.html.haml
app/views/projects/milestones/show.html.haml
+13
-3
No files found.
app/assets/stylesheets/pages/labels.scss
View file @
7ecd30a8
...
...
@@ -19,7 +19,3 @@
.color-label
{
padding
:
3px
4px
;
}
#tab-labels
.issues-count
{
margin-left
:
30px
;
}
app/assets/stylesheets/pages/milestone.scss
View file @
7ecd30a8
...
...
@@ -35,3 +35,10 @@ li.milestone {
.milestone-stat
{
margin-right
:
10px
;
}
#tab-labels
.issues-count
{
margin-right
:
17px
;
float
:
right
;
width
:
105px
;
}
app/views/projects/milestones/show.html.haml
View file @
7ecd30a8
...
...
@@ -143,10 +143,20 @@
%small
.cgray
=
user
.
username
.tab-pane
#tab-labels
.gray-content-block.middle-block
.pull-right
-
if
can?
(
current_user
,
:create_issue
,
@project
)
=
link_to
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
issue:
{
milestone_id:
@milestone
.
id
}),
class:
"btn btn-grouped"
,
title:
"New Issue"
do
%i
.fa.fa-plus
New Issue
-
if
can?
(
current_user
,
:read_issue
,
@project
)
=
link_to
'Browse Issues'
,
namespace_project_issues_path
(
@milestone
.
project
.
namespace
,
@milestone
.
project
,
milestone_title:
@milestone
.
title
),
class:
"btn btn-grouped"
.oneline
All labels in this milestone
%ul
.bordered-list.manage-labels-list
-
@labels
.
each
do
|
label
|
%li
=
render_colored_label
(
label
)
.pull-right
%span
.issues-count
=
pluralize
label
.
open_issues_count
,
'open issue'
%span
.issues-count
=
pluralize
label
.
closed_issues_count
,
'closed issue'
%span
.issues-count
=
pluralize
label
.
open_issues_count
,
'open issue'
%span
.issues-count
=
pluralize
label
.
closed_issues_count
,
'closed issue'
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