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
Kazuhiko Shiozaki
gitlab-ce
Commits
9b572805
Commit
9b572805
authored
Feb 13, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle issue/mr top filters for list
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
67798492
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
154 additions
and
141 deletions
+154
-141
app/assets/stylesheets/generic/common.scss
app/assets/stylesheets/generic/common.scss
+1
-0
app/assets/stylesheets/sections/issues.scss
app/assets/stylesheets/sections/issues.scss
+22
-7
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+2
-2
app/views/projects/issues/_head.html.haml
app/views/projects/issues/_head.html.haml
+2
-2
app/views/projects/issues/_issues.html.haml
app/views/projects/issues/_issues.html.haml
+78
-79
app/views/projects/merge_requests/index.html.haml
app/views/projects/merge_requests/index.html.haml
+48
-50
app/views/shared/_sort_dropdown.html.haml
app/views/shared/_sort_dropdown.html.haml
+1
-1
No files found.
app/assets/stylesheets/generic/common.scss
View file @
9b572805
...
...
@@ -112,6 +112,7 @@ pre.well-pre {
.dropdown-menu
>
li
>
a
:hover
,
.dropdown-menu
>
li
>
a
:focus
{
background
:
#29b
;
color
:
#FFF
}
.breadcrumb
>
li
+
li
:before
{
...
...
app/assets/stylesheets/sections/issues.scss
View file @
9b572805
...
...
@@ -14,8 +14,8 @@
.issue-check
{
float
:
left
;
padding
:
8px
0
;
padding-right
:
8px
;
margin-bottom
:
10px
;
min-width
:
15px
;
}
...
...
@@ -38,13 +38,21 @@
}
}
input
.check_all_issues
{
.check-all-holder
{
height
:
32px
;
float
:
left
;
margin-right
:
12px
;
padding
:
6px
10px
;
border
:
1px
solid
#ccc
;
@include
border-radius
(
4px
);
input
.check_all_issues
{
padding
:
0
;
margin
:
0
;
margin-right
:
10px
;
position
:
relative
;
top
:
13px
;
top
:
3px
;
}
}
.issues_content
{
...
...
@@ -91,6 +99,13 @@ input.check_all_issues {
.update_selected_issues
{
margin-left
:
4px
;
}
.select2-container
.select2-choice
{
height
:
32px
;
line-height
:
28px
;
color
:
#444
!
important
;
font-weight
:
500
;
}
}
}
...
...
app/helpers/issues_helper.rb
View file @
9b572805
...
...
@@ -70,11 +70,11 @@ module IssuesHelper
end
def
bulk_update_milestone_options
options_for_select
([
"None (backlog)"
,
nil
])
+
options_from_collection_for_select
(
project_active_milestones
,
"id"
,
"title"
,
params
[
:milestone_id
])
options_for_select
([
"None (backlog)"
])
+
options_from_collection_for_select
(
project_active_milestones
,
"id"
,
"title"
,
params
[
:milestone_id
])
end
def
bulk_update_assignee_options
options_for_select
([
"None (unassigned)"
,
nil
])
+
options_from_collection_for_select
(
@project
.
team
.
members
,
"id"
,
"name"
,
params
[
:assignee_id
])
options_for_select
([
"None (unassigned)"
])
+
options_from_collection_for_select
(
@project
.
team
.
members
,
"id"
,
"name"
,
params
[
:assignee_id
])
end
def
assignee_options
object
...
...
app/views/projects/issues/_head.html.haml
View file @
9b572805
...
...
@@ -17,10 +17,10 @@
%li
.pull-right
.pull-right
=
form_tag
project_issues_path
(
@project
),
method: :get
,
id:
"issue_search_form"
,
class:
'
inline
issue-search-form'
do
=
form_tag
project_issues_path
(
@project
),
method: :get
,
id:
"issue_search_form"
,
class:
'
pull-left
issue-search-form'
do
.append-right-10.hidden-xs.hidden-sm
=
search_field_tag
:issue_search
,
nil
,
{
placeholder:
'Filter by title or description'
,
class:
'form-control issue_search search-text-input input-mn-300'
}
-
if
can?
current_user
,
:write_issue
,
@project
=
link_to
new_project_issue_path
(
@project
,
issue:
{
assignee_id:
params
[
:assignee_id
],
milestone_id:
params
[
:milestone_id
]}),
class:
"btn btn-new"
,
title:
"New Issue"
,
id:
"new_issue_link"
do
=
link_to
new_project_issue_path
(
@project
,
issue:
{
assignee_id:
params
[
:assignee_id
],
milestone_id:
params
[
:milestone_id
]}),
class:
"btn btn-new
pull-left
"
,
title:
"New Issue"
,
id:
"new_issue_link"
do
%i
.icon-plus
New Issue
app/views/projects/issues/_issues.html.haml
View file @
9b572805
.
ui-box
.
title
.
append-bottom-10
.
check-all-holder
=
check_box_tag
"check_all_issues"
,
nil
,
false
,
class:
"check_all_issues left"
.clearfix
.issues_bulk_update.hide
=
form_tag
bulk_update_project_issues_path
(
@project
),
method: :post
do
%span
Update selected issues with
=
select_tag
(
'update[status]'
,
options_for_select
([
'open'
,
'closed'
]),
prompt:
"Status"
)
=
project_users_select_tag
(
'update[assignee_id]'
,
placeholder:
'Assignee'
)
=
select_tag
(
'update[milestone_id]'
,
bulk_update_milestone_options
,
prompt:
"Milestone"
)
=
hidden_field_tag
'update[issues_ids]'
,
[]
=
hidden_field_tag
:status
,
params
[
:status
]
=
button_tag
"Save"
,
class:
"btn update_selected_issues btn-small btn-save"
.issues-filters
%span
Filter by
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
.dropdown.inline
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.icon-tags
%span
.light
labels:
-
if
params
[
:label_name
].
present?
...
...
@@ -33,7 +22,7 @@
%i
.icon-tag
=
label_name
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.icon-user
%span
.light
assignee:
-
if
@assignee
.
present?
...
...
@@ -56,7 +45,7 @@
=
user
.
name
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.icon-time
%span
.light
milestone:
-
if
@milestone
.
present?
...
...
@@ -81,7 +70,17 @@
.pull-right
=
render
'shared/sort_dropdown'
.clearfix
.issues_bulk_update.hide
=
form_tag
bulk_update_project_issues_path
(
@project
),
method: :post
do
=
select_tag
(
'update[status]'
,
options_for_select
([
'Open'
,
'Closed'
]),
prompt:
"Status"
)
=
project_users_select_tag
(
'update[assignee_id]'
,
placeholder:
'Assignee'
)
=
select_tag
(
'update[milestone_id]'
,
bulk_update_milestone_options
,
prompt:
"Milestone"
)
=
hidden_field_tag
'update[issues_ids]'
,
[]
=
hidden_field_tag
:status
,
params
[
:status
]
=
button_tag
"Update issues"
,
class:
"btn update_selected_issues btn-save"
.ui-box
%ul
.well-list.issues-list
=
render
@issues
-
if
@issues
.
blank?
...
...
app/views/projects/merge_requests/index.html.haml
View file @
9b572805
...
...
@@ -10,12 +10,9 @@
.col-md-3
=
render
'shared/project_filter'
,
project_entities_path:
project_merge_requests_path
(
@project
)
.col-md-9
.ui-box
.title
.mr-filters
%span
Filter by
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
.mr-filters.append-bottom-10
.dropdown.inline
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.icon-user
%span
.light
assignee:
-
if
@assignee
.
present?
...
...
@@ -38,7 +35,7 @@
=
user
.
name
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.icon-time
%span
.light
milestone:
-
if
@milestone
.
present?
...
...
@@ -63,6 +60,7 @@
.pull-right
=
render
'shared/sort_dropdown'
.ui-box
%ul
.well-list.mr-list
=
render
@merge_requests
-
if
@merge_requests
.
blank?
...
...
app/views/shared/_sort_dropdown.html.haml
View file @
9b572805
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn
.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%span
.light
sort:
-
if
@sort
.
present?
=
@sort
...
...
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