summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-06-14 12:14:35 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-06-14 12:14:35 -0500
commitd6f6290a2db83cbcb9829431b37b1c510c28bdd8 (patch)
tree0eea6fe2cfb9a767be3c61b76f02ae7f2f8d6bd4 /src
parentec195f704ae1818f0a0c7eb3eeacf21b271708b9 (diff)
downloadbcfg2-d6f6290a2db83cbcb9829431b37b1c510c28bdd8.tar.gz
bcfg2-d6f6290a2db83cbcb9829431b37b1c510c28bdd8.tar.bz2
bcfg2-d6f6290a2db83cbcb9829431b37b1c510c28bdd8.zip
web_reports: add links to entry view
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html
index e828ff645..5f7579eb9 100644
--- a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html
+++ b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html
@@ -16,10 +16,10 @@
<tr style='text-align: left' ><th>Name</th><th>Timestamp</th><th>State</th><th>Reason</th></tr>
{% for ei, inter, reason in item_data %}
<tr class='{% cycle listview,listview_alt %}'>
- <td>{{ inter.client.name }}</td>
- <td style='white-space: nowrap'>{{ inter.timestamp|date:"Y-m-d\&\n\b\s\p\;H:i"|safe }}</td>
+ <td><a href='{% url Bcfg2.Server.Reports.reports.views.client_detail hostname=inter.client.name, pk=inter.id %}'>{{ inter.client.name }}</a></td>
+ <td style='white-space: nowrap'><a href='{% url Bcfg2.Server.Reports.reports.views.client_detail hostname=inter.client.name, pk=inter.id %}'>{{ inter.timestamp|date:"Y-m-d\&\n\b\s\p\;H:i"|safe }}</a></td>
<td>{{ ei.get_type_display }}</td>
- <td style='white-space: nowrap'>{{ reason.short_list|join:"," }}</td>
+ <td style='white-space: nowrap'><a href="{% url reports_item type=ei.get_type_display pk=ei.pk %}">{{ reason.short_list|join:"," }}</a></td>
</tr>
{% endfor %}
</table>