@filter = MeasureFilter.new
- @filter.criteria = params.merge({'qualifiers' => [@qualifier], 'cols' => ['name', 'description', 'key', 'links']})
+ @filter.criteria = params.merge({'qualifiers' => [@qualifier], :cols => ['name', 'description', 'links'], :sort => 'name'})
@filter.enable_default_display
@filter.execute(self, :user => current_user)
end
<%
display_favourites = logged_in?
- colspan = 7
+ colspan = 5
colspan += 1 if display_favourites
%>
<% if display_favourites %>
<th class="thin" style></th>
<% end %>
- <th class="thin">
+ <th class="thin nowrap">
<%= link_to_function( message('all-projects.cols.name'), "reloadParameters({asc:'#{(!@filter.sort_asc?).to_s}', sort:'name'})") -%>
<% if @filter.sort_key=='name' %>
<%= @filter.sort_asc? ? image_tag("asc12.png") : image_tag("desc12.png") -%>
<% end %>
</th>
<th></th>
- <th>
- <%= link_to_function( message('all-projects.cols.key'), "reloadParameters({asc:'#{(!@filter.sort_asc?).to_s}', sort:'key'})") -%>
- <% if @filter.sort_key=='key' %>
- <%= @filter.sort_asc? ? image_tag("asc12.png") : image_tag("desc12.png") -%>
- <% end %>
- </th>
- <th></th>
<th></th>
<th></th>
<th></th>
<%= qualifier_icon(result.snapshot)-%> <%= link_to(result.snapshot.resource.name(true), {:controller => 'dashboard', :id => result.snapshot.resource_id}, :title => result.snapshot.resource.key) -%>
</td>
<td class="sep"></td>
- <td class="nowrap">
- <span class='small'><%= result.snapshot.resource.kee -%></span>
- </td>
- <td class="sep"></td>
<td>
<%= h result.snapshot.resource.description -%>
</td>