Skip to content

Commit

Permalink
Typo endif and type
Browse files Browse the repository at this point in the history
  • Loading branch information
rebert committed Nov 27, 2024
1 parent b630568 commit 49ad81e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chsdi/templates/htmlpopup/base.mako
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@
<td class="cell-left"></td>
<td>
% endif
% if timestamp == None:
% if timestamp is None:
<a href="${''.join((c['baseUrl'], '#/map?layers=', c['layerBodId'], '@features=', str(c['featureId']), '&lang=', lang, '&topic=', topic))}" target="_blank">
${_('Link to object')}
</a>
% else:
% endif
<a href="${''.join((c['baseUrl'], '#/map?layers=', c['layerBodId'], '@features=', str(c['featureId']), '@year=', timestamp[:4], '&lang=', lang, '&topic=', topic))}" target="_blank">
<a href="${''.join((c['baseUrl'], '#/map?layers=', c['layerBodId'], '@features=', str(c['featureId']), '@year=', str(timestamp[:4]), '&lang=', lang, '&topic=', topic))}" target="_blank">
${_('Link to object')}
</a>
% endif
</td>
</tr>
%endif
Expand Down

0 comments on commit 49ad81e

Please sign in to comment.