BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d0a56e22
Unverified
Commit
d0a56e22
authored
Jan 03, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move labels css to gl_bootstrap. Fixed label rendering
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
423ffe29
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
21 deletions
+24
-21
common.scss
app/assets/stylesheets/generic/common.scss
+0
-17
gl_bootstrap.scss
app/assets/stylesheets/gl_bootstrap.scss
+19
-0
labels_helper.rb
app/helpers/labels_helper.rb
+2
-2
_project_filter.html.haml
app/views/shared/_project_filter.html.haml
+3
-2
No files found.
app/assets/stylesheets/generic/common.scss
View file @
d0a56e22
...
...
@@ -85,23 +85,6 @@ pre.well-pre {
@include
box-shadow
(
inset
0
2px
4px
rgba
(
0
,
0
,
0
,.
15
));
}
.label
{
padding
:
2px
4px
;
font-size
:
12px
;
font-style
:
normal
;
font-weight
:
normal
;
&
.label-gray
{
background-color
:
#eee
;
color
:
#999
;
text-shadow
:
none
;
}
&
.label-inverse
{
background-color
:
#333333
;
}
}
/** Big Labels **/
.state-label
{
font-size
:
14px
;
...
...
app/assets/stylesheets/gl_bootstrap.scss
View file @
d0a56e22
...
...
@@ -74,3 +74,22 @@
}
@import
"bootstrap/responsive-utilities"
;
// Labels
.label
{
padding
:
2px
4px
;
font-size
:
12px
;
font-style
:
normal
;
font-weight
:
normal
;
display
:
inline-block
;
&
.label-gray
{
background-color
:
#eee
;
color
:
#999
;
text-shadow
:
none
;
}
&
.label-inverse
{
background-color
:
#333333
;
}
}
app/helpers/labels_helper.rb
View file @
d0a56e22
...
...
@@ -16,11 +16,11 @@ module LabelsHelper
when
*
klass
.
warning_labels
'label-warning'
when
*
klass
.
neutral_labels
'label-
inverse
'
'label-
primary
'
when
*
klass
.
positive_labels
'label-success'
when
*
klass
.
important_labels
'label-
important
'
'label-
danger
'
else
'label-info'
end
...
...
app/views/shared/_project_filter.html.haml
View file @
d0a56e22
.side-filters.hidden-xs.hidden-sm
=
form_tag
project_entities_path
,
method:
'get'
do
%fieldset
-
if
current_user
-
if
current_user
%fieldset
%ul
.nav.nav-pills.nav-stacked
%li
{
class:
(
"active"
if
params
[
:scope
].
blank?
)}
=
link_to
project_filter_path
(
scope:
nil
)
do
...
...
@@ -13,6 +13,7 @@
=
link_to
project_filter_path
(
scope:
'created-by-me'
)
do
Created by me
%fieldset
%ul
.nav.nav-pills.nav-stacked
%li
{
class:
(
"active"
if
params
[
:state
].
blank?
)}
=
link_to
project_filter_path
(
state:
nil
)
do
...
...
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