app/views/keywords/_wrapper.html.haml

Summary

Maintainability
Test Coverage
:ruby
  width_limited = (defined? width_limited and width_limited)
  mine = (defined? mine and mine)
  id ||= nil

.context-fix
  .ui-resources-holder.pal{:class => width_limited ? "limited-width" : "", id: id}
    .ui-resources-header
      %h2.title-l.ui-resources-title
        = "#{title}"
        - if defined? link
          %a.strong{:href => link} 
            = _("Show all")
    %ul.ui-tag-cloud
      - keywords.each do |keyword|
        = render :partial => "keywords/keyword", :locals => {:keyword => keyword, :mine => mine}