Sha256: 39262c1cd7252234aa0c51847b75c66f8ada4958f615dd7cfa544b2a791bbaba

Contents?: true

Size: 944 Bytes

Versions: 5

Compression:

Stored size: 944 Bytes

Contents

<% cache({:locale => Language.locale_id, :format => 'html', :grain_size => @grain_size, :tag_filter => @tag_filter}) do %>
<div id="tag-cloud">
  <fieldset>
    <legend><%= @tag_filter.nil? ? (@grain_size == 'course' ? t('muck.services.courses_tag_cloud_label').html_safe : t('muck.services.resources_tag_cloud_label').html_safe) : t('muck.services.narrow_further') %></legend>
    <% if @tag_cloud.blank? -%>
      <%= t('muck.services.no_tags') %>
    <% else -%>
      <% if @tag_filter %>
        <% tag_cloud @tag_cloud, %w(cloud1 cloud2 cloud3 cloud4 cloud5 cloud6) do |tag, css_class| %>
          <%= filtered_tag_link(tag, @tag_filter, css_class, @grain_size) %>
        <% end %>
      <% else %>
        <% tag_cloud @tag_cloud, %w(cloud1 cloud2 cloud3 cloud4 cloud5 cloud6) do |tag, css_class| %>
          <%= tag_link(tag, css_class, @grain_size) %>
        <% end %>
      <% end %>
    <% end -%>
  </fieldset>
</div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
muck-services-3.3.3 app/views/entries/_tag_cloud.html.erb
muck-services-3.3.2 app/views/entries/_tag_cloud.html.erb
muck-services-3.3.1 app/views/entries/_tag_cloud.html.erb
muck-services-3.3.0 app/views/entries/_tag_cloud.html.erb
muck-services-3.2.2 app/views/entries/_tag_cloud.html.erb