<ul class="repository-item">
	<%= render partial: 'repositories/resource-add' %> 
  <% subject_resources(profile_or_current_subject, {:scope => scope, :limit => 0}).each do |resource| %>
    	<%= render :partial => 'repositories/resource', :locals => { :resource => resource } %>
  <% end %> 
</ul>

<%= content_for :javascript do %>
  $(document).ready(function() {
    console.log($(".resource").width());
    $(".resource").fitText(0.4);
  });
<% end %>

<ul class="repository-item">
	<%= render partial: 'repositories/resource-add' %> 
  <% subject_resources(profile_or_current_subject, {:scope => scope, :limit => 0}).each do |resource| %>
    	<%= render :partial => 'repositories/resource', :locals => { :resource => resource } %>
  <% end %> 
</ul>

<%= content_for :javascript do %>
  $('a[href="#tab3"]').on('shown', function (e) {
    $(".resource").fitText(0.4);
  });
<% end %>

Fix resources icon scale javascript
Fix resources icon scale javascript
