<div class="row">
  <div class="span9">
    <h1>Textos</h1>
  </div>

  <div class="span3">
    <%= link_to 'Novo Texto', new_book_text_path(@book.uuid), :class => 'btn btn-primary btn-new' %>
  </div>
</div>

<% if @texts.blank? %>
  <div class="row">
    <p class="blank">Nenhum texto encontrado. Que tal <%= link_to 'criar um novo texto?', new_book_text_path(@book.uuid) %>
  </div>
<% else %>
  <%  if is_organizer? %>
  <ul id="text-list" data-update-url="<%= sort_book_texts_path(@book) %>" style="margin-top: 20px;">
  <% else %>
  <ul style="margin-top: 20px;">
  <% end %>
    <% @texts.each do |text| %>
      <%= content_tag_for :li, text do %>
      <%= raw('<span class="handle">[drag]</span>&nbsp;') if is_organizer? %>
      <strong><%= link_to(text.title, book_text_path(@book.uuid, text.uuid)) %></strong>&nbsp;&nbsp;
      <% end %>
    <% end %>
  </ul>
<% end %>

<div class="row">
  <div class="span9">
    <h1>Textos</h1>
  </div>

  <div class="span3">
    <%= link_to 'Novo Texto', new_book_text_path(@book.uuid), :class => 'btn btn-primary btn-new' %>
  </div>
</div>

<% if @texts.blank? %>
  <div class="row">
    <p class="blank">Nenhum texto encontrado. Que tal <%= link_to 'criar um novo texto?', new_book_text_path(@book.uuid) %>
  </div>
<% else %>
  <% if is_organizer? %>
    <ul id="text-list" data-update-url="<%= sort_book_texts_path(@book) %>" style="margin-top: 20px; list-style: none;">
  <% else %>
    <ul style="margin-top: 20px;">
  <% end %>
  <% @texts.each do |text| %>
    <%= content_tag_for :li, text do %>
      <%= raw('<i class="icon-move handle"></i>&nbsp;') if is_organizer? %>
      <strong><%= link_to(text.title, book_text_path(@book.uuid, text.uuid)) %></strong>&nbsp;&nbsp;
    <% end %>
  <% end %>
  </ul>
<% end %>

Add drag icon to text list
Add drag icon to text list
