comparison app/views/pastes/show.html.erb @ 442:1fc5ddcde386

Some refactors
author nanaya <me@myconan.net>
date Thu, 10 Nov 2016 21:58:25 +0900
parents b2991317d4d7
children 68231013b01b
comparison
equal deleted inserted replaced
441:69fe27a8b147 442:1fc5ddcde386
7 { :title => t(".highlight"), :target => "hl" }, 7 { :title => t(".highlight"), :target => "hl" },
8 { :title => t(".markdown"), :target => "md" } 8 { :title => t(".markdown"), :target => "md" }
9 ].each do |el| %> 9 ].each do |el| %>
10 <li role="presentation" class="<%= "active" if el[:active] %>"> 10 <li role="presentation" class="<%= "active" if el[:active] %>">
11 <%= link_to el[:title], "##{el[:target]}", 11 <%= link_to el[:title], "##{el[:target]}",
12 :data => { :toggle => "tab" }, 12 :data => {
13 :mode => el[:target],
14 :toggle => "tab"
15 },
13 :aria => { :controls => el[:target] }, 16 :aria => { :controls => el[:target] },
14 :role => "tab", 17 :role => "tab",
15 :class => "js-show-tab-#{el[:target]}" 18 :class => "js-show-tab"
16 %> 19 %>
17 </li> 20 </li>
18 <% end %> 21 <% end %>
19 </ul> 22 </ul>
20 </div></div> 23 </div></div>