aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Bacherikov <slava@bacher09.org>2012-08-11 21:07:03 +0300
committerSlava Bacherikov <slava@bacher09.org>2012-08-11 21:07:03 +0300
commit2d53cde429dd649e6a98ff14257458137edcc13b (patch)
treed9da19ddf6394437f1085af9bbf0701be496bf07
parentAdd is_dev field for Maintainer model (diff)
downloadgentoo-packages-2d53cde429dd649e6a98ff14257458137edcc13b.tar.gz
gentoo-packages-2d53cde429dd649e6a98ff14257458137edcc13b.tar.bz2
gentoo-packages-2d53cde429dd649e6a98ff14257458137edcc13b.zip
Improve ebuild_table template
-rw-r--r--gpackages/templates/includes/ebuild_table.html27
-rw-r--r--gpackages/templates/includes/ebuild_use_flag.html2
2 files changed, 19 insertions, 10 deletions
diff --git a/gpackages/templates/includes/ebuild_table.html b/gpackages/templates/includes/ebuild_table.html
index 08ca4e4..9a83fb0 100644
--- a/gpackages/templates/includes/ebuild_table.html
+++ b/gpackages/templates/includes/ebuild_table.html
@@ -21,15 +21,24 @@
{{ ebuild.license|license_urlize }}
</div>
<div class="tab-pane{% if table_items.dependences %} active{% endif %}" id="dependences">
- <pre>
- {{ ebuild.depend }}
- </pre>
- <pre>
- {{ ebuild.rdepend }}
- </pre>
- <pre>
- {{ ebuild.pdepend }}
- </pre>
+ {% if ebuild.depend %}
+ <h3>Depen</h3>
+ <pre>
+ {{ ebuild.depend }}
+ </pre>
+ {% endif %}
+ {% if ebuild.rdepend %}
+ <h3>Runtime Depen</h3>
+ <pre>
+ {{ ebuild.rdepend }}
+ </pre>
+ {% endif %}
+ {% if ebuild.pdepend %}
+ <h3>Post-Merge Depen</h3>
+ <pre>
+ {{ ebuild.pdepend }}
+ </pre>
+ {% endif %}
</div>
</div>
</div>
diff --git a/gpackages/templates/includes/ebuild_use_flag.html b/gpackages/templates/includes/ebuild_use_flag.html
index 18a40a2..065d892 100644
--- a/gpackages/templates/includes/ebuild_use_flag.html
+++ b/gpackages/templates/includes/ebuild_use_flag.html
@@ -6,7 +6,7 @@
</colgroup>
<thead>
<tr>
- <th>Use flag</th>
+ <th class="nowrap">Use flag</th>
<th>Description</th>
</tr>
</thead>