Links in plugins and themes details open in a new tab. Fixes #33

This commit is contained in:
Flavio Copes
2015-08-10 08:31:46 +02:00
parent 46c0e1c44b
commit 09d176cab5
2 changed files with 11 additions and 11 deletions

View File

@@ -4,7 +4,7 @@
<td>Author:</td>
<td>
{% if plugin.author.url %}
<a href="{{ plugin.author.url }}">{{ plugin.author.name }}</a>
<a href="{{ plugin.author.url }}" target="_blank">{{ plugin.author.name }}</a>
{% else %}
{{ plugin.author.name }}
{% endif %}
@@ -17,19 +17,19 @@
{% if plugin.homepage %}
<tr>
<td>Homepage:</td>
<td><a href="{{ plugin.homepage }}">{{ plugin.homepage }}</a></td>
<td><a href="{{ plugin.homepage }}" target="_blank">{{ plugin.homepage }}</a></td>
</tr>
{% endif %}
{% if plugin.demo %}
<tr>
<td>Demo:</td>
<td><a href="{{ plugin.demo }}">{{ plugin.demo }}</a></td>
<td><a href="{{ plugin.demo }}" target="_blank">{{ plugin.demo }}</a></td>
</tr>
{% endif %}
{% if plugin.bugs %}
<tr>
<td>Bug Tracker:</td>
<td><a href="{{ plugin.bugs }}">{{ plugin.bugs }}</a></td>
<td><a href="{{ plugin.bugs }}" target="_blank">{{ plugin.bugs }}</a></td>
</tr>
{% endif %}
{% if plugin.keywords %}
@@ -56,8 +56,8 @@
{% set readme_link = plugin.readme ?: plugin.homepage ~ '/blob/develop/README.md' %}
<tr>
<td>Readme:</td>
<td><a href="{{ readme_link }}">{{ readme_link }}</a></td>
<td><a href="{{ readme_link }}" target="_blank">{{ readme_link }}</a></td>
</tr>
{% endif %}
</table>
</table>

View File

@@ -38,7 +38,7 @@
<td>Author:</td>
<td>
{% if theme.author.url %}
<a href="{{ theme.author.url }}">{{ theme.author.name }}</a>
<a href="{{ theme.author.url }}" target="_blank">{{ theme.author.name }}</a>
{% else %}
{{ theme.author.name }}
{% endif %}
@@ -51,19 +51,19 @@
{% if theme.homepage %}
<tr>
<td>Homepage:</td>
<td><a href="{{ theme.homepage }}">{{ theme.homepage }}</a></td>
<td><a href="{{ theme.homepage }}" target="_blank">{{ theme.homepage }}</a></td>
</tr>
{% endif %}
{% if theme.demo %}
<tr>
<td>Demo:</td>
<td><a href="{{ theme.demo }}">{{ theme.demo }}</a></td>
<td><a href="{{ theme.demo }}" target="_blank">{{ theme.demo }}</a></td>
</tr>
{% endif %}
{% if theme.bugs %}
<tr>
<td>Bug Tracker:</td>
<td><a href="{{ theme.bugs }}">{{ theme.bugs }}</a></td>
<td><a href="{{ theme.bugs }}" target="_blank">{{ theme.bugs }}</a></td>
</tr>
{% endif %}
{% if theme.keywords %}
@@ -89,7 +89,7 @@
{% set readme_link = theme.readme ?: theme.homepage ~ '/blob/develop/README.md' %}
<tr>
<td>Readme:</td>
<td><a href="{{ readme_link }}">{{ readme_link }}</a></td>
<td><a href="{{ readme_link }}" target="_blank">{{ readme_link }}</a></td>
</tr>
{% endif %}
</table>