Hi all,

Thanks a lot for your hard work on gitorious, this looks like an awesome
tool. It can be quite daunting to install but guides like the one written
by Christian Johansen really help.

I stumbled upon a small problem, the users admin page handed me a
TemplateError whenever I tried to access it. I attached a patch to fix this
error.

Cheers,
BenoƮt Garret

--

You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gitorious?hl=en.


From 6598009edb67329c9b496ce2f4f3e342906c4039 Mon Sep 17 00:00:00 2001
From: Benoit Garret <[email protected]>
Date: Tue, 5 Jan 2010 08:51:35 +0100
Subject: [PATCH] Fix a TemplateError in the users admin view

---
 app/views/admin/users/index.html.erb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb
index d3d24b8..560e245 100644
--- a/app/views/admin/users/index.html.erb
+++ b/app/views/admin/users/index.html.erb
@@ -37,11 +37,11 @@
 		<td><%= user.suspended? ? user.suspended_at.to_s(:short) : t("views.common.no") %></td>
 		<td><%= user.site_admin? ? t("views.common.yes") : t("views.common.no") %></td>
 		<% if user.suspended? -%>
-		<td><%= link_to t("views.users.unsuspend"), unsuspend_admin_user_path(user), :confirm => t("views.common.confirm"), :method => :put %></td>
+		<td><%= link_to t("views.users.unsuspend"), unsuspend_admin_user_path(user.id), :confirm => t("views.common.confirm"), :method => :put %></td>
 		<% else -%>
-		<td><%= link_to t("views.users.suspend"), suspend_admin_user_path(user), :confirm => t("views.common.confirm"), :method => :put %></td>
+		<td><%= link_to t("views.users.suspend"), suspend_admin_user_path(user.id), :confirm => t("views.common.confirm"), :method => :put %></td>
 		<% end -%>
-		<td><%= link_to t("views.users.reset_pwd"), reset_password_admin_user_path(user), :confirm => t("views.common.confirm"), :method => :put %></td>
+		<td><%= link_to t("views.users.reset_pwd"), reset_password_admin_user_path(user.id), :confirm => t("views.common.confirm"), :method => :put %></td>
 	</tr>
 	<% end -%>	
 </table>
-- 
1.6.3.3

Reply via email to