if @permission
  @tags.each do |tag|
    span(:class => "tagcloud_#{tag.level}") do
      json_data = {
        :current_tiddler => "tiddler_0",
        :tag_element => tag.element_id,
        :tag_name => tag.name,
        :url => url_for(:action => "view_tag", :id => tag.id)
      }.to_json
      
      a(:href => "javascript:;",
        :onclick => "openTag('#{ERB::Util.html_escape(json_data)}')") do
        h(tag.name)
      end
    end
  end
end