Skip to content

Commit

Permalink
Merge pull request 3liz#4781 from 3liz/backport-4771-to-release_3_7
Browse files Browse the repository at this point in the history
[Backport release_3_7] Do not provide a link to Py-QGIS-Server repository if n/a
  • Loading branch information
Gustry authored Sep 24, 2024
2 parents cacbd93 + ffd9295 commit 2b0e619
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lizmap/modules/admin/templates/server_information.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,15 @@
<td>
{if $data['qgis_server_info']['py_qgis_server']['found']}
{if $data['qgis_server_info']['py_qgis_server']['stable']}
<a href="https://github.com/3liz/py-qgis-server/releases/tag/{$data['qgis_server_info']['py_qgis_server']['version']}" target="_blank">
{$data['qgis_server_info']['py_qgis_server']['version']}
</a>
{if $data['qgis_server_info']['py_qgis_server']['version'] == 'n/a'}
{* If the value is n/a, Py-QGIS-Server failed to fetch the version *}
{* https://github.com/3liz/py-qgis-server/blob/b11bba45495d32e348457c0802fe08f2bf952b8b/pyqgisserver/version.py#L17 *}
{$data['qgis_server_info']['py_qgis_server']['version']}
{else}
<a href="https://github.com/3liz/py-qgis-server/releases/tag/{$data['qgis_server_info']['py_qgis_server']['version']}" target="_blank">
{$data['qgis_server_info']['py_qgis_server']['version']}
</a>
{/if}
{else}
<a href="https://github.com/3liz/py-qgis-server/commit/{$data['qgis_server_info']['py_qgis_server']['commit_id']}" target="_blank">
{$data['qgis_server_info']['py_qgis_server']['version']} - {$data['qgis_server_info']['py_qgis_server']['commit_id']}
Expand Down

0 comments on commit 2b0e619

Please sign in to comment.