forked from insoshi/insoshi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed profile tab rendering by hiding, rendering, and then showing al…
…l at once
- Loading branch information
Showing
3 changed files
with
39 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<div> | ||
<% tabs = TabsRenderer.new(self, :id => "tabCol") %> | ||
<% tabs.create('tProfile', 'Profile', :class => "profile vcard") do %> | ||
<%= render :partial => 'profile' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
<div id="profile" style="display: none;"> | ||
<% tabs = TabsRenderer.new(self, :id => "tabCol") %> | ||
<% tabs.create('tProfile', 'Profile', :class => "profile vcard") do %> | ||
<%= render :partial => 'profile' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
|
||
<% tabs.create('tWall', 'Wall') do %> | ||
<%= render :partial => 'wall' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
<% tabs.create('tWall', 'Wall') do %> | ||
<%= render :partial => 'wall' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
|
||
<% tabs.create('tRecentActivity', 'Recent Activity') do %> | ||
<%= render :partial => 'recent_activity' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
<% tabs.create('tRecentActivity', 'Recent Activity') do %> | ||
<%= render :partial => 'recent_activity' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
|
||
<% tabs.create('tContacts', 'Contacts') do %> | ||
<%= render :partial => 'profile_contacts' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
<% tabs.create('tContacts', 'Contacts') do %> | ||
<%= render :partial => 'profile_contacts' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
|
||
<% tabs.create('tBlog', 'Blog') do %> | ||
<%= render :partial => 'shared/blog' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
<% tabs.create('tBlog', 'Blog') do %> | ||
<%= render :partial => 'shared/blog' %> | ||
<div class="clear"></div> | ||
<% end %> | ||
|
||
<% tabs.create('tGalleries', 'Galleries') do %> | ||
<%= render :partial => "shared/galleries", | ||
:locals => { :galleries => @galleries } %> | ||
<div class="clear"></div> | ||
<% end %> | ||
<% tabs.create('tGalleries', 'Galleries') do %> | ||
<%= render :partial => "shared/galleries", | ||
:locals => { :galleries => @galleries } %> | ||
<div class="clear"></div> | ||
<% end %> | ||
|
||
<%= tabs.render %> | ||
<%= tabs.render %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters