Skip to content

Commit

Permalink
refs #4338 link to github changelog if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Nov 26, 2013
1 parent bd81ba0 commit f914d0d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions plugins/CorePluginsAdmin/MarketplaceApiClient.php
Expand Up @@ -100,6 +100,7 @@ public function getInfoOfPluginsHavingUpdate($plugins, $themesOnly)

foreach ($hasUpdates as $pluginHavingUpdate) {
$plugin = $this->getPluginInfo($pluginHavingUpdate['name']);
$plugin['repositoryChangelogUrl'] = $pluginHavingUpdate['repositoryChangelogUrl'];

if (!empty($plugin['isTheme']) == $themesOnly) {
$pluginDetails[] = $plugin;
Expand Down
6 changes: 5 additions & 1 deletion plugins/CorePluginsAdmin/templates/macros.twig
Expand Up @@ -18,7 +18,11 @@
{{ plugin.name }}
</td>
<td class="vers">
{{ plugin.currentVersion }} => {{ plugin.latestVersion }}
{% if plugin.repositoryChangelogUrl %}
<a title="Changelog" target="_blank" href="{{ plugin.repositoryChangelogUrl }}">{{ plugin.currentVersion }} => {{ plugin.latestVersion }}</a>
{% else %}
{{ plugin.currentVersion }} => {{ plugin.latestVersion }}
{% endif %}
</td>
<td class="desc">
{{ plugin.description }}
Expand Down
10 changes: 9 additions & 1 deletion plugins/CorePluginsAdmin/templates/pluginDetails.twig
Expand Up @@ -70,7 +70,15 @@

<ul>
{% for version in plugin.versions %}
<li><strong>{{ version.name }}</strong> from {{ version.release|date }}</li>
<li>
<strong>
{% if version.repositoryChangelogUrl %}
<a target="_blank" title="Changelog" href="{{ version.repositoryChangelogUrl }}">{{ version.name }}</a>
{% else %}
{{ version.name }}
{% endif %}
</strong>
from {{ version.release|date }}</li>
{% endfor %}
</ul>
</div>
Expand Down

0 comments on commit f914d0d

Please sign in to comment.