Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ComPlat
ela2
Commits
8dd26b5f
Commit
8dd26b5f
authored
Dec 11, 2019
by
patrick.hodapp
Browse files
Merge branch '17-make-filters-colored' into 'init19'
Resolve "Make filters colored" Closes
#17
See merge request
!10
parents
b9cc2629
077ba05b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/samples/_samples.html.erb
View file @
8dd26b5f
...
...
@@ -21,18 +21,18 @@
Status
<%
if
operator?
&&
((
current_page?
(
'/samples, /index'
)
||
current_page?
(
'/'
))
||
params
[
:is_admin
]
===
"true"
)
%>
<%=
link_to
'<i class="fa fa-hourglass-half" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'in preparation'
?
"all"
:
"in preparation"
}
"
,
is_admin:
true
),
{
:style
=>
'color:#
000
;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
f9e5ef
;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%=
link_to
'<i class="fa fa-line-chart" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'submitted'
?
"all"
:
"submitted"
}
"
,
is_admin:
true
),
{
:style
=>
'color:#
000
;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
feffea
;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%=
link_to
'<i class="fa fa-check-square-o" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
"measured"
?
"all"
:
"measured"
}
"
,
is_admin:
true
),
{
:style
=>
'color:#
000
;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
e2f7e7
;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%
else
%>
<%=
link_to
'<i class="fa fa-hourglass-half" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'in preparation'
?
"all"
:
"in preparation"
}
"
),
{
:style
=>
'color:#
000
;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
f9e5ef
;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%=
link_to
'<i class="fa fa-line-chart" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'submitted'
?
"all"
:
"submitted"
}
"
),
{
:style
=>
'color:#
000
;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
feffea
;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%=
link_to
'<i class="fa fa-check-square-o" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
"measured"
?
"all"
:
"measured"
}
"
),
{
:style
=>
'color:#
000
;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
e2f7e7
;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%
end
%>
</th>
<%
if
operator?
%>
...
...
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