summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Reports
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-06-14 12:08:35 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-06-14 12:08:35 -0500
commitec195f704ae1818f0a0c7eb3eeacf21b271708b9 (patch)
treeb5f491bc944f173cda5ba96838c27c22afd55589 /src/lib/Bcfg2/Server/Reports
parent08ee6ed4397bdd2c8d1539b5300cd12b3c750246 (diff)
downloadbcfg2-ec195f704ae1818f0a0c7eb3eeacf21b271708b9.tar.gz
bcfg2-ec195f704ae1818f0a0c7eb3eeacf21b271708b9.tar.bz2
bcfg2-ec195f704ae1818f0a0c7eb3eeacf21b271708b9.zip
web_reports: add entry links
Diffstat (limited to 'src/lib/Bcfg2/Server/Reports')
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templates/config_items/common.html2
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templates/config_items/listing.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/common.html b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/common.html
index 570ad645b..d6ad303fc 100644
--- a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/common.html
+++ b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/common.html
@@ -28,7 +28,7 @@
{% for entry, reason, interaction in type_list %}
<tr class='{% cycle listview,listview_alt %}'>
<td>{{ entry.kind }}</td>
- <td><a href="{% url reports_item type=type_name pk=interaction.0 %}">{{ entry.name }}</a></td>
+ <td><a href="{% url reports_entry eid=entry.pk %}">{{ entry.name }}</a></td>
<td>{{ interaction|length }}</td>
<td><a href="{% url reports_item type=type_name pk=interaction.0 %}">{{ reason.short_list|join:"," }}</a></td>
</tr>
diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/listing.html b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/listing.html
index bc883098d..0a92e7fc0 100644
--- a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/listing.html
+++ b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/listing.html
@@ -21,7 +21,7 @@
<tr style='text-align: left' ><th>Name</th><th>Count</th><th>Reason</th></tr>
{% for entry, reason, eis in type_data %}
<tr class='{% cycle listview,listview_alt %}'>
- <td><a href="{% url reports_item type=mod_or_bad,pk=eis.0 %}">{{entry.name}}</a></td>
+ <td><a href="{% url reports_entry eid=entry.pk %}">{{entry.name}}</a></td>
<td>{{ eis|length }}</td>
<td><a href="{% url reports_item type=mod_or_bad,pk=eis.0 %}">{{ reason.short_list|join:"," }}</a></td>
</tr>