Skip to content

Commit

Permalink
display id for the primary column
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh committed Sep 23, 2011
1 parent 4442645 commit 4a69c1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/admin_data/search/search/_listing.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<thead>
<tr class='thead'>
<% columns_order(klass).each do |column| %>
<th class='<%=get_sort_class(column)%>' data-sortby='<%=get_sort_order(column)%>'>
<th class='<%=get_sort_class(column)%>' data-sortby='<%=get_sort_order(column)%>'>
<%= get_sort_title_with_url(column, klass) %>
</th>
<% end %>
Expand All @@ -25,7 +25,8 @@
<% columns_order(klass).each do |column| %>
<td>
<% if (column == klass.primary_key) %>
<%= link_to(record.to_param.to_s, admin_data_path(:klass => klass.name.underscore, :id => record_id(record))) %>
<%#= link_to(record.to_param.to_s, admin_data_path(:klass => klass.name.underscore, :id => record_id(record))) %>
<%= link_to(record.send(column), admin_data_path(:klass => klass.name.underscore, :id => record_id(record))) %>
<% else %>
<%=h get_value_for_column(column_native(klass, column), record) %>
<% end %>
Expand Down

0 comments on commit 4a69c1a

Please sign in to comment.