Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Marketplace/templates/plugin-details.twig')
-rw-r--r--plugins/Marketplace/templates/plugin-details.twig78
1 files changed, 18 insertions, 60 deletions
diff --git a/plugins/Marketplace/templates/plugin-details.twig b/plugins/Marketplace/templates/plugin-details.twig
index f2b2726a30..9e44e487ea 100644
--- a/plugins/Marketplace/templates/plugin-details.twig
+++ b/plugins/Marketplace/templates/plugin-details.twig
@@ -13,8 +13,6 @@
{% set latestVersion = '' %}
{% endif %}
- {% set hasChangelog = plugin.isDownloadable and ((latestVersion and latestVersion.readmeHtml.changelog) or plugin.versions|length > 1) %}
-
<div class="row">
<div class="col s12 m9">
<h2>{{ plugin.displayName }}</h2>
@@ -38,18 +36,10 @@
<li class="tab col s3"><a href="#tabs-documentation">{{ 'General_Documentation'|translate }}</a></li>
{% endif %}
- {% if hasChangelog %}
- <li class="tab col s3"><a href="#tabs-changelog">{{ 'CorePluginsAdmin_Changelog'|translate }}</a></li>
- {% endif %}
-
{% if plugin.screenshots|length %}
<li class="tab col s3"><a href="#tabs-screenshots">{{ 'Marketplace_Screenshots'|translate }}</a></li>
{% endif %}
- {% if plugin.support is not empty %}
- <li class="tab col s3"><a href="#tabs-support">{{ 'Marketplace_Support'|translate }}</a></li>
- {% endif %}
-
{% if plugin.shop is defined and plugin.shop and plugin.shop.reviews and plugin.shop.reviews.embedUrl is defined and plugin.shop.reviews.embedUrl %}
<li class="tab col s3"><a href="#tabs-reviews">{{ 'Marketplace_Reviews'|translate }}</a></li>
{% endif %}
@@ -88,41 +78,6 @@
</div>
{% endif %}
- {% if hasChangelog %}
- <div id="tabs-changelog" class="tab-content col s12">
- {{ marketplaceMacro.missingRequirementsPleaseUpdateNotice(plugin) }}
- {% if plugin.canBeUpdated %}
- <div class="alert alert-warning">
- {{ 'Marketplace_PluginUpdateAvailable'|translate(plugin.currentVersion, plugin.latestVersion) }}
- {% if plugin.repositoryChangelogUrl %}<a rel="noreferrer" target="_blank" href="{{ plugin.repositoryChangelogUrl }}">{{ 'Marketplace_ViewRepositoryChangelog'|translate }}</a>{% endif %}
- </div>
- {% endif %}
-
- {% if latestVersion.readmeHtml.changelog %}
- {{ latestVersion.readmeHtml.changelog|raw }}
- {% endif %}
-
- <h3>{{ 'CorePluginsAdmin_History'|translate }}</h3>
-
- <ul>
- {% for version in plugin.versions|reverse %}
- <li>
- {% set versionName %}
- <strong>
- {% if version.repositoryChangelogUrl %}
- <a target="_blank" title="{{ 'CorePluginsAdmin_Changelog'|translate }}" href="{{ version.repositoryChangelogUrl }}">{{ version.name }}</a>
- {% else %}
- {{ version.name }}
- {% endif %}
- </strong>
- {% endset %}
- {{ 'Marketplace_PluginVersionInfo'|translate(versionName, version.release)|raw }}
- </li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
-
{% if plugin.screenshots|length %}
<div id="tabs-screenshots" class="tab-content col s12">
<div class="thumbnails">
@@ -138,20 +93,6 @@
</div>
{% endif %}
- {% if plugin.support is not empty %}
- <div id="tabs-support" class="tab-content col s12">
- <ul>
- {% for entry in plugin.support %}
- {% if entry.name and entry.value %}
- <li>
- {{ entry.name }}: {{ entry.value }}
- </li>
- {% endif %}
- {% endfor %}
- </ul>
- </div>
- {% endif %}
-
{% if plugin.shop is defined and plugin.shop and plugin.shop.reviews and plugin.shop.reviews.embedUrl is defined and plugin.shop.reviews.embedUrl %}
<div id="tabs-reviews" class="tab-content col s12">
<iframe class="reviewIframe"
@@ -285,7 +226,14 @@
{% if plugin.homepage %}
<a target="_blank" rel="noreferrer" href="{{ plugin.homepage }}">{{ 'Marketplace_PluginWebsite'|translate }}</a>,
{% endif %}
- <a target="_blank" href="{{ plugin.repositoryUrl }}">GitHub</a></dd>
+
+ {% if plugin.changelog is defined and plugin.changelog and plugin.changelog.url is defined and plugin.changelog.url %}
+ <a target="_blank" rel="noreferrer" href="{{ plugin.changelog.url }}">{{ 'CorePluginsAdmin_Changelog'|translate }}</a>,
+ {% endif %}
+
+ <a target="_blank" href="{{ plugin.repositoryUrl }}">GitHub</a>
+ </dd>
+
{% if plugin.activity and plugin.activity.numCommits %}
<dt>{{ 'CorePluginsAdmin_Activity'|translate }}</dt>
<dd>
@@ -299,6 +247,16 @@
{% endif %}</dd>
{% endif %}
</dl>
+
+ {% if plugin.support is not empty %}
+ {% for entry in plugin.support %}
+ {% if entry.name and entry.value %}
+ <dt>{{ entry.name }}</dt>
+ <dd>{{ entry.value }}</dd>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+
<br />
</div>
</div>