summaryrefslogtreecommitdiffstats
path: root/etherpad/src/templates/admin/pluginmanager.ejs
blob: 33b04bf434920943b70f7f076112839ff0c3ace1 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<% /* Copyright 2009 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */ %>
<%
 helpers.setHtmlTitle("Browse tags");
 helpers.setBodyId("padbody");
 helpers.addBodyClass("limwidth nonpropad nonprouser");
 helpers.includeCss("pad2_ejs.css");
 helpers.setRobotsPolicy({index: false, follow: false})
 helpers.includeJQuery();
 helpers.includeCometJs();
 helpers.includeJs("json2.js");
 helpers.addToHead('\n<style type="text/css" title="dynamicsyntax"></style>\n');

 function inArray(item, arr) {
   for (var i = 0; i < arr.length; i++)
     if (arr[i] == item)
       return true;
   return false;
 }
%>

<div id="padpage">
 <div id="padtop">
  <div id="topbar" style="margin: 7px; margin-top: 0px;">
   <div id="topbarleft"><!-- --></div>
    <div id="topbarright"><!-- --></div>
    <div id="topbarcenter"><a href="/" id="topbaretherpad">EtherPad</a></div>
    <% if (isProAccountHolder) { %>
     <div id="accountnav"><%= toHTML(account.email) %><a href="/ep/account/sign-out">(sign out)</a></div>
    <% } else if (isPro) { %>
     <div id="accountnav"><a href="<%= signinUrl %>">sign in</a></div>
    <% } %>
   </div>
  </div>
  <div id="docbar" class="docbar-public">
   <div id="docbarleft"><!-- --></div>
   <div title="Browse pads by tag" id="docbarpadtitle"><span>Browse tags</span></div>

   <div id="docbaroptions-outer"><a href="javascript:void(0)" id="docbaroptions">Pad Options</a></div>
   <div id="docbarsavedrevs-outer"><a href="javascript:void(0)" id="docbarsavedrevs">Saved revisions</a></div>
   <div id="docbarimpexp-outer"><a href="javascript:void(0)" id="docbarimpexp">Import/Export</a></div>
   <div id="docbarslider-outer"><a target="_blank" href="/ep/pad/view/xx/latest" id="docbarslider">Time Slider</a></div>

  </div>
 </div>
 <div id="padmain">

  <div id="padsidebar">
    <div id="padusers">
    </div>

    <div id="hdraggie"><!-- --></div>

    <div id="padchat"></div>
  </div> <!-- /padsidebar -->
  
  <div id="padeditor">
    <div id="editbar" class="enabledtoolbar">
      <div id="editbarleft"><!-- --></div>
      <div id="editbarright"><!-- --></div>      
      
      <div id="editbarinner">
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('bold'));" class="editbarbutton bold" title="Bold (ctrl-B)">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('italic'));" class="editbarbutton italic" title="Italics (ctrl-I)">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('underline'));" class="editbarbutton underline" title="Underline (ctrl-U)">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('strikethrough'));" class="editbarbutton strikethrough" title="Strikethrough">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('clearauthorship'));" class="editbarbutton clearauthorship" title="Clear Authorship Colors">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('undo'));" class="editbarbutton undo" title="Undo (ctrl-Z)">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('redo'));" class="editbarbutton redo" title="Redo (ctrl-Y)">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('insertunorderedlist'));" class="editbarbutton insertunorderedlist" title="Toggle Bullet List">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('indent'));" class="editbarbutton indent" title="Indent List">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('outdent'));" class="editbarbutton outdent" title="Unindent List">&nbsp;</a>
        <a unselectable="on" href="javascript:void (window.pad&amp;&amp;pad.editbarClick('save'));" class="editbarbutton save" title="Save Revision">&nbsp;</a>
      </div>
    </div>
    <div style="height: 268px;" id="editorcontainerbox">
      <div id="editorcontainer" style="padding:5pt; height: 600pt;">
       <h1>Plugin manager</h1>
       <table>
        <tr>
         <th>Module name</th>
         <th>Status</th>
         <th></th>
        </tr>
        <% for (var plugin in plugins.pluginModules) { %>
         <tr>
          <td><%= plugins.pluginModules[plugin].description %></td>
          <td>
           <% if (plugins.plugins[plugin] !== undefined) { %>
            Installed
           <% } else { %>
            Not installed
           <% } %>
          </td>
          <td>
           <% if (plugins.plugins[plugin] !== undefined) { %>
            <a href="/ep/admin/pluginmanager/?plugin=<%= plugin %>&action=uninstall">Uninstall</a>
            <a href="/ep/admin/pluginmanager/?plugin=<%= plugin %>&action=reinstall">Reinstall</a>
           <% } else { %>
            <a href="/ep/admin/pluginmanager/?plugin=<%= plugin %>&action=install">Install</a>
           <% } %>
          </td>
         </tr>
        <% } %>
       </table>
      </div>
    </div>
  </div><!-- /padeditor -->

  <div id="bottomarea">    
    <div id="widthprefcheck" class="widthprefunchecked"><!-- --></div>
    <div id="sidebarcheck" class="sidebarchecked"><!-- --></div>
  </div>
 </div>
</div>