mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +01:00
Merged in feature/readme-link-for-plugins-and-themes (pull request #9)
Readme link for plugins and themes. If [theme|plugin].readme is set, use that, otherwise append /blob/develop/README.md to theme/plugin homepage url
This commit is contained in:
@@ -51,4 +51,13 @@
|
|||||||
<td>{{ plugin.description_html }}</td>
|
<td>{{ plugin.description_html }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if plugin.readme or plugin.homepage %}
|
||||||
|
{% set readme_link = plugin.readme ?: plugin.homepage ~ '/blob/develop/README.md' %}
|
||||||
|
<tr>
|
||||||
|
<td>Readme:</td>
|
||||||
|
<td><a href="{{ readme_link }}">{{ readme_link }}</a></td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
@@ -84,6 +84,14 @@
|
|||||||
<td>{{ theme.description_html }}</td>
|
<td>{{ theme.description_html }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if theme.readme or theme.homepage %}
|
||||||
|
{% set readme_link = theme.readme ?: theme.homepage ~ '/blob/develop/README.md' %}
|
||||||
|
<tr>
|
||||||
|
<td>Readme:</td>
|
||||||
|
<td><a href="{{ readme_link }}">{{ readme_link }}</a></td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user