forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html.erb
More file actions
68 lines (63 loc) · 2.53 KB
/
Copy pathindex.html.erb
File metadata and controls
68 lines (63 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<%
# 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 %><%= t :page_title, "Canvas Plugins" %><% end %>
<%
add_crumb t('#crumbs.plugins', "Plugins")
%>
<span class="small pull-right">
Revision: <%= Canvas.revision || t('#canvas_revision_unknown', "Unknown") %>
</span>
<h2>
<%= t :page_title, "Canvas Plugins" %>
</h2>
<% if @plugins.any? %>
<table class="table table-striped">
<tr>
<th><%= t :name, "Name" %></th>
<th><%= t :description, "Description" %></th>
<th><%= t :tag, "Tag" %></th>
<th><%= t :website, "Website" %></th>
<th><%= t :author, "Author" %></th>
<th><%= t :version, "Version" %></th>
<th> </th>
</tr>
<% @plugins.each do |plugin| %>
<tr class="<%= cycle('odd', 'even') %>">
<td class='name' nowrap="nowrap">
<% if plugin.has_settings_partial? %>
<a class="name" href="<%= plugin_path(plugin.id) %>"><%= h plugin.name %></a>
<% else %>
<span class="name"><%= h plugin.name %></span>
<% end %>
</td>
<td class='description'><%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %></td>
<td class='tag'><%= h plugin.tag %></td>
<td class='website'>
<% if plugin.website.present? %>
<a href="<%= plugin.website %>" class="icon-link not_external"></a>
<% end %>
</td>
<td class="author"><%= plugin.author_website.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_website) %></td>
<td class="version"><%= h plugin.version %></td>
<td class="configure"><%= link_to("", plugin_path(plugin.id), :class => "btn btn-mini icon-settings") if plugin.has_settings_partial? %></td>
</tr>
<% end %>
</table>
<% else %>
<p class="nodata"><%= t :no_plugins, "There are no Canvas plugins installed" %></p>
<% end %>