aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2010-04-05 21:13:53 +0200
committerEgil Moeller <egil.moller@freecode.no>2010-04-05 21:13:53 +0200
commit46f96150d3a56bd9cbdbb308995415613e7bf4e4 (patch)
treecba69e40019f2e2c9d5d5a2ab4c7351202e090b9
parent180dbf215a65c924be4801b159db263d85c58d07 (diff)
downloadetherpad-46f96150d3a56bd9cbdbb308995415613e7bf4e4.tar.gz
etherpad-46f96150d3a56bd9cbdbb308995415613e7bf4e4.tar.xz
etherpad-46f96150d3a56bd9cbdbb308995415613e7bf4e4.zip
Plugin-support for docbar menu
-rw-r--r--etherpad/src/templates/pad/pad_body2.ejs30
1 files changed, 18 insertions, 12 deletions
diff --git a/etherpad/src/templates/pad/pad_body2.ejs b/etherpad/src/templates/pad/pad_body2.ejs
index c359b14..004c4c1 100644
--- a/etherpad/src/templates/pad/pad_body2.ejs
+++ b/etherpad/src/templates/pad/pad_body2.ejs
@@ -103,16 +103,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%">&nbsp;</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&nbsp;Options
@@ -134,12 +139,13 @@ limitations under the License. */ %>
</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>