Skip to content

Commit

Permalink
refs #4338 format date, fixed some positions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Nov 27, 2013
1 parent 493e1e2 commit 3c08ab4
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 11 deletions.
9 changes: 9 additions & 0 deletions plugins/CorePluginsAdmin/Marketplace.php
Expand Up @@ -133,6 +133,15 @@ private function enrichPluginInformation($plugin)
$plugin['activity']['lastCommitDate'] = null;
}

if (!empty($plugin['versions'])) {

$dateFormat = Piwik::translate('CoreHome_DateFormat');

foreach ($plugin['versions'] as $index => $version) {
$plugin['versions'][$index]['release'] = Date::factory($version['release'])->getLocalized($dateFormat);
}
}

return $plugin;
}

Expand Down
14 changes: 12 additions & 2 deletions plugins/CorePluginsAdmin/stylesheets/marketplace.less
Expand Up @@ -84,6 +84,8 @@
display: inline-block;
background-color: #ffffe0;
border-radius: 3px;
margin-top: 1px;
margin-bottom: 16px;

a {
color: #9b7a44;
Expand All @@ -103,10 +105,14 @@
&.even {
padding-right: 0px;
width: 140px;
overflow: hidden;
white-space: nowrap;
}
&.odd {
padding-right: 0px;
width: 130px;
overflow: hidden;
white-space: nowrap;
}
}

Expand Down Expand Up @@ -149,7 +155,7 @@

.footer {
position: absolute;
bottom: 6px;
bottom: 4px;
left: 0px;
right: 0px;
cursor: pointer;
Expand Down Expand Up @@ -221,7 +227,7 @@
line-height: 20px;

h3, h4, h5, h6 {
margin: 10px 0px;
margin: 20px 0px 10px 0px;
color: #000000;
}

Expand Down Expand Up @@ -318,6 +324,10 @@
text-decoration: none;
}

.install:hover {
text-decoration: underline;
}

dt {
font-weight: bold;
line-height: 20px;
Expand Down
6 changes: 3 additions & 3 deletions plugins/CorePluginsAdmin/templates/macros.twig
Expand Up @@ -15,13 +15,13 @@
{% for name,plugin in pluginsHavingUpdate %}
<tr {% if plugin.isActivated %}class="highlighted"{% endif %}>
<td class="name">
<a href="javascript:return;" data-pluginName="{{ plugin.name|e('html_attr') }}">
<a href="javascript:false;" data-pluginName="{{ plugin.name|e('html_attr') }}">
{{ plugin.name }}
</a>
</td>
<td class="vers">
{% if plugin.repositoryChangelogUrl %}
<a href="javascript:return;" title="Changelog" data-activePluginTab="changelog" data-pluginName="{{ plugin.name|e('html_attr') }}">{{ plugin.currentVersion }} => {{ plugin.latestVersion }}</a>
<a href="javascript:false;" title="Changelog" data-activePluginTab="changelog" data-pluginName="{{ plugin.name|e('html_attr') }}">{{ plugin.currentVersion }} => {{ plugin.latestVersion }}</a>
{% else %}
{{ plugin.currentVersion }} => {{ plugin.latestVersion }}
{% endif %}
Expand Down Expand Up @@ -117,7 +117,7 @@
{% if plugin.isCorePlugin or plugin.info.version == 'Unknown'|translate %}
{{ name }}
{% else %}
<a href="javascript:return;" data-pluginName="{{ name|e('html_attr') }}">
<a href="javascript:false;" data-pluginName="{{ name|e('html_attr') }}">
{{ name }}
</a>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions plugins/CorePluginsAdmin/templates/pluginDetails.twig
Expand Up @@ -75,7 +75,7 @@
<h3>History</h3>

<ul>
{% for version in plugin.versions %}
{% for version in plugin.versions|reverse %}
<li>
<strong>
{% if version.repositoryChangelogUrl %}
Expand All @@ -84,7 +84,7 @@
{{ version.name }}
{% endif %}
</strong>
from {{ version.release|date }}</li>
from {{ version.release }}</li>
{% endfor %}
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions plugins/CorePluginsAdmin/templates/pluginOverview.twig
Expand Up @@ -15,11 +15,11 @@


<h3 class="header" title="Click for more details">
<a href="javascript:return;" class="more">{{ plugin.name }}</a>
<a href="javascript:false;" class="more">{{ plugin.name }}</a>
</h3>
<p class="description">{{ plugin.description }}
<br />
<a href="javascript:return;" title="Click for more details" class="more">&gt;&gt; more</a>
<a href="javascript:false;" title="Click for more details" class="more">&gt;&gt; more</a>
</p>
{% if plugin.canBeUpdated %}
<p class="updateAvailableNotice" data-activePluginTab="changelog">You can update this plugin from version {{ plugin.currentVersion }} to {{ plugin.latestVersion }}</p>
Expand Down
4 changes: 2 additions & 2 deletions plugins/CorePluginsAdmin/templates/themeOverview.twig
Expand Up @@ -14,12 +14,12 @@
{% endif %}

<h3 class="header" title="Click for more details">
<a href="javascript:return;" class="more">{{ plugin.name }}</a>
<a href="javascript:false;" class="more">{{ plugin.name }}</a>
</h3>

<p class="description">{% if plugin.featured %}{{ plugins.featuredIcon('right') }}{% endif %}{{ plugin.description }}</p>

<a href="javascript:return;" class="more"><img title="Click for more details"
<a href="javascript:false;" class="more"><img title="Click for more details"
class="preview" src="{{ plugin.screenshots|first }}?w=250&h=250"/></a>

{% if plugin.canBeUpdated %}
Expand Down

0 comments on commit 3c08ab4

Please sign in to comment.