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
Tatuya Kamada
gitlab-ce
Commits
1a97db41
Commit
1a97db41
authored
May 31, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify issue-box style
parent
e02aec66
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
38 deletions
+23
-38
app/assets/stylesheets/generic/issue_box.scss
app/assets/stylesheets/generic/issue_box.scss
+16
-31
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+3
-3
app/views/projects/merge_requests/show/_mr_box.html.haml
app/views/projects/merge_requests/show/_mr_box.html.haml
+2
-2
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+2
-2
No files found.
app/assets/stylesheets/generic/issue_box.scss
View file @
1a97db41
...
@@ -17,52 +17,36 @@
...
@@ -17,52 +17,36 @@
&
.issue-box-closed
{
&
.issue-box-closed
{
border-color
:
$border_danger
;
border-color
:
$border_danger
;
.state
{
.state
{
background-color
:
$bg_light_danger
;
background-color
:
$bg_danger
;
color
:
#FFF
;
border-color
:
$border_danger
;
border-color
:
$border_danger
;
color
:
$color_danger
;
.state-label
{
background-color
:
$bg_danger
;
color
:
#FFF
;
}
}
}
}
}
&
.issue-box-merged
{
&
.issue-box-merged
{
border-color
:
$border_primary
;
border-color
:
$border_primary
;
.state
{
.state
{
background-color
:
$bg_light_primary
;
background-color
:
$bg_primary
;
color
:
#FFF
;
border-color
:
$border_primary
;
border-color
:
$border_primary
;
color
:
$color_primary
;
.state-label
{
background-color
:
$bg_primary
;
color
:
#FFF
;
}
}
}
}
}
&
.issue-box-open
{
&
.issue-box-open
{
border-color
:
$border_success
;
border-color
:
$border_success
;
.state
{
.state
{
background-color
:
$bg_light_success
;
border-color
:
$border_success
;
border-color
:
$border_success
;
color
:
$color_success
;
background-color
:
$bg_success
;
.state-label
{
color
:
#FFF
;
background-color
:
$bg_success
;
color
:
#FFF
;
}
}
}
}
}
&
.issue-box-expired
{
&
.issue-box-expired
{
border-color
:
#cea61b
;
border-color
:
#cea61b
;
.state
{
.state
{
background-color
:
#fcf8e3
;
border-color
:
#faebcc
;
border-color
:
#faebcc
;
color
:
#8a6d3b
;
background
:
#cea61b
;
.state-label
{
color
:
#FFF
;
background
:
#cea61b
;
color
:
#FFF
;
}
}
}
}
}
...
@@ -72,7 +56,7 @@
...
@@ -72,7 +56,7 @@
.state
{
.state
{
border-bottom
:
1px
solid
#DDD
;
border-bottom
:
1px
solid
#DDD
;
line-height
:
32
px
;
padding
:
10px
25
px
;
}
}
.title
{
.title
{
...
@@ -115,14 +99,15 @@
...
@@ -115,14 +99,15 @@
.state-label
{
.state-label
{
font-size
:
14px
;
font-size
:
14px
;
padding
:
1px
25px
;
float
:
left
;
text-align
:
center
;
font-weight
:
bold
;
text-shadow
:
none
;
display
:
inline-block
;
line-height
:
34px
;
}
}
.creator
{
.creator
{
padding
:
2px
15px
;
float
:
right
;
a
{
color
:
#FFF
;
text-decoration
:
underline
;
}
}
}
}
}
app/views/projects/issues/show.html.haml
View file @
1a97db41
...
@@ -32,13 +32,13 @@
...
@@ -32,13 +32,13 @@
.issue-box
{
class:
issue_box_class
(
@issue
)
}
.issue-box
{
class:
issue_box_class
(
@issue
)
}
.state.clearfix
.state.clearfix
.state-label
.col-sm-2.col-xs-12
.state-label
-
if
@issue
.
closed?
-
if
@issue
.
closed?
Closed
Closed
-
else
-
else
Open
Open
%span
.creator.col-sm-9.col-xs-12
.creator
Created by
#{
link_to_member
(
@project
,
@issue
.
author
)
}
#{
time_ago_with_tooltip
(
@issue
.
created_at
)
}
Created by
#{
link_to_member
(
@project
,
@issue
.
author
)
}
#{
time_ago_with_tooltip
(
@issue
.
created_at
)
}
%h4
.title
%h4
.title
...
@@ -73,4 +73,4 @@
...
@@ -73,4 +73,4 @@
=
label
.
name
=
label
.
name
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
\ No newline at end of file
app/views/projects/merge_requests/show/_mr_box.html.haml
View file @
1a97db41
.issue-box
{
class:
issue_box_class
(
@merge_request
)
}
.issue-box
{
class:
issue_box_class
(
@merge_request
)
}
.state.clearfix
.state.clearfix
%span
.state-label.col-sm-2.col-xs-12
.state-label
-
if
@merge_request
.
merged?
-
if
@merge_request
.
merged?
Merged
Merged
-
elsif
@merge_request
.
closed?
-
elsif
@merge_request
.
closed?
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
-
else
-
else
Open
Open
%span
.creator.col-sm-9.col-xs-12
.creator
Created by
#{
link_to_member
(
@project
,
@merge_request
.
author
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
created_at
)
}
Created by
#{
link_to_member
(
@project
,
@merge_request
.
author
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
created_at
)
}
%h4
.title
%h4
.title
...
...
app/views/projects/milestones/show.html.haml
View file @
1a97db41
...
@@ -22,14 +22,14 @@
...
@@ -22,14 +22,14 @@
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
.state.clearfix
.state.clearfix
.state-label
.col-sm-2.col-xs-12
.state-label
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
Closed
Closed
-
elsif
@milestone
.
expired?
-
elsif
@milestone
.
expired?
Expired
Expired
-
else
-
else
Open
Open
%span
.creator.col-sm-9.col-xs-12
.creator
=
@milestone
.
expires_at
=
@milestone
.
expires_at
%h4
.title
%h4
.title
...
...
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