12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <%
- # 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 :page_title do %><%= @account.name %><% end %>
- <%
- @active_tab = "courses"
- add_crumb t(:courses_crumb, "Courses"), account_path(@account)
- %>
- <% content_for :right_side do %>
- {{> views/courses_right_side}}
- <% end %>
- <h1>{{#t}}Courses In This Account{{/t}}</h1>
- <% if @associated_courses_count > 0 %>
- <% if @term %>
- <h3 style="margin-bottom: 1em;"><%= mt(:subtitle_term, "For the term **%{term}**", :term => @term.name) %></h3>
- <% end %>
- <% if @associated_courses_count > @maximum_courses_im_gonna_show %>
- <p class='ui-state-highlight' style='padding:0.7em;'>
- <%= t(:too_many_courses_message, "There are too many courses to show (%{count}). " +
- "Please use the finder on the right to find a specific course.", :count => @associated_courses_count) %>
- </p>
- <% end %>
- <ul class='courses' style="list-style-type: none;">
- {{> views/course}}
- </ul>
- <% else %>
- <h3><%= @root_account.enrollment_terms.active.count > 1 ?
- t(:no_courses_term_message, "There are no courses in this term") :
- t(:no_courses_account_message, "There are no courses in this account") %></h3>
- <ul class='courses' style="list-style-type: none;">
- {{> views/course}}
- </ul>
- <% end %>
|