smolt/smolt-1.4.3-mod_proxy.patch

61 lines
4.6 KiB
Diff
Raw Normal View History

diff -up smolt-1.4.3/smoon/hardware/templates/report_device_ratings.html.mod_proxy smolt-1.4.3/smoon/hardware/templates/report_device_ratings.html
--- smolt-1.4.3/smoon/hardware/templates/report_device_ratings.html.mod_proxy 2010-02-27 12:05:44.000000000 -0700
+++ smolt-1.4.3/smoon/hardware/templates/report_device_ratings.html 2010-03-06 15:07:03.000000000 -0700
@@ -23,7 +23,7 @@
<tr><th>${_("Rating")}</th><th>${_("Device Name")}</th><th>${_("Ratings")}</th></tr>
<tr py:for="device in device_ratings">
<td><img src="/static/images/rating/r${device.rating}.png"/></td>
- <td><a href='/reports/view_device/${device.description.replace("/", "%2F")}'>${device.description}</a></td>
+ <td><a href='/reports/view_device/?device=${device.description.replace("/", "%2F")}'>${device.description}</a></td>
<td>${device[2]}</td>
</tr>
</table>
diff -up smolt-1.4.3/smoon/hardware/templates/report_recent.html.mod_proxy smolt-1.4.3/smoon/hardware/templates/report_recent.html
--- smolt-1.4.3/smoon/hardware/templates/report_recent.html.mod_proxy 2010-02-27 12:05:44.000000000 -0700
+++ smolt-1.4.3/smoon/hardware/templates/report_recent.html 2010-03-06 15:01:35.000000000 -0700
@@ -24,7 +24,7 @@
<table>
<tr><th>${_('Description')}</th><th>${_('Date Added')}</th></tr>
<tr py:for="devices in recent_devices">
- <td><a href='/reports/view_device/${devices.description}'>${devices.description}</a></td>
+ <td><a href='/reports/view_device/?device=${devices.description.replace("/", "%2F")}'>${devices.description}</a></td>
<td>${devices.date_added}</td>
</tr>
</table>
diff -up smolt-1.4.3/smoon/hardware/templates/report_view_device.html.mod_proxy smolt-1.4.3/smoon/hardware/templates/report_view_device.html
--- smolt-1.4.3/smoon/hardware/templates/report_view_device.html.mod_proxy 2010-02-27 12:05:44.000000000 -0700
+++ smolt-1.4.3/smoon/hardware/templates/report_view_device.html 2010-03-06 15:01:59.000000000 -0700
@@ -28,7 +28,7 @@
<table>
<tr><th>${_("Description")}</th><th>${_("Rating")}</th><th>${_("Rating Count")}</th><th>${_("Vendor:Device:Subvend:Subdevice")}</th></tr>
<tr py:for="device in found">
- <td><a href='/reports/view_device/${device.description.replace("/", "%2F")}'>${device.description}</a></td>
+ <td><a href='/reports/view_device/?device=${device.description.replace("/", "%2F")}'>${device.description}</a></td>
<td><img src="/static/images/rating/r${device.rating}.png"/></td>
<td>${device[1]}</td>
<td>${device.vendor_id}:${device.device_id}:${device.subsys_vendor_id}:${device.subsys_device_id}</td>
diff -up smolt-1.4.3/smoon/hardware/templates/report_view_devices.html.mod_proxy smolt-1.4.3/smoon/hardware/templates/report_view_devices.html
--- smolt-1.4.3/smoon/hardware/templates/report_view_devices.html.mod_proxy 2010-02-27 12:05:44.000000000 -0700
+++ smolt-1.4.3/smoon/hardware/templates/report_view_devices.html 2010-03-06 15:09:32.000000000 -0700
@@ -27,7 +27,7 @@
<table>
<tr><th>${_("Description")}</th><th>${_("Rating")}</th><th>${_("Rating Count")}</th></tr>
<tr py:for="device in found">
- <td><a href='/reports/view_device/${device.description.replace("/", "%2F")}'>${device.description}</a></td>
+ <td><a href='/reports/view_device/?device=${device.description.replace("/", "%2F")}'>${device.description}</a></td>
<td><img src="/static/images/rating/r${device.rating}.png"/></td>
<td>${device[1]}</td>
</tr>
diff -up smolt-1.4.3/smoon/hardware/templates/show.html.mod_proxy smolt-1.4.3/smoon/hardware/templates/show.html
--- smolt-1.4.3/smoon/hardware/templates/show.html.mod_proxy 2010-02-27 12:05:44.000000000 -0700
+++ smolt-1.4.3/smoon/hardware/templates/show.html 2010-03-06 15:05:07.000000000 -0700
@@ -64,7 +64,7 @@ ${ET(ratingwidget.display(update="rating
<div py:if="not admin"><img src="/static/images/rating/r${device.get('rating')}.png"/></div>
<div py:if="admin" class="rating" id="Host${host_object.uuid}@Device${device.get('id')}">${device.get('rating')}</div>
</td>
- <td><a href="/reports/view_device/${device.description}">${device.get('name')}</a> (<a href="${device.get('link')}">${_("wiki")}</a>)</td>
+ <td><a href="/reports/view_device/?device=${device.description}">${device.get('name')}</a> (<a href="${device.get('link')}">${_("wiki")}</a>)</td>
<td align='center'>${device.get('cls')}</td>
</tr>
</table>