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
11abe984
Commit
11abe984
authored
Dec 08, 2017
by
Tugce Nur Tas
Committed by
Tuğçe Nur Taş
Dec 20, 2017
Browse files
correct links for volunteer
parent
eb1b6a2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/volunteers/_volunteer.html.slim
View file @
11abe984
...
...
@@ -4,7 +4,7 @@ tr
td
=
volunteer
.
contact
.
full_name
td
=
volunteer
.
contact
.
city
td
=
volunteer
.
contact
.
postal_code
td
=
volunteer
.
contact
.
primary_email
td
=
mail_to
volunteer
.
contact
.
primary_email
td
=
volunteer
.
birth_year
.
year
if
volunteer
.
birth_year?
td
=
volunteer
.
native_language
&
.
language_name
td
=
render
'language_skills/show_inline'
,
language_skills:
volunteer
.
foreign_languages
...
...
@@ -15,7 +15,11 @@ tr
td
=
volunteer
.
interests
td
=
t
(
".acceptance.
#{
volunteer
.
acceptance
}
"
)
td
=
volunteer
.
external?
?
t_attr
(
:external
)
:
t_attr
(
:internal
)
td
=
volunteer
.
self_applicant?
?
t
(
'volunteer_self_applicant'
)
:
volunteer
.
registrar
.
full_name
-
if
volunteer
.
self_applicant?
td
=
t
(
'volunteer_self_applicant'
)
-
else
td
=
link_to
volunteer
.
registrar
.
full_name
,
profile_path
(
volunteer
.
registrar
)
/ td = volunteer.self_applicant? ? t('volunteer_self_applicant') : link_to volunteer.registrar.full_nameprofile_path(volunteer.registrar)
-
if
action_name
==
'index'
=
render
'index_actions'
,
subject:
volunteer
-
if
volunteer
.
seeking_clients?
...
...
app/views/volunteers/show.html.slim
View file @
11abe984
...
...
@@ -124,6 +124,12 @@ h3 Persönlicher Hintergrund
tr
td
#{
t_attr
(
:external
)
}
/
#{
t_attr
(
:internal
)
}
td
=
@volunteer
.
external?
?
t_attr
(
:external
)
:
t_attr
(
:internal
)
tr
td
=
t
(
'registered_by'
)
-
if
@volunteer
.
self_applicant?
td
=
t
(
'volunteer_self_applicant'
)
-
else
td
=
link_to
@volunteer
.
registrar
.
full_name
,
profile_path
(
@volunteer
.
registrar
)
h3
=
t_attr
(
:single_accompaniment
)
.table-responsive
...
...
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