░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/app/views/question_banks
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: index.html.erb
<% # 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/>. %> <% set_active_tab "question_banks" %> <% provide :page_title, t(:page_title, "Question Banks") %> <% css_bundle :quizzes %> <% js_bundle :question_banks %> <style> .question_bank { padding-bottom: 10px; } .question_bank .header { padding: 3px 5px; font-size: 1.2em; font-weight: bold; } .question_bank .header .question_name { display: inline-block; } .question_bank .header_content { float: <%= direction('left') %>; } .question_bank #edit_bank_form { float: <%= direction('left') %>; } .question_bank .header .links { float: <%= direction('right') %>; } .question_bank:hover .header .links { opacity: 1.0; } .question_bank .content { padding-<%= direction('left') %>: 20px; font-size: 0.8em; } </style> <% provide :right_side do %> <% if !@context.is_a?(User) && @context.assessment_question_banks.temp_record.grants_right?(@current_user, session, :create) %> <button class="add_bank_link btn button-sidebar-wide"><i class="icon-add"></i> <%= t 'add_bank', 'Add Question Bank' %></button> <% end %> <% if @current_user && @context != @current_user %> <a href="<%= context_url(@current_user, :context_question_banks_url) %>" class="btn button-sidebar-wide see_bookmarked_banks"><i class="icon-bookmark" role="presentation"></i> <%= t 'see_bookmarked_banks', 'View Bookmarked Banks' %></a> <% end %> <% end %> <div class="quiz-header"> <h1> <% case @context.class.to_s %> <% when 'Course' %> <%= t 'course_question_banks', "Course Question Banks" %> <% when 'User' %> <%= t 'user_question_banks', "User Question Banks" %> <% when 'Account' %> <%= t 'account_question_banks', "Account Question Banks" %> <% end %> </h1> </div> <% if @context != @current_user %> <%= render :partial => "question_bank" %> <%= form_for :assessment_question_bank, :url => "", :html => {:id => "edit_bank_form", :style => "display: none;"} do |f| %> <%= f.blabel :title, :en => "Bank Name" %> <%= f.text_field :title, :class => "bank_name_box" %> <% end %> <div id="bank_urls"> <a href="<%= context_url(@context, :context_question_banks_url) %>" class="add_bank_url" style="display: none;"> </a> </div> <% end %> <div id="questions" class="question_editing brief"> <%= render :partial => "question_bank", :collection => @question_banks %> </div>
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 _question_bank.html.erb
ERB
3.8 KB
2023-09-24 03:36
EDIT
📄 _question_teaser.html.erb
ERB
2.3 KB
2023-09-24 03:36
EDIT
📄 index.html.erb
ERB
3 KB
2023-09-24 03:36
EDIT
📄 show.html.erb
ERB
9.4 KB
2023-09-24 03:36
EDIT