Skip to content

Commit

Permalink
Use correct online help and Git repository according to the correct Q…
Browse files Browse the repository at this point in the history
…GIS Server wrapper used
  • Loading branch information
Gustry committed Jan 7, 2025
1 parent 9425f7c commit dd60d34
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lizmap/app/system/mainconfig.ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
; QGIS server required minimum version
qgisServer="3.28"
; Lizmap server QGIS plugin required minimum version
lizmapServerPlugin="2.11.2"
lizmapServerPlugin="2.12.0"
; Lizmap QGIS desktop plugin required/recommended minimum version for newly or updated project only
; This version MUST match at least on https://plugins.qgis.org/plugins/lizmap/#plugin-versions
; with the minimum QGIS server version supported above.
Expand Down
3 changes: 2 additions & 1 deletion lizmap/modules/admin/locales/en_US/admin.UTF-8.properties
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,15 @@ server.information.qgis.label=QGIS Server
server.information.qgis.metadata=Version
server.information.qgis.version=Number
server.information.qgis.name=Name
server.information.qgis.commit_id=Commit ID
server.information.qgis.action=Action
server.information.qgis.plugins=Plugins
server.information.qgis.plugins.version=Version number
server.information.qgis.plugin=Plugin
server.information.qgis.plugin.version=Version
server.information.qgis.plugin.help=Help
server.information.qgis.wrapper=QJazz or Py-QGIS-Server
server.information.qgis.wrapper.not.installed=Not installed
server.information.qgis.test.ok=QGIS Server is correctly installed and returns the expected response for OGC requests.
server.information.qgis.test.error=QGIS Server is not correctly installed in your server or the URL for OGC requests given in Lizmap configuration is not correct.
Expand Down
42 changes: 25 additions & 17 deletions lizmap/modules/admin/templates/server_information.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@
<td>
<a href="https://github.com/qgis/QGIS/releases/tag/{$data['qgis_server_info']['metadata']['tag']}" target="_blank">
{$data['qgis_server_info']['metadata']['version']}
</a> - <a href="https://github.com/qgis/QGIS/commit/{$data['qgis_server_info']['metadata']['commit_id']}" target="_blank">
{$data['qgis_server_info']['metadata']['commit_id']}
</a>
</td>
</tr>
Expand All @@ -123,32 +125,38 @@
<td>{$data['qgis_server_info']['metadata']['name']}</td>
</tr>
<tr>
<th>{@admin.server.information.qgis.commit_id@}</th>
<td><a href="https://github.com/qgis/QGIS/commit/{$data['qgis_server_info']['metadata']['commit_id']}" target="_blank">{$data['qgis_server_info']['metadata']['commit_id']}</a></td>
</tr>
<tr>
<th>Py-QGIS-Server <a href="https://docs.3liz.org/py-qgis-server" target="_blank"><span class='badge rounded-pill bg-secondary'>{@admin.server.information.qgis.plugin.help@}</span></a></th>
<td>
{if $data['qgis_server_info']['py_qgis_server']['found']}
{if $data['qgis_server_info']['py_qgis_server']['found']}
<th>
{$data['qgis_server_info']['py_qgis_server']['name']}
{if $data['qgis_server_info']['py_qgis_server']['documentation_url']}
<a href="{$data['qgis_server_info']['py_qgis_server']['documentation_url']}" target="_blank">
<span class='badge rounded-pill bg-secondary'>{@admin.server.information.qgis.plugin.help@}</span>
</a>
{/if}
</th>
<td>
{if $data['qgis_server_info']['py_qgis_server']['stable']}
{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 $data['qgis_server_info']['py_qgis_server']['git_repository_url']}
<a href="{$data['qgis_server_info']['py_qgis_server']['git_repository_url']}/releases/tag/{$data['qgis_server_info']['py_qgis_server']['version']}" target="_blank">
{$data['qgis_server_info']['py_qgis_server']['version']}
</a>
{/if}
{/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']}
</a>
<a href="{$data['qgis_server_info']['py_qgis_server']['git_repository_url']}/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']}
</a>
{/if}
{else}
{$data['qgis_server_info']['py_qgis_server']['version']}
{/if}
</td>
</td>
{else}
{* When Py-QGIS-Server and QJazz were not found *}
<th>{@admin.server.information.qgis.wrapper@}</th><td>{@admin.server.information.qgis.wrapper.not.installed@}</td>
{/if}
</tr>
{if $qgisServerNeedsUpdate }
<tr>
Expand Down

0 comments on commit dd60d34

Please sign in to comment.