Author: glen                         Date: Sat Aug 29 21:03:06 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add export pdf and export odt buttons; rel 2

---- Files affected:
packages/dokuwiki-tpl-sidebar:
   dokuwiki-tpl-sidebar.spec (1.10 -> 1.11) , more-buttons.patch (NONE -> 1.1)  
(NEW)

---- Diffs:

================================================================
Index: packages/dokuwiki-tpl-sidebar/dokuwiki-tpl-sidebar.spec
diff -u packages/dokuwiki-tpl-sidebar/dokuwiki-tpl-sidebar.spec:1.10 
packages/dokuwiki-tpl-sidebar/dokuwiki-tpl-sidebar.spec:1.11
--- packages/dokuwiki-tpl-sidebar/dokuwiki-tpl-sidebar.spec:1.10        Wed Jun 
17 11:34:32 2009
+++ packages/dokuwiki-tpl-sidebar/dokuwiki-tpl-sidebar.spec     Sat Aug 29 
23:03:01 2009
@@ -6,13 +6,14 @@
 Summary(pl.UTF-8):     Nawigacja po sidebarze przy użyciu DokuWiki
 Name:          dokuwiki-tpl-sidebar
 Version:       %{ver}
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://dokuwiki.jalakai.co.uk/template-sidebar-rc%{snap}.zip
 # Source0-md5: 7a36b63e86d00f72eecae2ba80334fdd
 Patch0:                backlink-rightside.patch
-URL:           http://wiki.jalakai.co.uk/dokuwiki/
+Patch1:                more-buttons.patch
+URL:           http://www.dokuwiki.org/template:sidebar
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      dokuwiki >= 20090126
 BuildArch:     noarch
@@ -38,6 +39,7 @@
 %prep
 %setup -q -n %{tpl}
 %patch0 -p1
+%patch1 -p1
 
 cat > INSTALL <<'EOF'
 To activate this template add the following to your conf/local.php file:
@@ -73,6 +75,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2009/08/29 21:03:01  glen
+- add export pdf and export odt buttons; rel 2
+
 Revision 1.10  2009/06/17 09:34:32  glen
 - put backlinks link back to right side of page
 

================================================================
Index: packages/dokuwiki-tpl-sidebar/more-buttons.patch
diff -u /dev/null packages/dokuwiki-tpl-sidebar/more-buttons.patch:1.1
--- /dev/null   Sat Aug 29 23:03:06 2009
+++ packages/dokuwiki-tpl-sidebar/more-buttons.patch    Sat Aug 29 23:03:01 2009
@@ -0,0 +1,31 @@
+--- sidebar/main.php   2009-08-30 00:00:33.098142092 +0300
++++ sidebar/main.php   2009-08-29 23:53:54.718210429 +0300
+@@ -63,6 +63,28 @@
+       <div class="bar-left" id="bar__topleft">
+         <?php tpl_button('edit')?>
+         <?php tpl_button('history')?>
++              <?php
++              $pdf_plugin = &plugin_load('action','html2pdf');
++              if ($pdf_plugin && 
!plugin_isdisabled($pdf_plugin->getPluginName())) { ?>
++              <form class="button" method="get" action="<?php wl($ID)?>">
++                <div class="no">
++                      <input type="submit" value="Export to PDF" 
class="button" />
++                      <input type="hidden" name="do" value="export_pdf" />
++                      <input type="hidden" name="id" value="<?php echo $ID?>" 
/>
++                </div>
++              </form>
++              <?php } ?>
++              <?php
++              $odt_plugin = &plugin_load('renderer','odt');
++              if ($pdf_plugin && 
!plugin_isdisabled($pdf_plugin->getPluginName())) { ?>
++              <form class="button" method="get" action="<?php wl($ID)?>">
++                <div class="no">
++                      <input type="submit" value="Export to ODT" 
class="button" />
++                      <input type="hidden" name="do" value="export_odt" />
++                      <input type="hidden" name="id" value="<?php echo $ID?>" 
/>
++                </div>
++              </form>
++              <?php } ?>
+       </div>
+ 
+       <div class="bar-right" id="bar__topright">
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dokuwiki-tpl-sidebar/dokuwiki-tpl-sidebar.spec?r1=1.10&r2=1.11&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to