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
Jérome Perrin
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 @@
&
.issue-box-closed
{
border-color
:
$border_danger
;
.state
{
background-color
:
$bg_light_danger
;
background-color
:
$bg_danger
;
color
:
#FFF
;
border-color
:
$border_danger
;
color
:
$color_danger
;
.state-label
{
background-color
:
$bg_danger
;
color
:
#FFF
;
}
}
}
&
.issue-box-merged
{
border-color
:
$border_primary
;
.state
{
background-color
:
$bg_light_primary
;
background-color
:
$bg_primary
;
color
:
#FFF
;
border-color
:
$border_primary
;
color
:
$color_primary
;
.state-label
{
background-color
:
$bg_primary
;
color
:
#FFF
;
}
}
}
&
.issue-box-open
{
border-color
:
$border_success
;
.state
{
background-color
:
$bg_light_success
;
border-color
:
$border_success
;
color
:
$color_success
;
.state-label
{
background-color
:
$bg_success
;
color
:
#FFF
;
}
background-color
:
$bg_success
;
color
:
#FFF
;
}
}
&
.issue-box-expired
{
border-color
:
#cea61b
;
.state
{
background-color
:
#fcf8e3
;
border-color
:
#faebcc
;
color
:
#8a6d3b
;
.state-label
{
background
:
#cea61b
;
color
:
#FFF
;
}
background
:
#cea61b
;
color
:
#FFF
;
}
}
...
...
@@ -72,7 +56,7 @@
.state
{
border-bottom
:
1px
solid
#DDD
;
line-height
:
32
px
;
padding
:
10px
25
px
;
}
.title
{
...
...
@@ -115,14 +99,15 @@
.state-label
{
font-size
:
14px
;
padding
:
1px
25px
;
text-align
:
center
;
text-shadow
:
none
;
display
:
inline-block
;
line-height
:
34px
;
float
:
left
;
font-weight
:
bold
;
}
.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 @@
.issue-box
{
class:
issue_box_class
(
@issue
)
}
.state.clearfix
.state-label
.col-sm-2.col-xs-12
.state-label
-
if
@issue
.
closed?
Closed
-
else
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
)
}
%h4
.title
...
...
@@ -73,4 +73,4 @@
=
label
.
name
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
\ No newline at end of file
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
app/views/projects/merge_requests/show/_mr_box.html.haml
View file @
1a97db41
.issue-box
{
class:
issue_box_class
(
@merge_request
)
}
.state.clearfix
%span
.state-label.col-sm-2.col-xs-12
.state-label
-
if
@merge_request
.
merged?
Merged
-
elsif
@merge_request
.
closed?
...
...
@@ -8,7 +8,7 @@
-
else
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
)
}
%h4
.title
...
...
app/views/projects/milestones/show.html.haml
View file @
1a97db41
...
...
@@ -22,14 +22,14 @@
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
.state.clearfix
.state-label
.col-sm-2.col-xs-12
.state-label
-
if
@milestone
.
closed?
Closed
-
elsif
@milestone
.
expired?
Expired
-
else
Open
%span
.creator.col-sm-9.col-xs-12
.creator
=
@milestone
.
expires_at
%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