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
95d92175
Commit
95d92175
authored
Dec 12, 2019
by
pei-chi.huang
Browse files
styling
parent
c444248f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/samples/_samples.html.erb
View file @
95d92175
...
...
@@ -21,18 +21,18 @@
Status
<%
if
operator?
&&
((
current_page?
(
'/samples, /index'
)
||
current_page?
(
'/'
))
||
params
[
:is_admin
]
===
"true"
)
%>
<%=
link_to
'<i class="fa fa-pencil-square-o" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'in preparation'
?
"all"
:
"in preparation"
}
"
,
is_admin:
true
),
{
:style
=>
'
color:#
f28abe;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'b
tn btn-warning'
:
'
btn btn-default
'
}
"
}
%>
{
:style
=>
"
color:#
000;
#{
params
[
:status
]
==
'in preparation'
?
'b
ackground-color: #f9e5ef;'
:
''
}
"
,
class:
"
btn btn-default"
}
%>
<%=
link_to
'<i class="fa fa-hourglass-half" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'submitted'
?
"all"
:
"submitted"
}
"
,
is_admin:
true
),
{
:style
=>
'
color:#
eef294;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'b
tn btn-warning'
:
'
btn btn-default
'
}
"
}
%>
{
:style
=>
"
color:#
000;
#{
params
[
:status
]
==
'submitted'
?
'b
ackground-color: #feffea;'
:
''
}
"
,
class:
"
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:#
baf7c8;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'b
tn btn-warning'
:
'
btn btn-default
'
}
"
}
%>
{
:style
=>
"
color:#
000;
#{
params
[
:status
]
==
'measured'
?
'b
ackground-color: #e2f7e7;'
:
''
}
"
,
class:
"
btn btn-default"
}
%>
<%
else
%>
<%=
link_to
'<i class="fa fa-pencil-square-o" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'in preparation'
?
"all"
:
"in preparation"
}
"
),
{
:style
=>
'
color:#
f28abe;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'b
tn btn-warning'
:
'
btn btn-default
'
}
"
}
%>
{
:style
=>
"
color:#
000;
#{
params
[
:status
]
==
'in preparation'
?
'b
ackground-color: #f9e5ef;'
:
''
}
"
,
class:
"
btn btn-default"
}
%>
<%=
link_to
'<i class="fa fa-hourglass-half" aria-hidden="true"></i>'
.
html_safe
,
samples_path
(
status:
"
#{
params
[
:status
]
==
'submitted'
?
"all"
:
"submitted"
}
"
),
{
:style
=>
'
color:#
eef294;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'b
tn btn-warning'
:
'
btn btn-default
'
}
"
}
%>
{
:style
=>
"
color:#
000;
#{
params
[
:status
]
==
'submitted'
?
'b
ackground-color: #feffea;'
:
''
}
"
,
class:
"
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:#
baf7c8;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'b
tn btn-warning'
:
'
btn btn-default
'
}
"
}
%>
{
:style
=>
"
color:#
000;
#{
params
[
:status
]
==
'measured'
?
'b
ackground-color: #e2f7e7;'
:
''
}
"
,
class:
"
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