From 5cc6808924cca8f5af071ae9e82e01252944c65b Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sun, 27 Apr 2008 22:47:25 +0000 Subject: [PATCH] ActionItem310: displaying the owner name in the tags blocks --- app/models/tags_block.rb | 2 +- test/unit/tags_block_test.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/tags_block.rb b/app/models/tags_block.rb index 795c1a5..f64592e 100644 --- a/app/models/tags_block.rb +++ b/app/models/tags_block.rb @@ -14,7 +14,7 @@ class TagsBlock < Block end def content - block_title(_('Tags')) + + block_title(_("%s's tags") % owner.name) + "\n
\n"+ tag_cloud( owner.tags, :id, owner.generate_url(:controller => 'profile', :action => 'tag'), diff --git a/test/unit/tags_block_test.rb b/test/unit/tags_block_test.rb index 2b9d334..a3e78c6 100644 --- a/test/unit/tags_block_test.rb +++ b/test/unit/tags_block_test.rb @@ -23,4 +23,8 @@ class TagsBlockTest < Test::Unit::TestCase assert_match /profile\/testinguser\/tag\/third-tag/, block.content end + should 'display owner name in tags' do + assert_match "testinguser's tags", block.content + end + end -- libgit2 0.21.2