<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,7 @@
 module Admin::ThemesHelper
+  def theme_author_link theme
+    author = theme.author || 'unknown'
+    homepage = theme.homepage
+    homepage.blank? ? h(author) : link_to(h(author), homepage)
+  end
 end</diff>
      <filename>app/helpers/admin/themes_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 class Theme
+
+
   @@root_theme_files   = %w(about.yml preview.png)
   @@theme_directories  = %w(templates layouts javascripts stylesheets images)
   @@allowed_extensions = %w(.js .css .png .gif .jpg .swf .ico) | Site.extensions
@@ -88,11 +90,6 @@ class Theme
     @title = properties['title'] || name
   end
 
-  def linked_author
-    class &lt;&lt; self ; attr_reader :linked_author ; end
-    @linked_author = homepage.blank? ? author : %(&lt;a href=&quot;#{CGI.escapeHTML homepage}&quot;&gt;#{author}&lt;/a&gt;)
-  end
-
   def attachments
     class &lt;&lt; self ; attr_reader :attachments ; end
     @attachments, @templates, @resources = Attachments.new, Templates.new, Resources.new
@@ -154,4 +151,4 @@ class Theme
         file_class.open((relative_path + full_path.relative_path_from(path)).to_s, write_mode) { |f| f &lt;&lt; full_path.read }
       end
     end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/theme.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@
         &lt;span title=&quot;stored in /&lt;%=h theme.name %&gt;&quot;&gt;&lt;%=h theme.title %&gt;&lt;/span&gt;
         &lt;span class=&quot;thememeta&quot;&gt;
           &lt;% unless theme.version.blank? -%&gt;v&lt;%=h theme.version %&gt; |&lt;% end -%&gt;
-          by &lt;%=h theme.linked_author.blank? ? 'unknown' : theme.linked_author %&gt;
+          by &lt;%= theme_author_link(theme) %&gt;
         &lt;/span&gt;
       &lt;/h3&gt;
       &lt;a id=&quot;theme-dialog-&lt;%= theme_counter %&gt;&quot; class=&quot;theme_dialog&quot;&gt;</diff>
      <filename>app/views/admin/themes/_theme.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;div id=&quot;theme-info&quot; class=&quot;clearfix&quot;&gt;
   &lt;h3&gt;
-    &lt;%=h @theme.title %&gt; (v&lt;%=h @theme.version %&gt;)by &lt;% if @theme.author %&gt;&lt;a href=&quot;&lt;%=h @theme.homepage %&gt;&quot;&gt;&lt;%=h @theme.author %&gt;&lt;/a&gt;&lt;% else %&gt;Unknown&lt;% end %&gt;
+    &lt;%=h @theme.title %&gt; (v&lt;%=h @theme.version %&gt;)by &lt;%= theme_author_link(@theme) %&gt;
     &lt;%= link_to_function 'close', 'Dialog.close()', :id =&gt; 'close-dialog' %&gt;
   &lt;/h3&gt;
   &lt;div id=&quot;screenshot&quot;&gt;</diff>
      <filename>app/views/admin/themes/_tools.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5c568b5587cd3df6021e80e021485db75d3b9e44</id>
    </parent>
  </parents>
  <author>
    <name>Eric Kidd</name>
    <email>git@randomhacks.net</email>
  </author>
  <url>http://github.com/emk/mephisto/commit/1473acf8307ec21d2002acab94691841d8003580</url>
  <id>1473acf8307ec21d2002acab94691841d8003580</id>
  <committed-date>2009-02-01T18:14:10-08:00</committed-date>
  <authored-date>2009-02-01T18:14:10-08:00</authored-date>
  <message>Fix display of theme homepage links

Many thanks to Gustavo Sales (aka vatsu) for pointing out this bug and
proposing a fix:

http://github.com/vatsu/mephisto/commit/e7b0ecaaca4457dd7d542ac218baf979e1b7a190
http://github.com/vatsu/mephisto/commit/fbe32e923ad6dfb963a8311053214b3395aeb37b

In order to minimize code duplication in the *.erb files, I've rewritten
this code as a helper method.</message>
  <tree>33323a79d12d193b35a3b1ea4cc1dc8bfbc9d40f</tree>
  <committer>
    <name>Eric Kidd</name>
    <email>git@randomhacks.net</email>
  </committer>
</commit>
