diff options
author | Egil Moeller <egil.moller@freecode.no> | 2010-04-10 23:15:43 +0200 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2010-04-10 23:15:43 +0200 |
commit | 631235e269a0e913207cf17f38855eb156e21f75 (patch) | |
tree | 5c39ca8039c95788e7de71abb699febbfb4a7931 /etherpad/src/themes/default/templates/pad | |
parent | f49fc5640ddcdd9c72ae1e95729fb44073dbb595 (diff) | |
download | etherpad-631235e269a0e913207cf17f38855eb156e21f75.tar.gz etherpad-631235e269a0e913207cf17f38855eb156e21f75.tar.bz2 etherpad-631235e269a0e913207cf17f38855eb156e21f75.zip |
Generalized the page.ejs a bit more so that it can be used by all pages for real
Diffstat (limited to 'etherpad/src/themes/default/templates/pad')
-rw-r--r-- | etherpad/src/themes/default/templates/pad/pad_body2.ejs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/etherpad/src/themes/default/templates/pad/pad_body2.ejs b/etherpad/src/themes/default/templates/pad/pad_body2.ejs index a19e685..5c886fb 100644 --- a/etherpad/src/themes/default/templates/pad/pad_body2.ejs +++ b/etherpad/src/themes/default/templates/pad/pad_body2.ejs @@ -14,9 +14,9 @@ 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. */ %> -<% template.inherit('page.ejs') %> - <% + template.inherit('page.ejs'); + helpers.setHtmlTitle("EtherPad: "+pageTitle); helpers.includeJs("ace.js"); helpers.includeJs("collab_client.js"); @@ -54,6 +54,11 @@ limitations under the License. */ %> %> +<% template.define('docBarTitle', function() { var ejs_data=''; %> + <td id="docbarpadtitle"><span><%= initialTitle %></span></td> +<% return ejs_data; }); %> + + <% template.define('docBarTitleEditor', function() { var ejs_data=''; %> <% if (isProAccountHolder) { %> <div id="docbarrenamelink"> @@ -69,6 +74,7 @@ limitations under the License. */ %> <% template.define('docBarItems', function() { var ejs_data=''; %> + <%: plugins.callHookStr('docbarItemsPad', {}, '', '<td class="docbarbutton">', '</td>'); %> <% if (isProAccountHolder) { %> <td id="docbarsecurity-outer" class="docbarbutton"> <a href="javascript:void(0)" id="docbarsecurity"> |