summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-10-19 11:00:20 -0500
committerDan McGee <dan@archlinux.org>2014-10-19 11:00:20 -0500
commite16ae46a2f1f84f0841f175fa14a8a858f3b3cd1 (patch)
treeabe2f70f7347768ac6e02d45f4f1102b98fad976
parentff09c7877e58ddadaf677bf133cd110711bbc5a8 (diff)
Fix Jinja2 render in no-packager case
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/packages/details.html.jinja6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/packages/details.html.jinja b/templates/packages/details.html.jinja
index 0b5d0ae8..21be80f5 100644
--- a/templates/packages/details.html.jinja
+++ b/templates/packages/details.html.jinja
@@ -69,10 +69,10 @@
<meta itemprop="fileSize" content="{{ pkg.compressed_size }}"/>
<meta itemprop="dateCreated" content="{{ pkg.build_date|date("Y-m-d") }}"/>
<meta itemprop="datePublished" content="{{ pkg.last_update|date("Y-m-d") }}"/>
- <meta itemprop="operatingSystem" content="Linux"/>
- <div style="display:none" itemprop="provider" itemscope itemtype="http://schema.org/Person">
+ <meta itemprop="operatingSystem" content="Arch Linux"/>
+ {% if pkg.packager %}<div style="display:none" itemprop="provider" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="{{ pkg.packager.get_full_name()|escape }}"/>
- </div>
+ </div>{% endif %}
<table id="pkginfo">
<tr>
<th>Architecture:</th>