##// END OF EJS Templates
Moved wiki links tests together....
Moved wiki links tests together. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8254 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r7259:38a2ce645bee
r8134:c8066879dba8
Show More
_tabs.html.erb
28 lines | 1.1 KiB | text/plain | TextLexer
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 <% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
<div class="tabs">
<ul>
<% tabs.each do |tab| -%>
<li><%= link_to l(tab[:label]), { :tab => tab[:name] },
:id => "tab-#{tab[:name]}",
:class => (tab[:name] != selected_tab ? nil : 'selected'),
:onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
<% end -%>
</ul>
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 <div class="tabs-buttons" style="display:none;">
Toshi MARUYAMA
replace tabs to spaces at app/views/common/_tabs.html.erb...
r7259 <button class="tab-left" onclick="moveTabLeft(this);"></button>
<button class="tab-right" onclick="moveTabRight(this);"></button>
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 </div>
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 </div>
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 <script>
Toshi MARUYAMA
replace tabs to spaces at app/views/common/_tabs.html.erb...
r7259 Event.observe(window, 'load', function() { displayTabsButtons(); });
Event.observe(window, 'resize', function() { displayTabsButtons(); });
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 </script>
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 <% tabs.each do |tab| -%>
Toshi MARUYAMA
remove trailing white-spaces from app/views/common/_tabs.html.erb...
r7148 <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 :id => "tab-content-#{tab[:name]}",
:style => (tab[:name] != selected_tab ? 'display:none' : nil),
:class => 'tab-content') %>
<% end -%>