]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/common/_tabs.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 00:04:32 +0000 (00:04 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 00:04:32 +0000 (00:04 +0000)
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6544 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/common/_tabs.html.erb [new file with mode: 0644]
app/views/common/_tabs.rhtml [deleted file]

diff --git a/app/views/common/_tabs.html.erb b/app/views/common/_tabs.html.erb
new file mode 100644 (file)
index 0000000..c99c6a9
--- /dev/null
@@ -0,0 +1,28 @@
+<% 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>
+  <div class="tabs-buttons" style="display:none;">
+       <button class="tab-left" onclick="moveTabLeft(this);"></button>
+       <button class="tab-right" onclick="moveTabRight(this);"></button>
+  </div>
+</div>
+
+<script>
+       Event.observe(window, 'load', function() { displayTabsButtons(); });
+       Event.observe(window, 'resize', function() { displayTabsButtons(); }); 
+</script>
+
+<% tabs.each do |tab| -%>
+  <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ), 
+                       :id => "tab-content-#{tab[:name]}",
+                       :style => (tab[:name] != selected_tab ? 'display:none' : nil),
+                       :class => 'tab-content') %>
+<% end -%>
diff --git a/app/views/common/_tabs.rhtml b/app/views/common/_tabs.rhtml
deleted file mode 100644 (file)
index c99c6a9..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<% 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>
-  <div class="tabs-buttons" style="display:none;">
-       <button class="tab-left" onclick="moveTabLeft(this);"></button>
-       <button class="tab-right" onclick="moveTabRight(this);"></button>
-  </div>
-</div>
-
-<script>
-       Event.observe(window, 'load', function() { displayTabsButtons(); });
-       Event.observe(window, 'resize', function() { displayTabsButtons(); }); 
-</script>
-
-<% tabs.each do |tab| -%>
-  <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ), 
-                       :id => "tab-content-#{tab[:name]}",
-                       :style => (tab[:name] != selected_tab ? 'display:none' : nil),
-                       :class => 'tab-content') %>
-<% end -%>