View | Details | Raw Unified | Return to bug 27717
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc (-2 / +1 lines)
Lines 4-10 Link Here
4
[%- IF ( patron ) -%]
4
[%- IF ( patron ) -%]
5
    [%- IF ( patron.dateofbirth ) -%]
5
    [%- IF ( patron.dateofbirth ) -%]
6
        [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
6
        [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
7
        [%- IF age %]
7
        [%- IF age >= 0 %]
8
            [%- patron.dateofbirth | $KohaDates -%]
8
            [%- patron.dateofbirth | $KohaDates -%]
9
            <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span>
9
            <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span>
10
        [%- END -%]
10
        [%- END -%]
11
- 

Return to bug 27717