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:
Andy Miller
2015-07-29 08:07:57 -06:00
2 changed files with 17 additions and 0 deletions

View File

@@ -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>

View File

@@ -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>