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
5a59712b
Commit
5a59712b
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "New X" buttons to dashboard and group issue, MR and milestone indexes
parent
09e712c0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
134 additions
and
48 deletions
+134
-48
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+24
-7
app/views/dashboard/merge_requests.html.haml
app/views/dashboard/merge_requests.html.haml
+21
-2
app/views/dashboard/milestones/index.html.haml
app/views/dashboard/milestones/index.html.haml
+17
-4
app/views/groups/issues.html.haml
app/views/groups/issues.html.haml
+26
-12
app/views/groups/merge_requests.html.haml
app/views/groups/merge_requests.html.haml
+23
-7
app/views/groups/milestones/index.html.haml
app/views/groups/milestones/index.html.haml
+14
-10
app/views/projects/milestones/index.html.haml
app/views/projects/milestones/index.html.haml
+9
-6
No files found.
app/views/dashboard/issues.html.haml
View file @
5a59712b
...
@@ -4,14 +4,31 @@
...
@@ -4,14 +4,31 @@
-
if
current_user
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
current_user
.
name
}
issues"
)
=
auto_discovery_link_tag
(
:atom
,
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
current_user
.
name
}
issues"
)
.project-issuable-filter
.controls
.pull-left
-
if
current_user
.hidden-xs.pull-left
=
link_to
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
class:
'btn'
do
%i
.fa.fa-rss
.append-bottom-20
-
if
@projects
.
any?
{
|
project
|
can?
(
current_user
,
:create_issue
,
project
)
}
.pull-right
.dropdown.inline.prepend-left-10
-
if
current_user
%button
.dropdown-toggle.btn.btn-new
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
.hidden-xs.pull-left.prepend-top-20
%i
.fa.fa-plus
=
link_to
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
class:
''
do
New Issue
%i
.fa.fa-rss
%b
.caret
%ul
.dropdown-menu.dropdown-menu-align-right
-
@projects
.
each
do
|
project
|
-
if
can?
(
current_user
,
:create_issue
,
project
)
%li
=
link_to
new_namespace_project_issue_path
(
project
.
namespace
,
project
)
do
=
project
.
name_with_namespace
=
render
'shared/issuable/filter'
,
type: :issues
=
render
'shared/issuable/filter'
,
type: :issues
=
render
'shared/issues'
.gray-content-block.second-block
List all issues from all projects you have access to.
.prepend-top-default
=
render
'shared/issues'
app/views/dashboard/merge_requests.html.haml
View file @
5a59712b
-
page_title
"Merge Requests"
-
page_title
"Merge Requests"
-
header_title
"Merge Requests"
,
merge_requests_dashboard_path
(
assignee_id:
current_user
.
id
)
-
header_title
"Merge Requests"
,
merge_requests_dashboard_path
(
assignee_id:
current_user
.
id
)
.append-bottom-20
.project-issuable-filter
.controls
-
if
@projects
.
any?
{
|
project
|
can?
(
current_user
,
:create_merge_request
,
project
)
}
.dropdown.inline
%button
.dropdown-toggle.btn.btn-new
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%i
.fa.fa-plus
New Merge Request
%b
.caret
%ul
.dropdown-menu.dropdown-menu-align-right
-
@projects
.
each
do
|
project
|
-
if
can?
(
current_user
,
:create_merge_request
,
project
)
%li
=
link_to
new_namespace_project_merge_request_path
(
project
.
namespace
,
project
)
do
=
project
.
name_with_namespace
=
render
'shared/issuable/filter'
,
type: :merge_requests
=
render
'shared/issuable/filter'
,
type: :merge_requests
=
render
'shared/merge_requests'
.gray-content-block.second-block
List all merge requests from all projects you have access to.
.prepend-top-default
=
render
'shared/merge_requests'
app/views/dashboard/milestones/index.html.haml
View file @
5a59712b
-
page_title
"Milestones"
-
page_title
"Milestones"
-
header_title
"Milestones"
,
dashboard_milestones_path
-
header_title
"Milestones"
,
dashboard_milestones_path
.project-issuable-filter
.controls
-
if
@projects
.
any?
{
|
project
|
can?
(
current_user
,
:admin_milestone
,
project
)
}
.dropdown.inline
%button
.dropdown-toggle.btn.btn-new
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%i
.fa.fa-plus
New Milestone
%b
.caret
%ul
.dropdown-menu.dropdown-menu-align-right
-
@projects
.
each
do
|
project
|
-
if
can?
(
current_user
,
:admin_milestone
,
project
)
%li
=
link_to
new_namespace_project_milestone_path
(
project
.
namespace
,
project
)
do
=
project
.
name_with_namespace
=
render
'shared/milestones_filter'
=
render
'shared/milestones_filter'
.gray-content-block
.gray-content-block
.oneline
List all milestones from all projects you have access to.
List all milestones from all projects you have access to.
.milestones
.milestones
%ul
.content-list
%ul
.content-list
...
...
app/views/groups/issues.html.haml
View file @
5a59712b
...
@@ -4,21 +4,35 @@
...
@@ -4,21 +4,35 @@
-
if
current_user
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
issues"
)
=
auto_discovery_link_tag
(
:atom
,
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
issues"
)
.project-issuable-filter
.controls
.pull-left
-
if
current_user
.hidden-xs.pull-left
=
link_to
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
class:
'btn'
do
%i
.fa.fa-rss
-
if
@projects
.
any?
{
|
project
|
can?
(
current_user
,
:create_issue
,
project
)
}
.dropdown.inline.prepend-left-10
%button
.dropdown-toggle.btn.btn-new
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%i
.fa.fa-plus
New Issue
%b
.caret
%ul
.dropdown-menu.dropdown-menu-align-right
-
@projects
.
each
do
|
project
|
-
if
can?
(
current_user
,
:create_issue
,
project
)
%li
=
link_to
new_namespace_project_issue_path
(
project
.
namespace
,
project
)
do
=
project
.
name_with_namespace
=
render
'shared/issuable/filter'
,
type: :issues
=
render
'shared/issuable/filter'
,
type: :issues
.gray-content-block.second-block
.gray-content-block.second-block
.pull-right
Only issues from
-
if
current_user
%strong
#{
@group
.
name
}
.hidden-xs.pull-left
group are listed here.
=
link_to
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
)
do
-
if
current_user
%i
.fa.fa-rss
To see all issues you should visit
#{
link_to
'dashboard'
,
issues_dashboard_path
}
page.
%div
Only issues from
%strong
#{
@group
.
name
}
group are listed here.
-
if
current_user
To see all issues you should visit
#{
link_to
'dashboard'
,
issues_dashboard_path
}
page.
.prepend-top-default
.prepend-top-default
=
render
'shared/issues'
=
render
'shared/issues'
app/views/groups/merge_requests.html.haml
View file @
5a59712b
-
page_title
"Merge Requests"
-
page_title
"Merge Requests"
-
header_title
group_title
(
@group
,
"Merge Requests"
,
merge_requests_group_path
(
@group
))
-
header_title
group_title
(
@group
,
"Merge Requests"
,
merge_requests_group_path
(
@group
))
=
render
'shared/issuable/filter'
,
type: :merge_requests
.project-issuable-filter
.controls
-
if
@projects
.
any?
{
|
project
|
can?
(
current_user
,
:create_merge_request
,
project
)
}
.dropdown.inline
%button
.dropdown-toggle.btn.btn-new
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%i
.fa.fa-plus
New Merge Request
%b
.caret
%ul
.dropdown-menu.dropdown-menu-align-right
-
@projects
.
each
do
|
project
|
-
if
can?
(
current_user
,
:create_merge_request
,
project
)
%li
=
link_to
new_namespace_project_merge_request_path
(
project
.
namespace
,
project
)
do
=
project
.
name_with_namespace
=
render
'shared/issuable/filter'
,
type: :merge_requests
.gray-content-block.second-block
.gray-content-block.second-block
%div
Only merge requests from
Only merge requests from
%strong
#{
@group
.
name
}
%strong
#{
@group
.
name
}
group are listed here.
group are listed here.
-
if
current_user
-
if
current_user
To see all merge requests you should visit
#{
link_to
'dashboard'
,
merge_requests_dashboard_path
}
page.
To see all merge requests you should visit
#{
link_to
'dashboard'
,
merge_requests_dashboard_path
}
page.
.prepend-top-default
.prepend-top-default
=
render
'shared/merge_requests'
=
render
'shared/merge_requests'
app/views/groups/milestones/index.html.haml
View file @
5a59712b
-
page_title
"Milestones"
-
page_title
"Milestones"
-
header_title
group_title
(
@group
,
"Milestones"
,
group_milestones_path
(
@group
))
-
header_title
group_title
(
@group
,
"Milestones"
,
group_milestones_path
(
@group
))
=
render
'shared/milestones_filter'
.project-issuable-filter
.controls
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
.pull-right
%span
.pull-right.hidden-xs
=
link_to
new_group_milestone_path
(
@group
),
class:
"btn btn-new"
do
=
icon
(
'plus'
)
New Milestone
=
render
'shared/milestones_filter'
.gray-content-block
.gray-content-block
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
Only milestones from
.pull-right
%strong
#{
@group
.
name
}
%span
.pull-right.hidden-xs
group are listed here.
=
link_to
new_group_milestone_path
(
@group
),
class:
"btn btn-new"
do
New Milestone
.oneline
Only milestones from
%strong
#{
@group
.
name
}
group are listed here.
.milestones
.milestones
%ul
.content-list
%ul
.content-list
-
if
@milestones
.
blank?
-
if
@milestones
.
blank?
...
...
app/views/projects/milestones/index.html.haml
View file @
5a59712b
-
page_title
"Milestones"
-
page_title
"Milestones"
=
render
"header_title"
=
render
"header_title"
=
render
'shared/milestones_filter'
.gray-content-block
.pull-right
.project-issuable-filter
-
if
can?
current_user
,
:admin_milestone
,
@project
.controls
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
=
link_to
new_namespace_project_milestone_path
(
@project
.
namespace
,
@project
),
class:
"pull-right btn btn-new"
,
title:
"New Milestone"
do
=
link_to
new_namespace_project_milestone_path
(
@project
.
namespace
,
@project
),
class:
"pull-right btn btn-new"
,
title:
"New Milestone"
do
%i
.fa.fa-plus
%i
.fa.fa-plus
New Milestone
New Milestone
.oneline
Milestone allows you to group issues and set due date for it
=
render
'shared/milestones_filter'
.gray-content-block
Milestone allows you to group issues and set due date for it
.milestones
.milestones
%ul
.content-list
%ul
.content-list
...
...
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