forked from forge/forge.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.html.haml
More file actions
45 lines (40 loc) · 1.39 KB
/
plugins.html.haml
File metadata and controls
45 lines (40 loc) · 1.39 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
---
layout: base
---
.container
%p Installing plugins in Forge is simple - you need only use the built-in `forge find-plugin` and `forge install-plugin` commands to search and install any of the plugins listed below. Alternatively, you may use `forge git-plugin` and `forge source-plugin` to install plugins from third party repositories, or from your local filesystem.
%script
:javascript
$(document).ready(function() {
var filterInput = $('#filterInput');
filterInput.keyup(function() {
$("#pluginTable tr").show();
$("#pluginTable tr").slice(1).each(function() {
var name = $.trim($(this).children().first().text()).toLowerCase();
var desc = $.trim($(this).children().last().text()).toLowerCase();
if(name.indexOf(filterInput.val().toLowerCase()) == -1
&& desc.indexOf(filterInput.val().toLowerCase()) == -1) {
$(this).hide();
}
});
});
});
.container
%input{:type=>'text', :id=>'filterInput'}
%table.table.table-striped.table-bordered.table-condensed{:id=>'pluginTable'}
%tr
%th
Plugin
%th
Author
%th
Description
- for plugin in site.plugins
%tr
%td
%a{:title=>plugin.name+' repository', :href=>plugin.gitrepo, :target=>'_blank'}
=plugin.name
%td
=plugin.author
%td
=plugin.description