Mercurial > zeropaste
diff app/views/pastes/show.html.erb @ 214:22c4b5f90e24
Massive javascript and html refactor. Also, ie9
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 12 May 2013 02:43:38 +0900 |
parents | d4682cea8e58 |
children | e413246bb589 |
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb Sun May 12 02:42:43 2013 +0900 +++ b/app/views/pastes/show.html.erb Sun May 12 02:43:38 2013 +0900 @@ -13,31 +13,31 @@ <div id="paste-show" class="tabbable" data-id="<%= @paste.id %>"> <div class="btn-toolbar"> <div id="paste-mode" class="btn-group" data-toggle="buttons-radio"> - <%= link_to 'Plain', '#plain', :data => { :toggle => 'tab' }, :class => 'btn active' %> - <%= link_to 'Highlight', '#highlight', :data => { :toggle => 'tab' }, :class => 'btn' %> - <%= link_to 'Markdown', '#markdown', :data => { :toggle => 'tab' }, :class => 'btn' %> + <%= link_to 'Plain', '#pl', :data => { :toggle => 'tab' }, :class => 'btn active' %> + <%= link_to 'Highlight', '#hl', :data => { :toggle => 'tab' }, :class => 'btn' %> + <%= link_to 'Markdown', '#md', :data => { :toggle => 'tab' }, :class => 'btn' %> </div> <div class="btn-group" id="paste-resize"> - <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> + <a class="btn dropdown-toggle" data-toggle="dropdown" data-base="Width: :size:" href="#"> Width: auto <span class="caret"></span> </a> <ul class="dropdown-menu"> - <li><a href="#" data-size="auto">auto</a></li> - <li><a href="#" data-size="560px">560px</a></li> - <li><a href="#" data-size="760px">760px</a></li> - <li><a href="#" data-size="960px">960px</a></li> + <li><a href="#">auto</a></li> + <li><a href="#">560px</a></li> + <li><a href="#">760px</a></li> + <li><a href="#">960px</a></li> </ul> </div> </div> - <div id="paste" data-mode="plain" data-width="auto" class="tab-content"> - <div class="tab-pane active" id="plain"> + <div id="paste" class="tab-content"> + <div class="tab-pane active" id="pl"> <pre><%= @paste.paste %></pre> </div> - <div class="tab-pane" id="highlight"> + <div class="tab-pane" id="hl"> <pre class="prettyprint linenums"></pre> </div> - <div class="tab-pane" id="markdown"> + <div class="tab-pane" id="md"> <div class="well"></div> </div> </div>