Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make the secondary nav header same for all tabs

  • Loading branch information...
commit 92a12ba154c77d5255dd99752ab9c65bf85e2712 1 parent 62ca036
@neerajdotname neerajdotname authored
View
2  app/views/admin_data/shared/_breadcrum.html.erb
@@ -9,7 +9,7 @@
<% if params[:klass] && !(params[:action] == 'show') %>
<span class='description'>
- (<%= pluralize(@klass.count, 'record') %> )
+ (Total <%= pluralize(@klass.count, 'record') %> )
</span>
<% end %>
View
45 app/views/layouts/search.html.erb
@@ -1,37 +1,36 @@
<div id='main'>
-<div class="block" id="block-text">
+
+ <%= breadcrum do %>
+ <%= link_to @klass, admin_data_search_path(:klass => @klass.name) %>
+ <% end %>
- <div>
- <h1 class='listing_klass'> Listing <%=@klass.name%></h1>
- <h3 class='total_records_info_klass'><%=total_records_info(@klass)%></h3>
- <div class='clear'></div>
- </div>
+ <div class="block" id="block-text">
- <div class="secondary-navigation">
- <%= render 'admin_data/shared/secondary_navigation', :klass => @klass %>
- <div class="clear"></div>
- </div>
+ <div class="secondary-navigation">
+ <%= render 'admin_data/shared/secondary_navigation', :klass => @klass %>
+ <div class="clear"></div>
+ </div>
- <div class="content">
- <%= yield %>
- </div>
+ <div class="content">
+ <%= yield %>
+ </div>
- <div class='clear'></div>
+ <div class='clear'></div>
- <div class='main2 rounded'>
- <div class="block" id="block-tables">
- <div class="content">
- <div class='inner'>
- <div id='results'>
- <% if params[:action] == 'quick_search' %>
- <%= render 'admin_data/search/search/listing', :klass => @klass, :records => @records %>
- <% end %>
+ <div class='main2 rounded'>
+ <div class="block" id="block-tables">
+ <div class="content">
+ <div class='inner'>
+ <div id='results'>
+ <% if params[:action] == 'quick_search' %>
+ <%= render 'admin_data/search/search/listing', :klass => @klass, :records => @records %>
+ <% end %>
+ </div>
</div>
</div>
</div>
</div>
</div>
</div>
-</div>
<%= parent_layout 'admin_data' %>
Please sign in to comment.
Something went wrong with that request. Please try again.