Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
4838c4ed
Commit
4838c4ed
authored
Jul 03, 2012
by
Andrew Smith
Committed by
Holger Just
Jul 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace the progress bars with a copied jQuery version. Fixes #1056
parent
f2e4c71b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
45 deletions
+23
-45
application_helper.rb
app/helpers/application_helper.rb
+4
-6
application.css
public/stylesheets/application.css
+19
-39
No files found.
app/helpers/application_helper.rb
View file @
4838c4ed
...
...
@@ -868,12 +868,10 @@ module ApplicationHelper
pcts
<<
(
100
-
pcts
[
1
]
-
pcts
[
0
])
width
=
options
[
:width
]
||
'100px;'
legend
=
options
[
:legend
]
||
''
content_tag
(
'table'
,
content_tag
(
'tr'
,
(
pcts
[
0
]
>
0
?
content_tag
(
'td'
,
''
,
:
style
=>
"width:
#{
pcts
[
0
]
}
%;"
,
:class
=>
'closed'
)
:
''
)
+
(
pcts
[
1
]
>
0
?
content_tag
(
'td'
,
''
,
:
style
=>
"width:
#{
pcts
[
1
]
}
%;"
,
:class
=>
'done'
)
:
''
)
+
(
pcts
[
2
]
>
0
?
content_tag
(
'td'
,
''
,
:
style
=>
"width:
#{
pcts
[
2
]
}
%;"
,
:class
=>
'todo'
)
:
''
)
),
:class
=>
'progress'
,
:style
=>
"width:
#{
width
}
;"
)
+
content_tag
(
'div'
,
content_tag
(
'div'
,
''
,
:style
=>
"width:
#{
pcts
[
0
]
}
%;"
,
:class
=>
'closed ui-progressbar-value ui-widget-header ui-corner-left'
)
+
content_tag
(
'div'
,
''
,
:style
=>
"width:
#{
pcts
[
1
]
}
%;"
,
:class
=>
'done ui-progressbar-value ui-widget-header'
),
:class
=>
'progress ui-progressbar ui-widget ui-widget-content ui-corner-all'
,
:style
=>
"width:
#{
width
}
;"
)
+
content_tag
(
'p'
,
legend
,
:class
=>
'pourcent'
)
end
...
...
public/stylesheets/application.css
View file @
4838c4ed
...
...
@@ -350,11 +350,6 @@ tr.issue td.subject {
text-align
:
left
;
}
tr
.issue
td
.done_ratio
table
.progress
{
margin-left
:
auto
;
margin-right
:
auto
;
}
#content
tr
.issue.idnt
td
.subject
a
{
background
:
url(../images/bullet_arrow_right.png)
no-repeat
0
50%
;
padding-left
:
16px
;
...
...
@@ -1721,32 +1716,6 @@ div.tooltip:hover span.tip {
}
/***** Progress bar *****/
#content
table
.progress
{
border
:
1px
solid
#D7D7D7
;
border-collapse
:
collapse
;
border-spacing
:
0pt
;
empty-cells
:
show
;
text-align
:
center
;
float
:
left
;
margin
:
1px
6px
1px
0px
;
}
#content
table
.progress
td
{
height
:
0.9em
;
}
#content
table
.progress
td
.closed
{
background
:
#BAE0BA
none
repeat
scroll
0%
;
}
#content
table
.progress
td
.done
{
background
:
#DEF0DE
none
repeat
scroll
0%
;
}
#content
table
.progress
td
.open
{
background
:
#FFF
none
repeat
scroll
0%
;
}
#content
p
.pourcent
{
font-size
:
80%
;
}
...
...
@@ -4074,14 +4043,6 @@ fieldset#filters div.add-filter {
border-top
:
none
;
}
#content
.meta
table
.progress
{
border
:
1px
solid
#bbb
;
border-collapse
:
separate
;
-moz-border-radius
:
3px
;
-webkit-border-radius
:
3px
;
border-radius
:
3px
;
}
.nosidebar
fieldset
ul
{
margin-left
:
0
;
}
...
...
@@ -4378,3 +4339,22 @@ Additional wiki styles
margin
:
0
0
0
4px
;
vertical-align
:
middle
;
}
div
.progress
{
height
:
0.9em
;
float
:
left
;
margin
:
0
6px
0
0
;
}
div
.progress
.closed
,
div
.progress
.done
{
float
:
left
;
background
:
#BAE0BA
;
border-left
:
0
;
border-right
:
0
;
margin
:
-1px
0
;
}
div
.progress
.done
{
background
:
#DEF0DE
;
}
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