123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <%
- # Copyright (C) 2011 - present Instructure, Inc.
- #
- # This file is part of Canvas.
- #
- # Canvas is free software: you can redistribute it and/or modify it under
- # the terms of the GNU Affero General Public License as published by the Free
- # Software Foundation, version 3 of the License.
- #
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
- # details.
- #
- # You should have received a copy of the GNU Affero General Public License along
- # with this program. If not, see <http://www.gnu.org/licenses/>.
- %>
- <% content_for :right_side do %>
- <% return_to_url = return_to_calendar(:context => @context, :event => @event) %>
- <a class="base_calendar_url" href="<%= calendar_url_for() %>" style="display: none;"> </a>
- <div id="sidebar_content">
- <ul class="page-action-list">
- <li><a class="return_url calendar_url" href="<%= return_to_url %>"><i class="icon-arrow-left" aria-hidden='true'></i> <%= t 'links.back_to_calendar', "Back to Calendar" %></a></li>
- <% if can_do(@event, @current_user, :update) %>
- <li>
- <%= link_to context_url(@context, :edit_context_calendar_event_url, @event.id, :return_to => params[:return_to]) do %>
- <i class="icon-edit" aria-hidden='true'></i> <%= t 'links.edit', "Edit Calendar Event" %>
- <% end %>
- </li>
- <% unless @event.new_record? %>
- <li><a href="<%= context_url(@context, :context_calendar_event_url, @event.id) %>" class="delete_event_link" data-method="delete" rel="nofollow" data-confirm="<%= t "Are you sure you want to delete this event?" %>">
- <i class="icon-trash" aria-hidden='true'></i> <%= t 'links.delete', "Delete the Event" %></a>
- </li>
- <% end %>
- <% end %>
- </ul>
- </div>
- <% end %>
- {{> views/full_calendar_event}}
|