Alex Jakimenko
3a4236bc45
div-foo.pl: syntax for setting the "title" attribute; /x in regexes
...
The syntax is <class1 class2?My title stuff> ... </>
2015-01-25 06:03:20 +02:00
Alex Jakimenko
8642ae63a2
module-updater.pl: unnecessary () in sub declaration
2015-01-25 05:59:52 +02:00
Alex Jakimenko
3c5373f76b
image.pl: It is already quoted, no need to quote it again.
2015-01-25 05:53:40 +02:00
Alex Schroeder
58e297b092
long-tables.pl: $rownum replaces $first and $odd
...
Updated tests, too.
2015-01-19 20:03:46 +01:00
Matt Adams
cd4f6dc64c
tables-long.pl: add a class for even and odd rows
2015-01-19 19:45:14 +01:00
Alex Schroeder
a7b0c661c8
big-brother.pl: Remove password parameters.
...
Make sure admins and editors don't accidentally leave their passwords on
the Recent Visitors page.
2015-01-19 10:02:34 +01:00
Alex Schroeder
86334d6532
Summary: tags.pl delete unnecessary calls to write hash
...
When running TagFind and TagCloud, writing the tag file is not
necessary. This is the result of a search and replace operation that
assumed every DB_File untie is equivalent to a write operation. This
is not true.
2015-01-09 17:09:56 +01:00
Alex Schroeder
733752727d
tags.pl: Fixed error reporting for reindex action.
2015-01-09 17:00:43 +01:00
Alex Schroeder
6635803807
tags.pl: Use real lists instead of strings
...
The strings used to be concatenated elements using $FS as the
separator. Now they are references to lists.
2015-01-08 01:04:46 +01:00
Alex Schroeder
7f3488baaa
tags.pl: Fixed tests, fixed bugs.
2015-01-08 00:37:37 +01:00
Alex Schroeder
dcc318f34e
tags.pl: Switch from DB_File to Storable
...
The drawback will be that the entire tag database including all the
backlinks will be stored in a hash. On my wiki with 5799 pages the
tag.db file is just 333K so it’s not too bad.
2015-01-08 00:03:29 +01:00
Alex Schroeder
17edc1c523
namespaces.pl: add match to @NamespaceParameters
...
When using $MatchingPages = 1, the following URL would is a
possiblity:
https://campaignwiki.org/wiki/Adventures?search=&match=dung&dosearch=Go%21
In this situation, "Adventures" needs to be the namespace. The
'search' parameter is ignored and the script needs to react to
'match'.
2015-01-07 15:16:09 +01:00
Alex Schroeder
8773242dba
Add support for zh-cn and zh-tw
2015-01-04 11:18:05 +01:00
Alex Schroeder
ce82a328b6
edit-paragraphs: fix $around parameter
...
In bullet lists, the $around parameter would overshoot. The link would
say around=20, for example, when in fact the correct value would be
around=18. It would add the "* " of the next list item, apparently. The
edit link would still look good because the test we're using is
"$EditParagraphs[0]->[1] <= $pos" -- but if we then don't set "$pos =
$EditParagraphs[0]->[1]" it won't help as we'll get a "Could not
identify the paragraph you were editing" error as soon as we try to edit
with around=20 instead of around=18.
2014-12-10 09:05:14 +01:00
Alex Schroeder
c8c50b4e81
Merge commit '8ec456e'
...
Conflicts:
modules/upgrade.pl
2014-12-09 12:22:22 +01:00
Alex Schroeder
a20fc60617
Merge branch 'as/search-form-rewrites'
...
Conflicts:
css/alex-2014.css
2014-12-09 02:59:32 +01:00
Alex Schroeder
770de2986a
edit-paragraphs.pl: handle page names containing &
2014-12-09 02:56:23 +01:00
Alex Schroeder
471994f7b1
Merge branch 'as/search-form-rewrites' of git.sv.gnu.org:/srv/git/oddmuse into as/search-form-rewrites
...
Conflicts:
modules/edit-paragraphs.pl
2014-12-03 08:37:39 +01:00
Alex Schroeder
ccaf283204
edit-paragraphs.pl: handle </p>\s*</form>
2014-11-30 01:22:45 +01:00
Alex Schroeder
76c92f027c
edit-paragraphs.pl: handle empty rows
2014-11-26 12:08:38 +01:00
Alex Jakimenko
65378d91cb
div-foo.pl: more restrictive regexes, added $DivFooPrefix
2014-11-23 23:04:07 +02:00
Alex Schroeder
cb6a6bf4a6
mail.pl: adapt to changes in the footer
2014-11-23 21:43:35 +01:00
Alex Schroeder
5315b3f6ad
toc-js.pl: Fix typo
2014-11-19 13:05:11 +01:00
Alex Schroeder
e31abd57bc
toc-js.pl: Provide my own endsWith implementation.
2014-11-19 13:03:54 +01:00
Alex Schroeder
d380062ec6
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/oddmuse
2014-11-11 11:11:46 +01:00
Alex Schroeder
6f04d2044f
edit-paragraphs: get rid of fuzzy matching
...
Too many bugs!
2014-11-10 23:17:00 +01:00
Alex Schroeder
8a2c9eca9c
edit-paragraphs: fix HTML quoting issues
2014-11-10 22:10:51 +01:00
Alex Schroeder
d712a17f82
toc-js.pl: remove multiple pencils
...
The existence of multiple pencils appears to be a bug in edit-paragraphs.
2014-11-10 15:39:51 +01:00
Alex Schroeder
56e515a791
toc-js.pl: remove pencil icon
...
This icon is added by edit-paragraphs.pl and it looks ugly.
2014-11-10 15:37:37 +01:00
Alex Schroeder
f39cfd3235
edit-paragraphs.pl: handle trailing newlines
...
This used to generate an extra entry for @EditParagraphs which in turn
prevented the page from ending with an edit link if it ended with
multiple newlines.
Also made $EditParagraphPencil settable in the config file.
2014-11-10 09:45:59 +01:00
Alex Schroeder
b540093c2c
edit-paragraphs: handle pre, hr.
2014-11-09 13:09:44 +01:00
Alex Schroeder
a56b92ecb3
edit-paragraphs: fix HTML escaping
2014-11-08 21:15:15 +01:00
Alex Schroeder
114d914754
edit-paragraphs: pass around parameter to the form
2014-11-08 18:33:52 +01:00
Alex Schroeder
003357acad
edit-paragraphs: handle multiple paragraphs
2014-11-08 18:00:16 +01:00
Alex Schroeder
88475c3e41
edit-paragraphs: fiddled with unit tests
...
Trying to find a constellation to reproduce missing edit links.
Adding support for editing table rows.
2014-11-08 13:37:26 +01:00
Alex Schroeder
e80f05301d
edit-paragraphs: added unit test, fixed table bug
...
After a table, we'd get a lone link in a separate paragraph, just like
headers.
2014-11-07 23:04:12 +01:00
Alex Schroeder
a624e78975
edit-paragraphs: added unit tests, fixed table bug
...
Before a table, we'd get a lone link.
2014-11-07 22:47:02 +01:00
Alex Schroeder
54d3dc400a
edit-paragraph.js: new
...
This hides and shows the pencils at the end of each paragraph.
2014-11-06 21:48:08 +01:00
Alex Schroeder
3962068385
edit-paragraphs.pl: improve caching
...
Hook into PrintWikiToHTML instead of PrintPageContent in order to
avoid adding an edit link after every page link (as these are the
dirty blocks that get printed from the cache).
2014-11-06 16:01:01 +01:00
Alex Schroeder
a0b74ac3c6
edit-paragraph.pl: fixing stuff that didn't work
2014-11-06 15:38:21 +01:00
Alex Schroeder
870d75ac64
edit-paragraphs.pl: hack $Fragment
...
In order to get the edit button into the headings, we hack it into
$Fragment -- the current, clean HTML block being assembled by
ApplyRules.
2014-11-06 15:00:46 +01:00
Alex Schroeder
42d8260ce4
edit-paragraphs.pl: remove \r
...
Multiline paragraphs were not replaced correctly because of extra \r
in line endings.
2014-11-06 14:40:23 +01:00
Alex Schroeder
bfda4abe54
New module.
2014-11-06 13:43:20 +01:00
Alex Jakimenko
9f4ceb2d72
module-updater.pl: No need to return when calling OrError subs
2014-10-31 18:48:48 +02:00
Alex Jakimenko
0f8a4fa1df
module-updater.pl: Fixed cache problems
2014-10-31 18:48:06 +02:00
Alex Jakimenko
3b16b58880
module-bisect.pl: Solved cache problems, added 'Back' button from 'Stop' page, all strings are now translatable, some refactoring.
2014-10-31 18:41:08 +02:00
Alex Jakimenko
3f7f9ec1eb
module-bisect.pl: Indicate progress by using > signs
2014-10-31 04:45:45 +02:00
Alex Jakimenko
174aac5570
module-bisect.pl: Do binary search on your modules by disabling/enabling them
2014-10-31 04:09:33 +02:00
Alex Jakimenko
954232f7c8
module-updater.pl: Do not update modules immediately, just show diffs and ask the user whether he wants to apply those changes.
2014-10-29 23:40:09 +02:00
Alex Jakimenko
067658fd10
comment-div-wrapper.pl: Now using $q-> functions instead of printing html manually
2014-10-26 00:54:45 +03:00