James Herdman
5a29810abc
Document many obvious methods on Web
2009-09-05 20:47:48 -04:00
James Herdman
33bbf31333
Use the 'pages' association in Web#add_page
2009-09-05 20:43:14 -04:00
James Herdman
3f265a520b
Document Web#default_web?
2009-09-05 20:43:13 -04:00
James Herdman
7a7d187c7f
Refactor methods that touch the 'wiki_files' association on Web
2009-09-05 20:43:13 -04:00
James Herdman
bea8525130
Fully leverage the #wiki_files association on Web
2009-09-05 20:43:13 -04:00
James Herdman
8c1ded2303
More succinct Web#has_page? method
2009-09-05 20:43:13 -04:00
James Herdman
af61e78b96
More succinct Web#last_page method, and documentation
2009-09-05 20:43:13 -04:00
James Herdman
b52dee63c3
More succinct Web#page method and documentation
2009-09-05 20:43:13 -04:00
James Herdman
09531ce777
Moved validators and hooks to the top of Web to promote their visibility
...
visibility
2009-09-05 20:43:12 -04:00
James Herdman
23dae8b155
Clean up Web#page_names_by_author implemention
2009-09-05 20:43:12 -04:00
James Herdman
6a4af8a59a
More succinct Web#markup method, now with documentation
2009-09-05 20:43:12 -04:00
James Herdman
b96810fd2e
Refactor Web#authors and document it using Yard-style markup
2009-09-05 20:43:12 -04:00
James Herdman
c0cab0d0b7
Introduce 'revisions' association on Web
2009-09-05 20:43:12 -04:00
James Herdman
ed8e9cfbd8
White space police
2009-09-05 20:43:12 -04:00
Jacques Distler
336e57d6b4
Pathname Objects
...
Web#files_path and Web#blatex_pngs_path now return Pathname objects.
Based on JHerdman's
5d1e8f420b
but requires several other changes to the code (which assumed a string).
Also, test for itex2MML 1.3.10 (you should update that too).
2009-08-28 11:10:34 -05:00
Jacques Distler
51280b758d
Redirected Pages are not Wanted Pages
...
Correct list of Wanted Pages. Should not
include redirected pages.
(Reported by Toby Bartels)
2009-07-13 12:59:42 -05:00
Jacques Distler
48ee59e393
Fix a WikiReference Bug
...
Wikilinks to redirected pages are valid links.
2009-06-10 20:49:48 -05:00
Jacques Distler
305b37b401
Another Bug-fix and some tests
...
Man, but this needs more tests ... !
2009-06-06 21:08:08 -05:00
Jacques Distler
12207bc01c
Redirect Targets are not Orphaned
...
A pages that is linked-to, via a redirect, is not orphaned.
2009-06-06 12:37:00 -05:00
Jacques Distler
63fde3165e
Redirected Pages are not Wanted Pages
...
... and should not be listed as such on the "list" pages.
2009-06-05 22:48:32 -05:00
Jacques Distler
07da370d41
Battle-hardening
...
Fix some bugs in the new redirect/change-name implementation.
Not completely bullet-proof, yet (need to deal with
Jason's issue), but getting there.
2009-06-05 17:45:57 -05:00
Jacques Distler
0943b7e510
Expire Caches for Redirected Links
...
[[!redirect foo]] should expire all pages which reference "foo".
Sounds simple, but this was a really gnarly bug to fix.
2009-06-05 00:39:12 -05:00
Jacques Distler
d7832ba262
Wiki Redirects and Page Renaming
...
Added the ability to rename existing pages.
[[!redirects Some Page Name]] redirects Wikilinks [[Some Page Name]] to
the current page (assuming "Some Page Name" does not exist).
Real pages trump redirects (though this may change, depending on
user feedback).
2009-06-02 22:17:15 -05:00
Jacques Distler
6c0decc4ea
Railsisms
...
Use some ActiveRecord convenience methods.
2009-03-05 21:42:41 -06:00
Jacques Distler
1cdf0536c1
Fix BlahTeX/PNG
...
The BlahTeX/PNG code was busted by Revision 344.
Fixed now.
Ari better supply me with a test suite, so this doesn't happen again.
2009-01-27 11:35:05 -06:00
Jacques Distler
34fd7b425f
Webs that Don't Allow File Uploads
...
... should still allow you to manually upload files
and have them render.
Fixed.
2009-01-26 01:39:04 -06:00
Jacques Distler
5d15e3f39d
Security: Instiki 0.16.2
...
On Webs with file uploads enabled, uploaded files were stored
(in version 0.16.1 and earlier) in the public/ directory.
This was a security threat. A miscreant could upload a .html file.
When a user clicked on the link to the file, it was opened (unsanitized)
in the browser.
As of version 0.16.2, uploaded files are stored in the webs/
directory. Now, when the user clicks on the link, the file is sent
with the
Content-Disposition: attachment
header set, which causes the file to be downloaded, rather than opened
in the browser. As always, files downloaded from the internets should be
treated with caution. At least, this way, they are not aoutomatically
opened in the browser.
To move your existing uploaded files to the new location, do a
rake upgrade_instiki
2009-01-26 00:21:30 -06:00
Jacques Distler
82e7aa52c7
Referring Pages for File List
...
For the file_list action, include the pages which link to the given file(s).
This required rejiggering so that that information is actually retained in the database.
Unfortunately, you'll actually need to revise the page(s) in question, because that's the
only time this information is updated in the database.
2009-01-10 00:18:25 -06:00
Jacques Distler
bdcb506418
Two Bugs
...
1) Orphaned pages in a Category were not being listed correctly
2) "list" view was not being expired correctly on deletion of orphaned pages.
2009-01-01 02:38:12 -06:00
Jacques Distler
b74d298196
Manage Uploaded Files
...
Allow alternate sort-orders (by filename, by date).
Restrict to files in the given Web.
2008-12-31 11:30:33 -06:00
Jacques Distler
1d3f7007c6
Manage Uploaded Files
...
A less abstruse interface for deleting files (this time, many at-a-shot).
Available from the Edit Web page.
2008-12-31 03:54:23 -06:00
Jacques Distler
397859ba8a
Clean Deletions
...
Deleting a page removes all revisions of that page.
Deleting a Web removes all pages (and all revisions thereof)
and all wiki_files belonging to that Web.
2008-12-28 21:36:37 -06:00
Jacques Distler
3a78ef3dbf
Delete Orphan Pages in Category
...
If a Web has categories defined, you can delete orphaned pages in a given category
(in addition to being able to delete all orphaned pages).
2008-12-06 16:11:47 -06:00
Jacques Distler
d46798dd08
Security: Sanitize Remote IP address
...
Dunno quite how, but evidently, request.ip is manipulable. Make sure it consists of a dotted-quad.
Also, correct a typo from the previous revision.
2008-03-14 10:50:06 -05:00
Jacques Distler
609c5541b9
Yet More Philip Taylor Phun
...
Escape page names.
Grrr.
2008-03-13 23:02:12 -05:00
Jacques Distler
207fb1f7f2
New Version
...
Sync with Latest Instiki Trunk.
Migrate to Rails 1.2.5.
Bump version number.
2007-10-15 12:16:54 -05:00
Jacques Distler
0eb723e125
Accessibility: Use Uploaded File Descriptions
...
The file upload dialog asks for a description of the image or file to be uploaded. Use this as the default alt-text for the image and as a title attribute for a file link.
2007-10-09 02:51:38 -05:00
Jacques Distler
3b6cd309ff
Sync with Instiki Trunk
...
Sync with Revision 519 of Instiki trunk (2007/5/7).
2007-05-11 11:47:38 -05:00
Jacques Distler
9b9d134ad9
Fix upgrade to Rails 1.2.3.
...
Fix log-rotation (the previous attempt didn't quite work as advertised).
2007-03-21 15:37:29 -05:00
Jacques Distler
f92ed693c0
Log rotation. By default, we now use the standard Ruby Logger class to rotate the Instiki logfile.
...
This works fine with the default Webrick. But, if you're running under Mongrel (say), you probably
want to customize this in config/environments/production.rb .
2007-03-13 14:54:43 -05:00
Jason R. Blevins
12743280fb
All WikiReference methods now limit results to the current web.
...
Category lists are now restricted to the current web.
2007-03-10 16:09:20 -05:00
Jacques Distler
626c135d1e
Security: ensure file upload directory is not world-writable.
...
(There still seem to be bugs in the file upload function.)
2007-03-10 11:26:30 -06:00
Jacques Distler
a656772622
Deal with clients that don't send an HTTP_ACCEPT header.
...
Cache S5, TeX and Print views.
Temporary hack: don't cache list and recently_revised pages.
2007-03-08 21:57:21 -06:00
Jason R. Blevins
b65a5b8e30
Bug fix. Previously, all categories were visible from all webs. Now category lists are restricted to the current web.
2007-02-27 22:27:20 -05:00
Jacques Distler
64037c67ac
Fixed bug in pages_that_reference(page).
2007-02-09 17:44:36 -06:00
Jacques Distler
c358389f25
TeX and CSS tweaks.
...
Sync with latest Instiki Trunk
(Updates Rails to 1.2.2)
2007-02-09 02:04:31 -06:00
Jacques Distler
69b62b6f33
Checkout of Instiki Trunk 1/21/2007.
2007-01-22 07:43:50 -06:00