Package: docbookwiki
Version: 0.9.1cvs-12
Severity: normal
Tags: patch

Even when you set in /etc/docbookwiki/books.conf WEBNOTES_APPROVE='false',
the user still sees a warning (when clicking on "notes", "add a new note")
that "After you add your note, it will be queued for approval by a moderator.".

I modified my /usr/share/docbookwiki/web_app/boxes/webnotes/edit/help.html
as below to fix this. This looks at WEBNOTES_APPROVE value and
shows the warning only if it's exactly 'true'. (There are other checks
around in .html files that check like this for true value, so I guess it's
Ok to expect that true value is always exactly literally spelled as 'true'
in the config file.)

/usr/share/docbookwiki/web_app/boxes/webnotes/edit/help.html contents:
--------------------------------------------------------------
<div class="note">
<xmp>T_("HTML tags that are allowed:") 
&lt;b&gt;&lt;i&gt;&lt;a&gt;&lt;br&gt;&lt;p&gt;&lt;ol&gt;&lt;ul&gt;&lt;li&gt;&lt;hr&gt;&lt;pre&gt;&lt;xmp&gt;
<if condition="('{{WEBNOTES_APPROVE}}'=='true')">
T_("After you add your note, it will be queued for approval by a 
moderator.")</if></xmp>
</div>
--------------------------------------------------------------

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages docbookwiki depends on:
ii  adduser                  3.112           add and remove users and groups
ii  apache2-mpm-prefork [htt 2.2.14-4        Apache HTTP Server - traditional n
ii  dblatex                  0.2.12-2        Produces DVI, PostScript, PDF docu
ii  debconf [debconf-2.0]    1.5.28          Debian configuration management sy
ii  docbook-dsssl            1.79-6          modular DocBook DSSSL stylesheets,
ii  docbook-utils            0.6.14-1.1      Convert Docbook files to other for
ii  docbook-xml              4.5-7           standard XML documentation system 
ii  docbook-xsl              1.75.2+dfsg-3   stylesheets for processing DocBook
ii  gawk                     1:3.1.6.dfsg-4  GNU awk, a pattern scanning and pr
ii  jadetex                  3.13-10         generator of printable output from
ii  libapache2-mod-php5      5.2.11.dfsg.1-2 server-side, HTML-embedded scripti
ii  libxml2-utils            2.7.6.dfsg-1    XML utilities
ii  mysql-server             5.1.41-3        MySQL database server (metapackage
ii  mysql-server-5.1 [mysql- 5.1.41-3        MySQL database server binaries
ii  openssl                  0.9.8k-7        Secure Socket Layer (SSL) binary a
ii  php5-cli                 5.2.11.dfsg.1-2 command-line interpreter for the p
ii  php5-mysql               5.2.11.dfsg.1-2 MySQL module for php5
ii  subversion               1.6.3dfsg-1     Advanced version control system
ii  sudo                     1.7.2p1-1       Provide limited super user privile
ii  svn-load                 1.2-1           An enhanced import facility for Su
ii  swish-e                  2.4.7-1         Simple Web Indexing System for Hum
ii  xmltex                   1.9.debian.1-2  TeX package for processing XML fil
ii  xmlto                    0.0.23-2        XML-to-any converter
ii  xsltproc                 1.1.26-1        XSLT command line processor

docbookwiki recommends no packages.

docbookwiki suggests no packages.

-- debconf information:
* docbookwiki/reconfigure_webserver: apache2
* docbookwiki/restart_webserver: true
* docbookwiki/generate_downloads: true
* docbookwiki/purge_books: false

-- debsums errors found:
debsums: changed file /usr/share/docbookwiki/content/downloads/dblatex.sh (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/web_app/append/append.html (from 
docbookwiki package)
debsums: changed file 
/usr/share/docbookwiki/web_app/boxes/webnotes/edit/help.html (from docbookwiki 
package)
debsums: changed file /usr/share/docbookwiki/search/search.sh (from docbookwiki 
package)
debsums: changed file /usr/share/docbookwiki/search/make_index.sh (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/main/footer.html (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/main/header.html (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/main/main.html (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/docbook/langs/langs.html 
(from docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/docbook/docbook.css 
(from docbookwiki package)
debsums: changed file /usr/share/docbookwiki/css/view/contents.css (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/css/main.css (from docbookwiki 
package)
debsums: changed file /usr/share/docbookwiki/css/view.css (from docbookwiki 
package)
debsums: changed file 
/usr/share/docbookwiki/xsl_transform/cache/content_html/section.xsl (from 
docbookwiki package)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to