diff options
author | Peter Martischka <pita@pitapoison.de> | 2010-04-07 16:01:22 +0200 |
---|---|---|
committer | Peter Martischka <pita@pitapoison.de> | 2010-04-07 16:01:22 +0200 |
commit | bf2866bc7f2b98d3e880104e39ac9cf15b1fd1cb (patch) | |
tree | 42e87d6670215c87d5e20d9e3b3b2211e3ced53f /etherpad/src/templates | |
parent | aad6d156a407640baeddce9cf78ea6545e547788 (diff) | |
parent | 06fbed86dcec9b4021ae782d293dfac73436fef4 (diff) | |
download | etherpad-bf2866bc7f2b98d3e880104e39ac9cf15b1fd1cb.tar.gz etherpad-bf2866bc7f2b98d3e880104e39ac9cf15b1fd1cb.tar.bz2 etherpad-bf2866bc7f2b98d3e880104e39ac9cf15b1fd1cb.zip |
Merge branch 'master' of git://github.com/redhog/pad
Diffstat (limited to 'etherpad/src/templates')
-rw-r--r-- | etherpad/src/templates/admin/pluginmanager.ejs | 35 | ||||
-rw-r--r-- | etherpad/src/templates/pad/pad_body2.ejs | 32 |
2 files changed, 43 insertions, 24 deletions
diff --git a/etherpad/src/templates/admin/pluginmanager.ejs b/etherpad/src/templates/admin/pluginmanager.ejs index 8a3d0bf..1cd7139 100644 --- a/etherpad/src/templates/admin/pluginmanager.ejs +++ b/etherpad/src/templates/admin/pluginmanager.ejs @@ -19,6 +19,7 @@ limitations under the License. */ %> helpers.setBodyId("padbody"); helpers.addBodyClass("limwidth nonpropad nonprouser"); helpers.includeCss("pad2_ejs.css"); + helpers.includeCss("admin/pluginmanager.css"); helpers.includeJs("undo-xpopup.js"); helpers.includeCometJs(); helpers.includeJQuery(); @@ -63,13 +64,19 @@ limitations under the License. */ %> <% } %> </div> <div id="docbar" class="docbar-public"> - <div id="docbarleft"><!-- --></div> - <div title="Manage plugins" id="docbarpadtitle"><span>Manage plugins</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 id="docbar"> + <table border="0" cellpadding="0" cellspacing="0" width="100%" id="docbartable"> + <tr> + <td><img src="/static/img/jun09/pad/roundcorner_left.gif"></td> + <td id="docbarpadtitle"><span>Plugin manager</span></td> + <td width="100%"> </td> + <% + plugins.callHookStr('docbarItemsAll', {}, '', '<td class="docbarbutton" nowrap>', '</td>'); + plugins.callHookStr('docbarItemsPluginManager', {}, '', '<td class="docbarbutton" nowrap>', '</td>'); + %> + <td><img src="/static/img/jun09/pad/roundcorner_right.gif"></td> + </tr> + </table> </div> </div> @@ -89,12 +96,10 @@ limitations under the License. */ %> <div id="editbarleft"><!-- --></div> <div id="editbarright"><!-- --></div> - <div id="editbarinner"> - </div> + <div id="editbarinner"></div> </div> <div id="editorcontainerbox"> <div id="editorcontainer"> - <h1>Plugin manager</h1> <table> <tr> <th>Module name</th> @@ -103,7 +108,12 @@ limitations under the License. */ %> </tr> <% for (var plugin in plugins.pluginModules) { %> <tr> - <td><%= plugins.pluginModules[plugin].description %></td> + <td class="mousover_parent"> + <%= plugin %> + <div class="mouseover_child"> + <%= plugins.pluginModules[plugin].description %> + </div> + </td> <td> <% if (plugins.plugins[plugin] !== undefined) { %> Installed @@ -115,6 +125,9 @@ limitations under the License. */ %> <% 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> + <% if (plugins.plugins[plugin].configLink !== undefined) { %> + <a href="<%= plugins.plugins[plugin].configLink %>">Configure</a> + <% } %> <% } else { %> <a href="/ep/admin/pluginmanager/?plugin=<%= plugin %>&action=install">Install</a> <% } %> diff --git a/etherpad/src/templates/pad/pad_body2.ejs b/etherpad/src/templates/pad/pad_body2.ejs index 4382e8f..fbaa7bf 100644 --- a/etherpad/src/templates/pad/pad_body2.ejs +++ b/etherpad/src/templates/pad/pad_body2.ejs @@ -105,16 +105,21 @@ limitations under the License. */ %> <div id="docbar"> <table border="0" cellpadding="0" cellspacing="0" width="100%" id="docbartable"> + <tr> <td><img src="/static/img/jun09/pad/roundcorner_left.gif"></td> <td id="docbarpadtitle"><span><%= initialTitle %></span></td> <td width="100%"> </td> -<% if (isProAccountHolder) { %> - <td id="docbarsecurity-outer" class="docbarbutton" nowrap> - <a href="javascript:void(0)" id="docbarsecurity"> - <img src="/static/img/jun09/pad/icon_security.gif">Security - </a> - </td> -<% } /* isProAccountHolder */ %> + <% + plugins.callHookStr('docbarItemsAll', {}, '', '<td class="docbarbutton" nowrap>', '</td>'); + plugins.callHookStr('docbarItemsPad', {}, '', '<td class="docbarbutton" nowrap>', '</td>'); + %> + <% if (isProAccountHolder) { %> + <td id="docbarsecurity-outer" class="docbarbutton" nowrap> + <a href="javascript:void(0)" id="docbarsecurity"> + <img src="/static/img/jun09/pad/icon_security.gif">Security + </a> + </td> + <% } /* isProAccountHolder */ %> <td id="docbaroptions-outer" class="docbarbutton" nowrap> <a href="javascript:void(0)" id="docbaroptions"> <img src="/static/img/jun09/pad/icon_pad_options.gif">Pad Options @@ -130,18 +135,19 @@ limitations under the License. */ %> <img src="/static/img/jun09/pad/icon_saved_revisions.gif">Saved revisions </a> </td> - <td id="docbarslider-outer" class="docbarbutton" nowrap> + <td id="docbarslider-outer" class="docbarbutton highlight" nowrap> <a target="_blank" href="/ep/pad/view/<%= localPadId %>/latest" id="docbarslider"> <img src="/static/img/jun09/pad/icon_time_slider.gif">Time Slider </a> </td> <td><img src="/static/img/jun09/pad/roundcorner_right_orange.gif"></td> + </tr> </table> -<% if (isProAccountHolder) { %> - <div id="docbarrenamelink"> - <a href="javascript:void(0)">(rename)</a> - </div> -<% } /* isProAccountHolder */ %> + <% if (isProAccountHolder) { %> + <div id="docbarrenamelink"> + <a href="javascript:void(0)">(rename)</a> + </div> + <% } /* isProAccountHolder */ %> <input type="text" id="padtitleedit"/> <div id="padtitlebuttons"> <a id="padtitlesave" href="javascript:void(0)">Save</a> |