comparison app/views/pastes/show.html.erb @ 388:797e351b2e2b

Remove alerts and title from show. Already shown by layout.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 10:33:17 +0900
parents 92c62966191b
children 91dabc034389
comparison
equal deleted inserted replaced
387:6cd41974d4b0 388:797e351b2e2b
1 <% provide :title, "Paste ##{@paste.id}" %> 1 <% provide :title, "Paste ##{@paste.id}" %>
2
3 <% if notice %>
4 <div class="alert alert-info">
5 <%= notice %>
6 </div>
7 <% end %>
8
9 <% if alert %>
10 <div class="alert alert-danger">
11 <%= alert %>
12 </div>
13 <% end %>
14
15 <div class="page-header">
16 <h1><%= content_for :title %></h1>
17 </div>
18 2
19 <div id="paste-show" data-id="<%= @paste.id %>"> 3 <div id="paste-show" data-id="<%= @paste.id %>">
20 <ul id="paste-mode" class="nav nav-tabs"> 4 <ul id="paste-mode" class="nav nav-tabs">
21 <li class="active"><%= link_to 'Plain', '#pl', :data => { :toggle => 'pill' } %></li> 5 <li class="active"><%= link_to 'Plain', '#pl', :data => { :toggle => 'pill' } %></li>
22 <li><%= link_to 'Highlight', '#hl', :data => { :toggle => 'pill' } %></li> 6 <li><%= link_to 'Highlight', '#hl', :data => { :toggle => 'pill' } %></li>