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
243bfc97
Commit
243bfc97
authored
Sep 07, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small restyle of issue and merge request pages
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e0da2c35
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
37 deletions
+68
-37
app/assets/stylesheets/base/gl_variables.scss
app/assets/stylesheets/base/gl_variables.scss
+4
-0
app/assets/stylesheets/generic/blocks.scss
app/assets/stylesheets/generic/blocks.scss
+5
-0
app/assets/stylesheets/generic/issue_box.scss
app/assets/stylesheets/generic/issue_box.scss
+6
-3
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+19
-0
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+17
-17
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-3
app/views/projects/merge_requests/show/_mr_box.html.haml
app/views/projects/merge_requests/show/_mr_box.html.haml
+11
-10
app/views/projects/merge_requests/show/_mr_title.html.haml
app/views/projects/merge_requests/show/_mr_title.html.haml
+5
-4
No files found.
app/assets/stylesheets/base/gl_variables.scss
View file @
243bfc97
...
...
@@ -22,6 +22,10 @@ $brand-info: $gl-info;
$brand-warning
:
$gl-warning
;
$brand-danger
:
$gl-danger
;
$border-radius-base
:
3px
!
default
;
$border-radius-large
:
5px
!
default
;
$border-radius-small
:
2px
!
default
;
//== Scaffolding
//
...
...
app/assets/stylesheets/generic/blocks.scss
View file @
243bfc97
...
...
@@ -27,6 +27,11 @@
border-bottom
:
1px
solid
#e7e9ed
;
color
:
$gl-gray
;
&
.middle-block
{
margin-top
:
0
;
margin-bottom
:
0
;
}
&
.second-block
{
margin-top
:
-1px
;
margin-bottom
:
0
;
...
...
app/assets/stylesheets/generic/issue_box.scss
View file @
243bfc97
...
...
@@ -5,10 +5,13 @@
*/
.issue-box
{
@include
border-radius
(
3px
);
display
:
inline-block
;
padding
:
4px
13px
;
padding
:
10px
$gl-padding
;
font-weight
:
normal
;
margin-right
:
5px
;
margin-right
:
10px
;
font-size
:
$gl-font-size
;
&
.issue-box-closed
{
background-color
:
$gl-danger
;
...
...
@@ -21,7 +24,7 @@
}
&
.issue-box-open
{
background-color
:
$gl-success
;
background-color
:
#019875
;
color
:
#FFF
;
}
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
243bfc97
...
...
@@ -56,3 +56,22 @@
text-align
:
left
;
}
}
.issuable-details
{
.page-title
{
margin-top
:
-15px
;
padding
:
10px
0
;
margin-bottom
:
0
;
color
:
$gl-gray
;
font-size
:
16px
;
.author
{
color
:
$gl-gray
;
}
.issue-id
{
font-size
:
19px
;
color
:
$gl-text-color
;
}
}
}
app/views/projects/issues/show.html.haml
View file @
243bfc97
-
page_title
"
#{
@issue
.
title
}
(#
#{
@issue
.
iid
}
)"
,
"Issues"
.issue
.issue-details.issuable-details
%h4
.page-title
.page-title
.issue-box
{
class:
issue_box_class
(
@issue
)
}
-
if
@issue
.
closed?
Closed
-
else
Open
Issue ##{@issue.iid}
%small
.creator
·
created by
#{
link_to_member
(
@project
,
@issue
.
author
)
}
%span
.issue-id
Issue ##{@issue.iid}
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@issue
.
author
,
size:
24
)
}
·
=
time_ago_with_tooltip
(
@issue
.
created_at
,
placement:
'bottom'
,
html_class:
'issue_created_ago'
)
-
if
@issue
.
updated_at
!=
@issue
.
created_at
%span
...
...
@@ -32,18 +33,17 @@
=
icon
(
'pencil-square-o'
)
Edit
%hr
%h2
.issue-title
=
gfm
escape_once
(
@issue
.
title
)
%div
-
if
@issue
.
description
.
present?
.description
{
class:
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
}
.wiki
=
preserve
do
=
markdown
(
@issue
.
description
)
%textarea
.hidden.js-task-list-field
=
@issue
.
description
.gray-content-block.middle-block
%h2
.issue-title
=
gfm
escape_once
(
@issue
.
title
)
%div
-
if
@issue
.
description
.
present?
.description
{
class:
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
}
.wiki
=
preserve
do
=
markdown
(
@issue
.
description
)
%textarea
.hidden.js-task-list-field
=
@issue
.
description
%hr
.issue-discussion
.issue-discussion.prepend-top-default
=
render
'projects/issues/discussion'
app/views/projects/merge_requests/_show.html.haml
View file @
243bfc97
...
...
@@ -5,10 +5,8 @@
.merge-request
{
'data-url'
=>
merge_request_path
(
@merge_request
)}
.merge-request-details.issuable-details
=
render
"projects/merge_requests/show/mr_title"
%hr
=
render
"projects/merge_requests/show/mr_box"
%hr
.append-bottom-20.mr-source-target
.append-bottom-20.mr-source-target.prepend-top-default
-
if
@merge_request
.
open?
.pull-right
-
if
@merge_request
.
source_branch_exists?
...
...
app/views/projects/merge_requests/show/_mr_box.html.haml
View file @
243bfc97
%h2
.issue-title
=
gfm
escape_once
(
@merge_request
.
title
)
.gray-content-block.middle-block
%h2
.issue-title
=
gfm
escape_once
(
@merge_request
.
title
)
%div
-
if
@merge_request
.
description
.
present?
.description
{
class:
can?
(
current_user
,
:update_merge_request
,
@merge_request
)
?
'js-task-list-container'
:
''
}
.wiki
=
preserve
do
=
markdown
(
@merge_request
.
description
)
%textarea
.hidden.js-task-list-field
=
@merge_request
.
description
%div
-
if
@merge_request
.
description
.
present?
.description
{
class:
can?
(
current_user
,
:update_merge_request
,
@merge_request
)
?
'js-task-list-container'
:
''
}
.wiki
=
preserve
do
=
markdown
(
@merge_request
.
description
)
%textarea
.hidden.js-task-list-field
=
@merge_request
.
description
app/views/projects/merge_requests/show/_mr_title.html.haml
View file @
243bfc97
%h4
.page-title
.page-title
.issue-box
{
class:
issue_box_class
(
@merge_request
)
}
=
@merge_request
.
state_human_name
Merge Request ##{@merge_request.iid}
%small
.creator
%span
.issue-id
Merge Request ##{@merge_request.iid}
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@merge_request
.
author
,
size:
24
)
}
·
created by
#{
link_to_member
(
@project
,
@merge_request
.
author
)
}
=
time_ago_with_tooltip
(
@merge_request
.
created_at
)
-
if
@merge_request
.
updated_at
!=
@merge_request
.
created_at
%span
...
...
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