Bug 15400: (follow-up) Add class to years span
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / patron-age.inc
1 [%- USE KohaDates -%]
2 [%- USE I18N -%]
3 [%- IF ( patron ) -%]
4     [%- IF ( patron.dateofbirth ) -%]
5         [%- patron.dateofbirth | $KohaDates %]
6         [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
7         <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span>
8    [%- END -%]
9 [%- END -%]