<% title = l(:text_meeting_updated, :author => h(@easy_meeting.author), :name => h(@easy_meeting.name)) %>

<% content_for :email_heading do %>
    <% if @external %>
        <%= title %>
    <% else %>
        <%= link_to(title, easy_meeting_url(@easy_meeting)) %>
    <% end -%>
<% end %>

<% content_for :email_attributes do %>
    <p><b><%= l(:field_start_time) %><b> : <%= format_date(@user.user_time_in_zone(@easy_meeting.start_time).try(:to_date)) %> <%= @user.user_time_in_zone(@easy_meeting.start_time).try(:strftime, '%H:%M') unless @easy_meeting.all_day? %></p>
    <p><b><%= l(:field_end_time) %></b> : <%= format_date(@user.user_time_in_zone(@easy_meeting.end_time).try(:to_date)) %> <%= @user.user_time_in_zone(@easy_meeting.end_time).try(:strftime, '%H:%M') unless @easy_meeting.all_day? %></p>
<% end %>

<%  content_for :email_prefooter do %>
    <% if @invited_user %>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="center">
              <table border="0" width="100%" cellspacing="5" cellpadding="0" class="actionButtons">
                <tr>
                  <td align="center">
                    <%= link_to(l(:button_meeting_accept), accept_easy_meeting_url(@easy_meeting)) %>
                  </td>
                  <td align="center" class="negative">
                    <%= link_to(l(:button_meeting_decline), decline_easy_meeting_url(@easy_meeting)) %>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
    <% end -%>
<% end %>
