app/views/relation/customs/index.html.erb in social_stream-base-1.1.11 vs app/views/relation/customs/index.html.erb in social_stream-base-2.0.0.beta1
- old
+ new
@@ -1,43 +1,24 @@
-<% toolbar :profile, :subject => current_subject, :option => 'contacts' %>
+<section id="relation_customs">
+ <%= render partial: 'toolbar/profile', locals: { :subject => current_subject } %>
-<div id="wrapper_section">
+ <section class="relation_customs">
+ <h2><%= t 'relation_custom.title' %></h2>
- <p class="pageTitle"><%= t 'relation_custom.title' %></p>
-
- <div id="relation_customs" class="privacy_block_section first_block_section">
- <p class="sectionTitle"><%= t 'relation_custom.choose' %></p>
-
-
- <%= javascript_tag do %>
- $(function() {
- $("#loading").hide();
-
- $("#loading").ajaxStart(function(){
- $(this).show();
- });
-
- $("#loading").ajaxStop(function(){
- $(this).hide();
- });
-
- })
- <% end %>
-
- <div id="relation_customs_list">
<%= render :partial => 'relation/customs/list', :object => @customs %>
- </div>
-</div>
+ <div id="permissions">
+ <div class="postit rotate">
+ <span class="rotate-int">
+ <%= t 'permission.postit' %>
+ </span>
+ </div>
+ <%= render partial: 'layouts/loading' %>
+ </div>
-
- <div id="permissions" class="privacy_block_section">
- </div>
-
- <div id="loading"></div>
-
- <%= javascript_tag do %>
- $(function() {
- $("#permissions").hide();
- })
- <% end %>
-</div>
+ <%= javascript_tag do %>
+ $(function() {
+ SocialStream.RelationCustom.index();
+ })
+ <% end %>
+ </section>
+</section>