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
iv
gitlab-ce
Commits
f9528bfb
Commit
f9528bfb
authored
Jan 08, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a bit of restyling for issues and merge request lists
parent
b6568db1
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
149 additions
and
155 deletions
+149
-155
app/assets/images/download.png
app/assets/images/download.png
+0
-0
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+4
-28
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
+4
-0
app/assets/stylesheets/sections/issues.scss
app/assets/stylesheets/sections/issues.scss
+1
-1
app/assets/stylesheets/sections/merge_requests.scss
app/assets/stylesheets/sections/merge_requests.scss
+1
-1
app/assets/stylesheets/sections/notes.scss
app/assets/stylesheets/sections/notes.scss
+1
-1
app/views/issues/_filter.html.haml
app/views/issues/_filter.html.haml
+0
-1
app/views/issues/_issues.html.haml
app/views/issues/_issues.html.haml
+4
-6
app/views/issues/_show.html.haml
app/views/issues/_show.html.haml
+5
-4
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+1
-1
app/views/merge_requests/_filter.html.haml
app/views/merge_requests/_filter.html.haml
+20
-0
app/views/merge_requests/index.html.haml
app/views/merge_requests/index.html.haml
+21
-33
app/views/protected_branches/index.html.haml
app/views/protected_branches/index.html.haml
+51
-48
app/views/repositories/_branch.html.haml
app/views/repositories/_branch.html.haml
+1
-1
app/views/repositories/_filter.html.haml
app/views/repositories/_filter.html.haml
+3
-4
app/views/repositories/branches.html.haml
app/views/repositories/branches.html.haml
+15
-12
app/views/repositories/show.html.haml
app/views/repositories/show.html.haml
+13
-10
app/views/repositories/tags.html.haml
app/views/repositories/tags.html.haml
+1
-1
app/views/tree/blob/_download.html.haml
app/views/tree/blob/_download.html.haml
+3
-3
No files found.
app/assets/images/download.png
deleted
100644 → 0
View file @
b6568db1
674 Bytes
app/assets/stylesheets/common.scss
View file @
f9528bfb
...
@@ -117,34 +117,10 @@ span.update-author {
...
@@ -117,34 +117,10 @@ span.update-author {
}
}
.label
{
.label
{
background-color
:
#474D57
;
padding
:
0px
4px
;
font-size
:
10px
;
&
.label-tag
{
font-style
:
normal
;
background
:
none
;
background-color
:
$link_color
;
border
:
none
;
padding
:
4px
6px
;
color
:
#444
;
text-shadow
:
0
0
1px
#fff
;
&
.grouped
{
float
:
left
;
margin-right
:
6px
;
padding
:
6px
;
}
}
&
.label-issue
{
background-color
:
#eee
;
border
:
1px
solid
#ccc
;
padding
:
4px
6px
;
color
:
#444
;
text-shadow
:
0
0
1px
#fff
;
&
.grouped
{
float
:
left
;
margin-right
:
6px
;
padding
:
6px
;
}
}
&
.label-success
{
&
.label-success
{
background-color
:
#8D8
;
background-color
:
#8D8
;
...
...
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
View file @
f9528bfb
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
color
:
#333
;
color
:
#333
;
}
}
&
.btn-white
{
background
:
#FFF
;
}
&
.primary
{
&
.primary
{
background
:
#2a79A3
;
background
:
#2a79A3
;
@include
linear-gradient
(
#47A7b7
,
#2585b5
);
@include
linear-gradient
(
#47A7b7
,
#2585b5
);
...
...
app/assets/stylesheets/sections/issues.scss
View file @
f9528bfb
.issues_table
{
.issues_table
{
.issue
{
.issue
{
padding
:
7px
10px
;
padding
:
10px
;
.issue_check
{
.issue_check
{
float
:
left
;
float
:
left
;
...
...
app/assets/stylesheets/sections/merge_requests.scss
View file @
f9528bfb
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
}
}
li
.merge_request
{
li
.merge_request
{
padding
:
7px
10px
;
padding
:
10px
;
img
.avatar
{
img
.avatar
{
width
:
32px
;
width
:
32px
;
margin-top
:
1px
;
margin-top
:
1px
;
...
...
app/assets/stylesheets/sections/notes.scss
View file @
f9528bfb
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
/* Note textare */
/* Note textare */
#note_note
{
#note_note
{
height
:
80px
;
height
:
80px
;
width
:
9
9
%
;
width
:
9
8
%
;
font-size
:
14px
;
font-size
:
14px
;
}
}
...
...
app/views/issues/_filter.html.haml
View file @
f9528bfb
=
form_tag
project_issues_path
(
@project
),
method:
'get'
do
=
form_tag
project_issues_path
(
@project
),
method:
'get'
do
%fieldset
%fieldset
%legend
Status:
%ul
.nav.nav-pills.nav-stacked
%ul
.nav.nav-pills.nav-stacked
%li
{
class:
(
"active"
if
!
params
[
:status
])}
%li
{
class:
(
"active"
if
!
params
[
:status
])}
=
link_to
project_issues_path
(
@project
,
status:
nil
)
do
=
link_to
project_issues_path
(
@project
,
status:
nil
)
do
...
...
app/views/issues/_issues.html.haml
View file @
f9528bfb
...
@@ -3,12 +3,10 @@
...
@@ -3,12 +3,10 @@
-
if
@issues
.
present?
-
if
@issues
.
present?
%li
.bottom
%li
.bottom
.row
.left
=
paginate
@issues
,
remote:
true
,
theme:
"gitlab"
.span7
=
paginate
@issues
,
remote:
true
,
theme:
"gitlab"
.right
.span3.right
%span
.issue_counter
#{
@issues
.
total_count
}
%span
.cgray.right
issues for this filter
%span
.issue_counter
#{
@issues
.
total_count
}
issues for this filter
-
else
-
else
%li
%li
%h4
.nothing_here_message
Nothing to show here
%h4
.nothing_here_message
Nothing to show here
...
...
app/views/issues/_show.html.haml
View file @
f9528bfb
...
@@ -3,10 +3,6 @@
...
@@ -3,10 +3,6 @@
.issue_check
.issue_check
=
check_box_tag
dom_id
(
issue
,
"selected"
),
nil
,
false
,
'data-id'
=>
issue
.
id
,
class:
"selected_issue"
,
disabled:
!
can?
(
current_user
,
:modify_issue
,
issue
)
=
check_box_tag
dom_id
(
issue
,
"selected"
),
nil
,
false
,
'data-id'
=>
issue
.
id
,
class:
"selected_issue"
,
disabled:
!
can?
(
current_user
,
:modify_issue
,
issue
)
.right
.right
-
issue
.
labels
.
each
do
|
label
|
%span
.label.label-tag.grouped
%i
.icon-tag
=
label
.
name
-
if
issue
.
notes
.
any?
-
if
issue
.
notes
.
any?
%span
.btn.small.disabled.grouped
%span
.btn.small.disabled.grouped
%i
.icon-comment
%i
.icon-comment
...
@@ -36,3 +32,8 @@
...
@@ -36,3 +32,8 @@
-
if
issue
.
votes_count
>
0
-
if
issue
.
votes_count
>
0
=
render
'votes/votes_inline'
,
votable:
issue
=
render
'votes/votes_inline'
,
votable:
issue
%span
-
issue
.
labels
.
each
do
|
label
|
%span
.label
%i
.icon-tag
=
label
.
name
app/views/issues/show.html.haml
View file @
f9528bfb
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
.right
.right
-
@issue
.
labels
.
each
do
|
label
|
-
@issue
.
labels
.
each
do
|
label
|
%span
%span
.label
%i
.icon-tag
%i
.icon-tag
=
label
.
name
=
label
.
name
...
...
app/views/merge_requests/_filter.html.haml
0 → 100644
View file @
f9528bfb
=
form_tag
project_issues_path
(
@project
),
method:
'get'
do
%fieldset
%ul
.nav.nav-pills.nav-stacked
%li
{
class:
(
"active"
if
(
params
[
:f
]
==
'open'
||
!
params
[
:f
]))}
=
link_to
project_merge_requests_path
(
@project
,
f:
'open'
,
milestone_id:
params
[
:milestone_id
])
do
Open
%li
{
class:
(
"active"
if
params
[
:f
]
==
"closed"
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
"closed"
,
milestone_id:
params
[
:milestone_id
])
do
Closed
%li
{
class:
(
"active"
if
params
[
:f
]
==
'assigned-to-me'
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
'assigned-to-me'
,
milestone_id:
params
[
:milestone_id
])
do
Assigned To Me
%li
{
class:
(
"active"
if
params
[
:f
]
==
'all'
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
'all'
,
milestone_id:
params
[
:milestone_id
])
do
All
%fieldset
%hr
=
link_to
"Reset"
,
project_merge_requests_path
(
@project
),
class:
'btn right'
app/views/merge_requests/index.html.haml
View file @
f9528bfb
...
@@ -8,40 +8,28 @@
...
@@ -8,40 +8,28 @@
%br
%br
.ui-box
.row
.title
.span3
.left
=
render
'filter'
,
entity:
'issue'
%ul
.nav.nav-pills
.span9
%li
{
class:
(
"active"
if
(
params
[
:f
]
==
'open'
||
!
params
[
:f
]))}
.ui-box
=
link_to
project_merge_requests_path
(
@project
,
f:
'open'
,
milestone_id:
params
[
:milestone_id
])
do
.title
Open
=
form_tag
project_merge_requests_path
(
@project
),
id:
"merge_requests_search_form"
,
method: :get
,
class: :left
do
%li
{
class:
(
"active"
if
params
[
:f
]
==
"closed"
)}
=
select_tag
(
:assignee_id
,
options_from_collection_for_select
([
unassigned_filter
]
+
@project
.
users
.
all
,
"id"
,
"name"
,
params
[
:assignee_id
]),
prompt:
"Assignee"
)
=
link_to
project_merge_requests_path
(
@project
,
f:
"closed"
,
milestone_id:
params
[
:milestone_id
])
do
=
select_tag
(
:milestone_id
,
options_from_collection_for_select
([
unassigned_filter
]
+
@project
.
milestones
.
order
(
"id desc"
).
all
,
"id"
,
"title"
,
params
[
:milestone_id
]),
prompt:
"Milestone"
)
Closed
=
hidden_field_tag
:f
,
params
[
:f
]
%li
{
class:
(
"active"
if
params
[
:f
]
==
'assigned-to-me'
)}
.clearfix
=
link_to
project_merge_requests_path
(
@project
,
f:
'assigned-to-me'
,
milestone_id:
params
[
:milestone_id
])
do
To Me
%li
{
class:
(
"active"
if
params
[
:f
]
==
'all'
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
'all'
,
milestone_id:
params
[
:milestone_id
])
do
All
.right
=
form_tag
project_merge_requests_path
(
@project
),
id:
"merge_requests_search_form"
,
method: :get
,
class: :right
do
=
select_tag
(
:assignee_id
,
options_from_collection_for_select
([
unassigned_filter
]
+
@project
.
users
.
all
,
"id"
,
"name"
,
params
[
:assignee_id
]),
prompt:
"Assignee"
)
=
select_tag
(
:milestone_id
,
options_from_collection_for_select
([
unassigned_filter
]
+
@project
.
milestones
.
order
(
"id desc"
).
all
,
"id"
,
"title"
,
params
[
:milestone_id
]),
prompt:
"Milestone"
)
=
hidden_field_tag
:f
,
params
[
:f
]
.clearfix
%ul
.well-list
%ul
.well-list
=
render
@merge_requests
=
render
@merge_requests
-
if
@merge_requests
.
blank?
-
if
@merge_requests
.
blank?
%li
%li
%h4
.nothing_here_message
Nothing to show here
%h4
.nothing_here_message
Nothing to show here
-
if
@merge_requests
.
present?
-
if
@merge_requests
.
present?
%li
.bottom
%li
.bottom
.row
.left
=
paginate
@merge_requests
,
theme:
"gitlab"
.span7
=
paginate
@merge_requests
,
theme:
"gitlab"
.right
.span4.right
%span
.cgray.right
#{
@merge_requests
.
total_count
}
merge requests for this filter
%span
.cgray.right
#{
@merge_requests
.
total_count
}
merge requests for this filter
:javascript
:javascript
$
(
merge_requestsPage
);
$
(
merge_requestsPage
);
app/views/protected_branches/index.html.haml
View file @
f9528bfb
=
render
"repositories/branches_head"
=
render
"commits/head"
.row
.span3
=
render
"repositories/filter"
.span9
.alert
%p
Protected branches designed to prevent push for all except
#{
link_to
"masters"
,
help_permissions_path
,
class:
"vlink"
}
.
%p
This ability allows:
%ul
%li
keep stable branches secured
%li
forced code review before merge to protected branches
%p
Read more about project permissions
#{
link_to
"here"
,
help_permissions_path
,
class:
"vlink"
}
.aler
t
-
if
can?
current_user
,
:admin_project
,
@projec
t
%p
Protected branches designed to prevent push for all except
#{
link_to
"masters"
,
help_permissions_path
,
class:
"vlink"
}
.
=
form_for
[
@project
,
@protected_branch
]
do
|
f
|
%p
This ability allows:
-
if
@protected_branch
.
errors
.
any?
%ul
.alert-message.block-message.error
%li
keep stable branches secured
%ul
%li
forced code review before merge to protected branches
-
@protected_branch
.
errors
.
full_messages
.
each
do
|
msg
|
%p
Read more about project permissions
#{
link_to
"here"
,
help_permissions_path
,
class:
"vlink"
}
%li
=
msg
-
if
can?
current_user
,
:admin_project
,
@project
.entry.clearfix
=
form_for
[
@project
,
@protected_branch
]
do
|
f
|
=
f
.
label
:name
,
"Branch"
-
if
@protected_branch
.
errors
.
any?
.span3
.alert-message.block-message.error
=
f
.
select
(
:name
,
@project
.
open_branches
.
map
{
|
br
|
[
br
.
name
,
br
.
name
]
}
,
{
include_blank:
"Select branch"
},
{
class:
"chosen span3"
})
%ul
-
@protected_branch
.
errors
.
full_messages
.
each
do
|
msg
|
=
f
.
submit
'Protect'
,
class:
"primary btn"
%li
=
msg
.entry.clearfix
-
unless
@branches
.
empty?
=
f
.
label
:name
,
"Branch"
%table
.span3
%thead
=
f
.
select
(
:name
,
@project
.
open_branches
.
map
{
|
br
|
[
br
.
name
,
br
.
name
]
}
,
{
include_blank:
"Select branch"
},
{
class:
"chosen span3"
})
%tr
%th
Name
=
f
.
submit
'Protect'
,
class:
"primary btn"
%th
Last commit
%th
-
unless
@branches
.
empty?
%tbody
%table
-
@branches
.
each
do
|
branch
|
%thead
%tr
%tr
%td
%th
Name
=
link_to
project_commits_path
(
@project
,
branch
.
name
)
do
%th
Last commit
%strong
=
branch
.
name
%th
-
if
@project
.
root_ref?
(
branch
.
name
)
%tbody
%span
.label
default
-
@branches
.
each
do
|
branch
|
%td
%tr
-
if
branch
.
commit
%td
=
link_to
project_commit_path
(
@project
,
branch
.
commit
.
id
)
do
=
link_to
project_commits_path
(
@project
,
branch
.
name
)
do
=
truncate
branch
.
commit
.
id
.
to_s
,
length:
10
%strong
=
branch
.
name
=
time_ago_in_words
(
branch
.
commit
.
committed_date
)
-
if
@project
.
root_ref?
(
branch
.
name
)
ago
%span
.label
default
-
else
%td
(branch was removed from repository)
-
if
branch
.
commit
%td
=
link_to
project_commit_path
(
@project
,
branch
.
commit
.
id
)
do
-
if
can?
current_user
,
:admin_project
,
@project
=
truncate
branch
.
commit
.
id
.
to_s
,
length:
10
=
link_to
'Unprotect'
,
[
@project
,
branch
],
confirm:
'Are you sure?'
,
method: :delete
,
class:
"danger btn small"
=
time_ago_in_words
(
branch
.
commit
.
committed_date
)
ago
-
else
(branch was removed from repository)
%td
-
if
can?
current_user
,
:admin_project
,
@project
=
link_to
'Unprotect'
,
[
@project
,
branch
],
confirm:
'Are you sure?'
,
method: :delete
,
class:
"danger btn small"
app/views/repositories/_branch.html.haml
View file @
f9528bfb
...
@@ -22,6 +22,6 @@
...
@@ -22,6 +22,6 @@
%td
%td
-
if
can?
current_user
,
:download_code
,
@project
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_project_repository_path
(
@project
,
ref:
branch
.
name
)
do
=
link_to
archive_project_repository_path
(
@project
,
ref:
branch
.
name
)
do
%i
.icon-download
%i
.icon-download
-alt
Download
Download
app/views/repositories/_
branches_head
.html.haml
→
app/views/repositories/_
filter
.html.haml
View file @
f9528bfb
=
render
"commits/head"
%ul
.nav.nav-pills.nav-stacked
%ul
.nav.nav-pills
=
nav_link
(
path:
'repositories#show'
)
do
=
nav_link
(
path:
'repositories#show'
)
do
=
link_to
'Recent'
,
project_repository_path
(
@project
)
=
link_to
'Recent'
,
project_repository_path
(
@project
)
=
nav_link
(
path:
'protected_branches#index'
)
do
=
nav_link
(
path:
'protected_branches#index'
)
do
=
link_to
project_protected_branches_path
(
@project
)
do
=
link_to
project_protected_branches_path
(
@project
)
do
%i
.icon-lock
Protected
Protected
%i
.icon-lock
=
nav_link
(
path:
'repositories#branches'
)
do
=
nav_link
(
path:
'repositories#branches'
)
do
=
link_to
'All'
,
branches_project_repository_path
(
@project
)
=
link_to
'All
branches
'
,
branches_project_repository_path
(
@project
)
app/views/repositories/branches.html.haml
View file @
f9528bfb
=
render
"repositories/branches_head"
=
render
"commits/head"
-
unless
@branches
.
empty?
.row
%table
.span3
%thead
=
render
"filter"
%tr
.span9
%th
Name
-
unless
@branches
.
empty?
%th
Last commit
%table
%th
%thead
%tr
%tbody
%th
Name
-
@branches
.
each
do
|
branch
|
%th
Last commit
=
render
"repositories/branch"
,
branch:
branch
%th
%tbody
-
@branches
.
each
do
|
branch
|
=
render
"repositories/branch"
,
branch:
branch
app/views/repositories/show.html.haml
View file @
f9528bfb
=
render
"branches_head"
=
render
"commits/head"
.row
%table
.span3
%thead
=
render
"filter"
%tr
.span9
%th
Name
%table
%th
Last commit
%thead
%th
%tr
-
@activities
.
each
do
|
update
|
%th
Name
=
render
"repositories/branch"
,
branch:
update
.
head
%th
Last commit
%th
-
@activities
.
each
do
|
update
|
=
render
"repositories/branch"
,
branch:
update
.
head
app/views/repositories/tags.html.haml
View file @
f9528bfb
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
%td
%td
-
if
can?
current_user
,
:download_code
,
@project
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_project_repository_path
(
@project
,
ref:
tag
.
name
)
do
=
link_to
archive_project_repository_path
(
@project
,
ref:
tag
.
name
)
do
%i
.icon-download
%i
.icon-download
-alt
Download
Download
-
else
-
else
...
...
app/views/tree/blob/_download.html.haml
View file @
f9528bfb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
%center
%center
=
link_to
project_blob_path
(
@project
,
@id
)
do
=
link_to
project_blob_path
(
@project
,
@id
)
do
%div
.padded
%div
.padded
%
br
%
h4
=
image_tag
"download.png"
,
width:
64
%i
.icon-download-alt
%h3
%br
Download (
#{
number_to_human_size
blob
.
size
}
)
Download (
#{
number_to_human_size
blob
.
size
}
)
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