Changed club_app review template to use key.name.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 01 Feb 2009 16:07:37 +0000
changeset 1150 7ec111a4d0f1
parent 1149 c8d2bd7be24f
child 1151 3116b927f4b9
Changed club_app review template to use key.name. This will ensure that if we ever decide to change it to a scoped entity the review template will not break. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/templates/soc/club_app/review.html
--- a/app/soc/templates/soc/club_app/review.html	Sun Feb 01 16:06:22 2009 +0000
+++ b/app/soc/templates/soc/club_app/review.html	Sun Feb 01 16:07:37 2009 +0000
@@ -39,10 +39,10 @@
 
 <tr>
   <td>
-    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.link_id }}?status=accepted'" value="Accept"/>
-    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.link_id }}?status=rejected'" value="Reject"/>
-    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.link_id }}?status=ignored'" value="Ignore"/>
-    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity.link_id }}'" value="Delete"/>
+    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.key.name }}?status=accepted'" value="Accept"/>
+    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.key.name }}?status=rejected'" value="Reject"/>
+    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.key.name }}?status=ignored'" value="Ignore"/>
+    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity.key.name }}'" value="Delete"/>
   </td>
 </tr>
 </table>