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
Léo-Paul Géneau
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
Show 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 @@
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
current_user
.
name
}
issues"
)
.append-bottom-20
.pull-righ
t
.project-issuable-filter
.controls
.pull-lef
t
-
if
current_user
.hidden-xs.pull-left.prepend-top-20
=
link_to
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
class:
'
'
do
.hidden-xs.pull-left
=
link_to
issues_dashboard_url
(
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/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"
-
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/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"
-
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
.oneline
List all milestones from all projects you have access to.
.milestones
...
...
app/views/groups/issues.html.haml
View file @
5a59712b
...
...
@@ -4,16 +4,30 @@
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
issues"
)
=
render
'shared/issuable/filter'
,
type: :issues
.gray-content-block.second-block
.pull-right
.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
)
do
=
link_to
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
class:
'btn'
do
%i
.fa.fa-rss
%div
-
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
.gray-content-block.second-block
Only issues from
%strong
#{
@group
.
name
}
group are listed here.
...
...
app/views/groups/merge_requests.html.haml
View file @
5a59712b
-
page_title
"Merge Requests"
-
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
%div
Only merge requests from
%strong
#{
@group
.
name
}
group are listed here.
-
if
current_user
To see all merge requests you should visit
#{
link_to
'dashboard'
,
merge_requests_dashboard_path
}
page.
.prepend-top-default
=
render
'shared/merge_requests'
app/views/groups/milestones/index.html.haml
View file @
5a59712b
-
page_title
"Milestones"
-
header_title
group_title
(
@group
,
"Milestones"
,
group_milestones_path
(
@group
))
=
render
'shared/milestones_filter'
.gray-content-block
.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
.oneline
=
render
'shared/milestones_filter'
.gray-content-block
Only milestones from
%strong
#{
@group
.
name
}
group are listed here.
.milestones
%ul
.content-list
-
if
@milestones
.
blank?
...
...
app/views/projects/milestones/index.html.haml
View file @
5a59712b
-
page_title
"Milestones"
=
render
"header_title"
=
render
'shared/milestones_filter'
.gray-content-block
.pull-right
-
if
can?
current_user
,
:admin_milestone
,
@project
.project-issuable-filter
.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
%i
.fa.fa-plus
New Milestone
.oneline
=
render
'shared/milestones_filter'
.gray-content-block
Milestone allows you to group issues and set due date for it
.milestones
...
...
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