Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
614dcae0
Commit
614dcae0
authored
Oct 27, 2017
by
Chrysanthi Lagodimou
Browse files
salutations first
parent
85222129
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/clients/show.html.slim
View file @
614dcae0
...
...
@@ -8,15 +8,15 @@
.table-responsive
table
.table.table-no-border-top
tbody
=
render
'contacts/show'
,
contact:
@client
.
contact
tr
td
=
t_attr
(
:birth_year
)
td
=
@client
.
birth_year
.
try
(
:year
)
tr
td
=
t_attr
(
:salutation
)
td
-
if
@client
.
salutation?
=
t
(
"salutation.
#{
@client
.
salutation
}
"
)
=
render
'contacts/show'
,
contact:
@client
.
contact
tr
td
=
t_attr
(
:birth_year
)
td
=
@client
.
birth_year
.
try
(
:year
)
tr
td
=
t_attr
(
:nationality
)
td
=
nationality_name
(
@client
.
nationality
)
...
...
app/views/volunteers/show.html.slim
View file @
614dcae0
...
...
@@ -52,13 +52,13 @@ h3= t('personal_background')
.table-responsive
table
.table.table-no-border-top
tbody
tr
td
=
t_attr
(
:salutation
)
td
=
t
(
"salutation.
#{
@volunteer
.
salutation
}
"
)
if
@volunteer
.
salutation?
=
render
'contacts/show'
,
contact:
@volunteer
.
contact
tr
td
=
t_attr
(
:birth_year
)
td
=
@volunteer
.
birth_year
.
try
(
:year
)
tr
td
=
t_attr
(
:salutation
)
td
=
t
(
"salutation.
#{
@volunteer
.
salutation
}
"
)
if
@volunteer
.
salutation?
tr
td
=
t_attr
(
:avatar
)
td
=
image_tag
@volunteer
.
avatar
.
url
(
:thumb
)
if
@volunteer
.
avatar
.
present?
...
...
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