Skip to content

Instantly share code, notes, and snippets.

@jschoolcraft
Created June 13, 2009 09:39
Show Gist options
  • Save jschoolcraft/129165 to your computer and use it in GitHub Desktop.
Save jschoolcraft/129165 to your computer and use it in GitHub Desktop.
From 53d69b0caf71641b99c14f2238d7c7b85ec6d7f6 Mon Sep 17 00:00:00 2001
From: Jeff Schoolcraft <[email protected]>
Date: Sat, 13 Jun 2009 05:36:50 -0400
Subject: [PATCH] cleaning up ban display on profiles
---
app/views/users/show.html.erb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 232f998..cd7af27 100755
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -20,7 +20,7 @@
<td valign='top'>
<b><%= t(:Date_joined) %>:</b> <%= @user.created_at.strftime date_display %> <br />
<b><%= t(:Posts) %>:</b> <%= @user.posts.size %>, <%= t(:about) %> <%= @posts_percentage %>% <%= t(:of_all_posts_on_this_forum) %><br />
- <b><%= t(:Bans) %>:</b> <%= @user %> <%= t(:has_been_banned) %> <%= @user.ban_times %> g<%= t(:times) %>. <br />
+ <b><%= t(:Bans) %>:</b> <%= @user %> <%= t(:has_been_banned, :count => @user.ban_times) %>. <br />
<% if [email protected]_time.nil? && @user.ban_time > Time.now %>
<h2><%= t(:is_currently_banned, :user => @user) %>!</h2>
<%= t(:banned_by, :user => @user.banned_by.login) %><%= t(:ban_expires_in, :time => time_ago_in_words(@user.ban_time)) %>.<br /><br />
--
1.6.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment