<div>
  <h2><%= milestone.title %></h2>
  <% if milestone.description %>
    <p>
      <%= milestone.description.html_safe %>
    </p>
  <% end %>
  <% if (can? :manage, LessonPlanEntry) && milestone.is_virtual != true %>
      <%= link_to edit_course_lesson_plan_milestone_path(@course, milestone), class: 'btn' do %>
        <i class="icon-edit"></i>
      <% end %>
      <%= link_to course_lesson_plan_milestone_path(@course, milestone),
            method: :delete,
            data: { confirm: t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
            class: 'btn btn-danger' do %>
          <i class="icon-trash"></i>
      <% end %>
  <% end %>
  <table class="table">
    <tbody>
    <% entries = milestone.entries.sort { |a, b| a.start_at <=> b.start_at } %>
    <% entries.each {|entry| %>
    <%= render :partial => 'lesson_plan/entry', locals: { :entry => entry } %>
    <% } %>
    </tbody>
  </table>
</div>
<div>
  <table class="table-top-align">
    <tr>
      <td>
      <h2><%= milestone.title %></h2>
      <% if milestone.description %>
      <p>
        <%= milestone.description.html_safe %>
      </p>
      <% end %>
      </td>
      <td width="10%">
        <% if (can? :manage, LessonPlanEntry) && milestone.is_virtual != true %>
          <%= link_to edit_course_lesson_plan_milestone_path(@course, milestone), class: 'btn' do %>
            <i class="icon-edit"></i>
          <% end %>
          <%= link_to course_lesson_plan_milestone_path(@course, milestone),
                method: :delete,
                data: { confirm: t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                class: 'btn btn-danger' do %>
              <i class="icon-trash"></i>
          <% end %>
      </td>
    <% end %>
  </table>
  <table class="table">
    <tbody>
    <% entries = milestone.entries.sort { |a, b| a.start_at <=> b.start_at } %>
    <% entries.each {|entry| %>
    <%= render :partial => 'lesson_plan/entry', locals: { :entry => entry } %>
    <% } %>
    </tbody>
  </table>
</div>
Move milestone Edit/Delete buttons to right. Using table :|
Move milestone Edit/Delete buttons to right. Using table :|
