瀏覽代碼

Hide language and type if they are not interesting

Jordi Boggiano 9 年之前
父節點
當前提交
892446d936
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Packagist/WebBundle/Resources/views/Package/viewPackage.html.twig

+ 2 - 2
src/Packagist/WebBundle/Resources/views/Package/viewPackage.html.twig

@@ -155,8 +155,8 @@
                             {% if package.gitHubWatches is not null %}<p><span>Watchers:</span> {{ package.gitHubWatches|number_format(0, '.', '&#8201;')|raw }}</p>{% endif %}
                             {% if package.gitHubForks is not null %}<p><span>Forks:</span> {{ package.gitHubForks|number_format(0, '.', '&#8201;')|raw }}</p>{% endif %}
                             {% if package.gitHubOpenIssues is not null %}<p><span>Open Issues:</span> {{ package.gitHubOpenIssues|number_format(0, '.', '&#8201;')|raw }}</p>{% endif %}
-                            {% if package.language is not empty %}<p><span>Language:</span> {{ package.language }}</p>{% endif %}
-                            {% if package.type is not empty %}<p><span>Type:</span> {{ package.type }}</p>{% endif %}
+                            {% if package.language is not empty and package.language != 'PHP' %}<p><span>Language:</span> {{ package.language }}</p>{% endif %}
+                            {% if package.type is not empty and package.type != 'library' %}<p><span>Type:</span> {{ package.type }}</p>{% endif %}
                         </div>
                     </div>
                 </div>