<% # Copyright (C) 2023 - 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 . %> <% set_active_tab "terms" %> <% provide :page_title do %> <%= t :page_title, "%{account} Terms", :account => @context.name %> <% end %> <% js_bundle 'terms_index' %> <% css_bundle :terms %>

<%= t 'titles.term_details', "Term Details" %>

<%= form_for @context, :url => context_url(@context, :context_terms_url), :html => { :method => :get } do |f| %> …" value="<%= @term_name %>"> <% if @term_name.present? %> <%= t :terms_view_all, "View all terms" %> <% end %> <% end %> <%= t :terms_add_new, "Add New Term" %>
<% if @terms.empty? %>

<% if @term_name.present? %> <%= t :terms_no_results_name, "No terms found with name “%{name}”", :name => @term_name %> <% else %> <%= t :terms_no_results, "No terms found" %> <% end %>

<% end %> <% @terms.each do |term| %> <%= render :partial => "term", :object => term %> <% end %> <%= render :partial => "term", :object => nil %>
" class="term_url" style="display: none" >  <% content_for :pagination do %> <% if params[:action] == 'index' %> <%= will_paginate(@terms) %> <% end %> <% end %> <%= yield :pagination %>