app/views/site/clients/index.html.erb in social_stream-oauth2_server-2.1.1 vs app/views/site/clients/index.html.erb in social_stream-oauth2_server-2.2.0
- old
+ new
@@ -3,57 +3,26 @@
<%= render partial: 'toolbar/home' %>
<section class="site_clients">
<header>
<h3>
- <%= link_to t('site.client.new.link'), new_site_client_path, class: "new_site_client-modal-link", 'data-toggle' => 'modal' %>
+ <%= link_to t('site.client.new.link'), polymorphic_path(resource_class.new, action: 'new'), class: "new_site_client-modal-link", 'data-toggle' => 'modal' %>
- <%= t 'site.client.added' %>
+ Applications
</h3>
</header>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
- <li class="active"><a href="#tab1" data-toggle="tab">Mine</a></li>
- <li><a href="#tab2" data-toggle="tab">Others</a></li>
- </ul>
- <div class="search-nav hidden-phone">
- <%= form_tag search_path, method: 'get', class: "navbar-search pull-left" do %>
- <%= text_field_tag :q, nil, autocomplete: :off, class: 'search-query input-small', placeholder: t('search.name'), "data-min_query" => SocialStream::Search::MIN_QUERY %>
- <% end %>
- <%= javascript_tag do %>
- $(function() {
- SocialStream.SearchHeader.show();
- });
- <% end %>
- <div class="mat">
- <%= render partial: 'layouts/loading' %>
+ <li class="active"><a href="#tab1" data-toggle="tab">Managing</a></li>
+ </ul>
+ </div>
- <div class="query_too_short">
- <%= t 'search.at_least', count: SocialStream::Search::MIN_QUERY %>
- </div>
- <div class="no_results">
- <%= t 'search.nothing' %>
- </div>
-
- <div class="results">
- </div>
- </div>
+ <div class="tab-content">
+ <div class="tab-pane active" id="tab1">
+ <%= render partial: 'list',
+ object: collection %>
</div>
-
-
- <div class="tab-content">
- <div class="tab-pane active" id="tab1">
- <%= render partial: 'list',
- object: @clients %>
- </div>
-
- <div class="tab-pane" id="tab2">
- </div>
- </div>
</div>
-
<%= render partial: 'new.modal' %>
-
- <hr class="soften">
</section>
</section>