Mercurial > zeropaste
diff 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 |
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb Thu Nov 10 21:50:27 2016 +0900 +++ b/app/views/pastes/show.html.erb Thu Nov 10 21:58:25 2016 +0900 @@ -9,10 +9,13 @@ ].each do |el| %> <li role="presentation" class="<%= "active" if el[:active] %>"> <%= link_to el[:title], "##{el[:target]}", - :data => { :toggle => "tab" }, + :data => { + :mode => el[:target], + :toggle => "tab" + }, :aria => { :controls => el[:target] }, :role => "tab", - :class => "js-show-tab-#{el[:target]}" + :class => "js-show-tab" %> </li> <% end %>