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
3a2acc01
Commit
3a2acc01
authored
Dec 12, 2019
by
pei-chi.huang
Browse files
styling
parent
8dd26b5f
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/custom.scss
View file @
3a2acc01
...
...
@@ -239,11 +239,6 @@ text-decoration: underline;
}
div.absolute {
margin-top:10px;
margin-left: 570px;
}
div.absolutem {
margin-top:10px;
margin-left: 590px;
}
.div-table{
display:table;
...
...
app/views/samples/_samples.html.erb
View file @
3a2acc01
...
...
@@ -20,19 +20,19 @@
<th
class=
"text-center"
>
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:#f
9e5ef
;'
,
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:#
feffea
;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%=
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:#f
28abe
;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'btn btn-warning'
:
'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'
?
'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:#
e2f7e7
;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
baf7c8
;'
,
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:#f
9e5ef
;'
,
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:#
feffea
;'
,
class:
"
#{
params
[
:status
]
==
'submitted'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%=
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:#f
28abe
;'
,
class:
"
#{
params
[
:status
]
==
'in preparation'
?
'btn btn-warning'
:
'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'
?
'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:#
e2f7e7
;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
{
:style
=>
'color:#
baf7c8
;'
,
class:
"
#{
params
[
:status
]
==
'measured'
?
'btn btn-warning'
:
'btn btn-default'
}
"
}
%>
<%
end
%>
</th>
<%
if
operator?
%>
...
...
app/views/samples/_show.html.erb
View file @
3a2acc01
...
...
@@ -129,11 +129,11 @@ $(document).ready(function(){
</table>
<br>
<%
if
@sample
.
status
==
"in preparation"
%>
<div
class=
'absolute'
>
<%=
link_to
(
@sample
.
status
?
"Submit for Measurement"
:
"No"
),
<div
class=
'
container
absolute'
>
<%=
link_to
(
@sample
.
status
?
"Submit for Measurement"
:
"No"
),
Measured_sample_path
(
@sample
),
:action
=>
'solve'
,
:class
=>
'btn btn-block btn-success'
%>
</div>
<%
elsif
operator?
&&
@sample
.
status
==
"submitted"
%>
<div
class=
'absolute
m
'
>
<%=
link_to
(
@sample
.
status
?
"Release Measurement"
:
"No"
),
<div
class=
'
container
absolute'
>
<%=
link_to
(
@sample
.
status
?
"Release Measurement"
:
"No"
),
ReleaseMeasurment_sample_path
(
@sample
),
:action
=>
'solve'
,
:class
=>
'btn btn-block btn-success'
%>
</div>
<%
end
%>
...
...
app/views/static_pages/home.html.erb
View file @
3a2acc01
...
...
@@ -3,7 +3,7 @@
<%=
render
'samples/samples'
,
samples
:@samples
%>
<%
elsif
logged_in?
&&
!
operator?
%>
<div
style=
"margin: 0px 0px 50px 100px;"
>
<link
href=
'http://fonts.googleapis.com/css?family=Merienda+One'
rel=
'stylesheet'
type=
'text/css'
><h1
class=
"font"
style=
"text-align:center"
>
ela
</h1>
<link
href=
'http
s
://fonts.googleapis.com/css?family=Merienda+One'
rel=
'stylesheet'
type=
'text/css'
><h1
class=
"font"
style=
"text-align:center"
>
ela
</h1>
<h3>
Microposts
</h3>
<ol
class=
"microposts"
>
<%=
render
@microposts
%>
...
...
@@ -12,7 +12,7 @@
</div>
<%
else
%>
<div
style=
"margin: 100px 0px 50px 200px;"
>
<link
href=
'http://fonts.googleapis.com/css?family=Merienda+One'
rel=
'stylesheet'
type=
'text/css'
>
<h1
class=
'font'
style=
"text-align:center;;"
>
ela
</h1>
<link
href=
'http
s
://fonts.googleapis.com/css?family=Merienda+One'
rel=
'stylesheet'
type=
'text/css'
>
<h1
class=
'font'
style=
"text-align:center;;"
>
ela
</h1>
<br>
<p>
<h3
style=
"text-align:center"
>
Welcome to Elemental Analysis
</h3>
...
...
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