Soks 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. data/README.txt +22 -20
  2. data/bin/soks-create-wiki.rb +11 -2
  3. data/contrib/{redcloth-3.0.1.rb → redcloth-3.0.3.rb} +161 -66
  4. data/lib/authenticators.rb +2 -2
  5. data/lib/helpers/mail2wiki-helper.rb +101 -0
  6. data/lib/helpers/rss2wiki-helper.rb +48 -0
  7. data/lib/soks-model.rb +7 -5
  8. data/lib/soks-servlet.rb +8 -19
  9. data/lib/soks-view.rb +70 -162
  10. data/lib/soks.rb +20 -2
  11. data/templates/default/attachment/favicon.ico +0 -0
  12. data/templates/default/attachment/logo_thumb.bmp +0 -0
  13. data/templates/default/attachment/robots.txt +5 -0
  14. data/templates/default/attachment/stylesheet.css +1 -0
  15. data/templates/default/content/Attached%20ruby%20logo.textile +1 -0
  16. data/templates/default/content/Attached%20test%20thing.textile +1 -0
  17. data/templates/default/content/Automatic%20Summaries.textile +1 -1
  18. data/templates/default/content/Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20picture%2.textile +1 -0
  19. data/templates/default/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +1 -1
  20. data/templates/default/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +1 -1
  21. data/templates/default/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +1 -1
  22. data/templates/default/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +1 -1
  23. data/templates/default/content/Bug%3A%20Punctuation%20in%20page%20titles%20still%20problematic.textile +7 -0
  24. data/templates/default/content/Bug%3A%20Search%20includes%20leading%20and%20trailing%20spaces.textile +1 -0
  25. data/templates/default/content/Bug%3A%20Search%20inluced%20leading%20and%20trailing%20spaces.textile +1 -0
  26. data/templates/default/content/Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fbase64.textile +1 -0
  27. data/templates/default/content/Bug%3A%20notextile%20does%20not%20prevent%20page%20inserts.textile +1 -0
  28. data/templates/default/content/Fixed%20Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20p.textile +34 -0
  29. data/templates/default/content/Fixed%20Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20.textile +3 -0
  30. data/templates/default/content/Fixed%20Bug%3A%20External%20links%20incorrectly%20include%20trail.textile +3 -0
  31. data/templates/default/content/Fixed%20Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +4 -0
  32. data/templates/default/content/Fixed%20Bug%3A%20Search%20includes%20leading%20and%20trailing%20s.textile +3 -0
  33. data/templates/default/content/Fixed%20Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fba.textile +3 -0
  34. data/templates/default/content/Home%20Page.textile +2 -2
  35. data/templates/default/content/How%20to%20administrate%20this%20wiki.textile +1 -1
  36. data/templates/default/content/How%20to%20report%20a%20bug.textile +8 -0
  37. data/templates/default/content/Instructions%20and%20Howtos.textile +1 -0
  38. data/templates/default/content/Known%20bugs.textile +4 -5
  39. data/templates/default/content/List%20of%20changes.textile +32 -0
  40. data/templates/default/content/Picture%20of%20a%20logo%20for%20the%20ruby%20language.textile +1 -0
  41. data/templates/default/content/Picture%20of%20powered%20by%20ruby%20logo.textile +1 -0
  42. data/templates/default/content/Planned%20Features.textile +19 -0
  43. data/templates/default/content/README.textile +22 -20
  44. data/templates/default/content/Recent%20Changes%20to%20This%20Site.textile +123 -8
  45. data/templates/default/content/SOKS%20features.textile +5 -1
  46. data/templates/default/content/Site%20Index.textile +11 -6
  47. data/templates/default/start.rb +17 -6
  48. data/templates/default/version.txt +1 -1
  49. data/templates/default/views/Page_edit.rhtml +7 -6
  50. data/templates/default/views/Page_meta.rhtml +5 -5
  51. data/templates/default/views/Page_revisions.rhtml +4 -3
  52. data/templates/default/views/Page_search_results.rhtml +3 -3
  53. data/templates/default/views/Page_view.rhtml +2 -2
  54. data/templates/default/views/UploadPage_edit.rhtml +6 -6
  55. data/templates/default/views/frame.rhtml +15 -14
  56. data/templates/instiki/content/Attached%20ruby%20logo.textile +1 -0
  57. data/templates/instiki/content/Attached%20test%20thing.textile +1 -0
  58. data/templates/instiki/content/Automatic%20Summaries.textile +1 -1
  59. data/templates/instiki/content/Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20picture%2.textile +1 -0
  60. data/templates/instiki/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +1 -1
  61. data/templates/instiki/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +1 -1
  62. data/templates/instiki/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +1 -1
  63. data/templates/instiki/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +1 -1
  64. data/templates/instiki/content/Bug%3A%20Punctuation%20in%20page%20titles%20still%20problematic.textile +7 -0
  65. data/templates/instiki/content/Bug%3A%20Search%20includes%20leading%20and%20trailing%20spaces.textile +1 -0
  66. data/templates/instiki/content/Bug%3A%20Search%20inluced%20leading%20and%20trailing%20spaces.textile +1 -0
  67. data/templates/instiki/content/Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fbase64.textile +1 -0
  68. data/templates/instiki/content/Bug%3A%20notextile%20does%20not%20prevent%20page%20inserts.textile +1 -0
  69. data/templates/instiki/content/Fixed%20Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20p.textile +34 -0
  70. data/templates/instiki/content/Fixed%20Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20.textile +3 -0
  71. data/templates/instiki/content/Fixed%20Bug%3A%20External%20links%20incorrectly%20include%20trail.textile +3 -0
  72. data/templates/instiki/content/Fixed%20Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +4 -0
  73. data/templates/instiki/content/Fixed%20Bug%3A%20Search%20includes%20leading%20and%20trailing%20s.textile +3 -0
  74. data/templates/instiki/content/Fixed%20Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fba.textile +3 -0
  75. data/templates/instiki/content/Home%20Page.textile +2 -2
  76. data/templates/instiki/content/How%20to%20administrate%20this%20wiki.textile +1 -1
  77. data/templates/instiki/content/How%20to%20report%20a%20bug.textile +8 -0
  78. data/templates/instiki/content/Instructions%20and%20Howtos.textile +1 -0
  79. data/templates/instiki/content/Known%20bugs.textile +4 -5
  80. data/templates/instiki/content/List%20of%20changes.textile +32 -0
  81. data/templates/instiki/content/Picture%20of%20a%20logo%20for%20the%20ruby%20language.textile +1 -0
  82. data/templates/instiki/content/Picture%20of%20powered%20by%20ruby%20logo.textile +1 -0
  83. data/templates/instiki/content/Planned%20Features.textile +19 -0
  84. data/templates/instiki/content/README.textile +22 -20
  85. data/templates/instiki/content/Recent%20Changes%20to%20This%20Site.textile +123 -8
  86. data/templates/instiki/content/SOKS%20features.textile +5 -1
  87. data/templates/instiki/content/Site%20Index.textile +11 -6
  88. data/templates/instiki/version.txt +1 -1
  89. data/templates/rails/content/Attached%20ruby%20logo.textile +1 -0
  90. data/templates/rails/content/Attached%20test%20thing.textile +1 -0
  91. data/templates/rails/content/Automatic%20Summaries.textile +1 -1
  92. data/templates/rails/content/Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20picture%2.textile +1 -0
  93. data/templates/rails/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +1 -1
  94. data/templates/rails/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +1 -1
  95. data/templates/rails/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +1 -1
  96. data/templates/rails/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +1 -1
  97. data/templates/rails/content/Bug%3A%20Punctuation%20in%20page%20titles%20still%20problematic.textile +7 -0
  98. data/templates/rails/content/Bug%3A%20Search%20includes%20leading%20and%20trailing%20spaces.textile +1 -0
  99. data/templates/rails/content/Bug%3A%20Search%20inluced%20leading%20and%20trailing%20spaces.textile +1 -0
  100. data/templates/rails/content/Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fbase64.textile +1 -0
  101. data/templates/rails/content/Bug%3A%20notextile%20does%20not%20prevent%20page%20inserts.textile +1 -0
  102. data/templates/rails/content/Fixed%20Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20p.textile +34 -0
  103. data/templates/rails/content/Fixed%20Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20.textile +3 -0
  104. data/templates/rails/content/Fixed%20Bug%3A%20External%20links%20incorrectly%20include%20trail.textile +3 -0
  105. data/templates/rails/content/Fixed%20Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +4 -0
  106. data/templates/rails/content/Fixed%20Bug%3A%20Search%20includes%20leading%20and%20trailing%20s.textile +3 -0
  107. data/templates/rails/content/Fixed%20Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fba.textile +3 -0
  108. data/templates/rails/content/Home%20Page.textile +2 -2
  109. data/templates/rails/content/How%20to%20administrate%20this%20wiki.textile +1 -1
  110. data/templates/rails/content/How%20to%20report%20a%20bug.textile +8 -0
  111. data/templates/rails/content/Instructions%20and%20Howtos.textile +1 -0
  112. data/templates/rails/content/Known%20bugs.textile +4 -5
  113. data/templates/rails/content/List%20of%20changes.textile +32 -0
  114. data/templates/rails/content/Picture%20of%20a%20logo%20for%20the%20ruby%20language.textile +1 -0
  115. data/templates/rails/content/Picture%20of%20powered%20by%20ruby%20logo.textile +1 -0
  116. data/templates/rails/content/Planned%20Features.textile +19 -0
  117. data/templates/rails/content/README.textile +22 -20
  118. data/templates/rails/content/Recent%20Changes%20to%20This%20Site.textile +123 -8
  119. data/templates/rails/content/SOKS%20features.textile +5 -1
  120. data/templates/rails/content/Site%20Index.textile +11 -6
  121. data/templates/rails/version.txt +1 -1
  122. metadata +64 -5
  123. data/contrib/redcloth-2.0.11.rb +0 -896
  124. /data/lib/{soks-helpers.rb → helpers/default-helpers.rb} +0 -0
@@ -1,5 +1,37 @@
1
1
  h1. List of changes
2
2
 
3
+ h2. Between v-0-0-5 and v-0-0-4
4
+
5
+ h3. Features
6
+
7
+ * Now uses Redcloth v3, and therefore can have some markdown styles as well as textile on the same page
8
+ * Roughed up two more automatic helpers: rss2wiki that writes the content of a rss feed to a wiki page, and mail2wiki that watches an imap mailbox and adds any messages in it to the wiki. Both work, but are probably not ready for prime time.
9
+ * Note I have removed the feature in v-0-0-4 that would merge any changes by the same author within 5 minutes, as it seemed to cause some confusion with end users.
10
+
11
+ h3. Refactoring
12
+
13
+ * Helpers have been moved to a separate sub directory
14
+ * A module in soks-view that can be used by the erb template. Has functions for creating urls for pages. The default template has been updated to use this, but not the other templates.
15
+
16
+ h3. Bug fixes
17
+
18
+ * Fatal bug when renaming picture or attachment pages fixed.
19
+ * References to urls no longer include trailing punctuation
20
+ * Authenticators no longer call depreciated base64 method
21
+ * Now has (partial) support for robots.txt and favicon.ico
22
+ * Search box no longer treats leading and trailling spaces as significant
23
+ * Returns a page not found rather than an exception if an unknown view type is requested
24
+
25
+ h3. Bugs remaining
26
+
27
+ * No authentication on pictures and attachments
28
+ * Punctuation in page titles problematic. ? <> and [] cause problems. : and / are ok.
29
+ * Insert page commands are not inhibited by notextile, pre or code tags
30
+
31
+ h2. Between v-0-0-4 and v-0-0-3
32
+
33
+ This was a bugfix release on v-0-0-3. Principally by adding locking code so two pages can't update the same page at the same time.
34
+
3
35
  h2. Between v-0-0-3 and v-0-0-2
4
36
 
5
37
  h3. Features
@@ -0,0 +1 @@
1
+ content moved to [[Picture of a logo for the ruby language]]
@@ -0,0 +1,19 @@
1
+ h1. Planned Features
2
+
3
+ As an aside, in the longer term I'm hoping to incorporate some of the features of Soks into instiki, but in the mean time:
4
+
5
+ No plan survives, so this has changed:
6
+
7
+ h2. v0-0-6: Focus on quality
8
+
9
+ # Improving the standard, beauty and quality of the included templates / skins / wiki looks
10
+ # Refactoring to make the code easier to understand and hack
11
+
12
+ h2. Desired Features
13
+
14
+ Let me know if there is anything that you would like to see, or add it here:
15
+
16
+ * Fast CGI or the like as an alternative to Webrick
17
+ * Give each automaticsummary a unique name so several can update the same page
18
+ * Some form of tag to automatically create automatic summaries.
19
+ * Make the wiki fork, and give commands to gracefully start and top it.
@@ -4,9 +4,9 @@ h1. SOKS: Another Ruby Wiki
4
4
  * The project has been kindly hosted at http://rubyforge.org/projects/soks/
5
5
 
6
6
  Quickstart:
7
- 1. gem install Soks
8
- 2. soks-create-wiki.rb
9
- 3. http://localhost:8000
7
+ # gem install Soks
8
+ # soks-create-wiki.rb
9
+ # http://localhost:8000
10
10
 
11
11
  h2. REQUIRES
12
12
 
@@ -21,13 +21,13 @@ h2. AUTHOR
21
21
  h2. INSTALL
22
22
 
23
23
  Preferably:
24
- 1. Install rubygems from http://rubyforge.org/projects/rubygems/
25
- 2. gem install Soks (you may need to be root first)
24
+ # Install rubygems from http://rubyforge.org/projects/rubygems/
25
+ # gem install Soks (you may need to be root first)
26
26
 
27
27
  Alternatively
28
- 1. Download the tar or zip file from http://rubyforge.org/projects/soks/
29
- 2. Unzip or untar it
30
- 3. Change into the soks directory
28
+ # Download the tar or zip file from http://rubyforge.org/projects/soks/
29
+ # Unzip or untar it
30
+ # Change into the soks directory
31
31
 
32
32
  h2. USE
33
33
 
@@ -40,22 +40,24 @@ To change the settings (url, port, etc) edit the start.rb file in the soks-wiki
40
40
 
41
41
  h2. FEATURES
42
42
 
43
- 1. Runs on its own webrick server (no independent web server required)
44
- 2. Uses textile as its text coding (a proto-standard)
45
- 3, Uses a combination of flat and yaml files for storage (no database, and page content human readable outside of soks)
46
- 3. Allows uploads
47
- 4. Allows authentication
48
- 5. Automatically links pages within the wiki
49
- 6. Pages can be deleted and moved easily (and these can be undone)
50
- 7. Has a mechanism for external classes to manipulate the wiki to provide, for instance, automatic calendar pages, or automatic summaries or blog like pages.
43
+ # Runs on its own webrick server (no independent web server required)
44
+ # Uses textile as its text coding (a proto-standard)
45
+ # Uses a combination of flat and yaml files for storage (no database, and page content human readable outside of soks)
46
+ # Allows uploads
47
+ # Allows authentication
48
+ # Automatically links pages within the wiki
49
+ # Pages can be deleted and moved easily (and these can be undone)
50
+ # Has a mechanism for external classes to manipulate the wiki to provide, for instance, automatic calendar pages, or automatic summaries or blog like pages.
51
51
 
52
52
  h2. BUGS
53
53
 
54
54
  I suspect there are many, as befits its version number. In particular it has:
55
- * Not got any way of securing pictures or attachments added to the wiki
56
- * Uses RedCloth 2.0.11 which has some formatting bugs (and no doubt some extra ones introduced by my clumsy extentions). RedCloth 3.0.1 is included but not enabled because it tends to hit stack overflows frequently for me.
55
+ * No authentication on pictures and attachments
56
+ * Punctuation in page titles problematic. ? <> and [] cause problems. : and / are ok.
57
+ * Insert page commands are not inhibited by notextile, pre or code tags
57
58
 
58
59
  h2. RELEASES
59
60
 
60
- 2005 Jan 24 - soks-0.0.3 - Second public release (alpha)
61
- 2005 Jan 11 - soks-0.0.2 - First public release (alpha)
61
+ # 2005 Feb 12 - soks-0.0.5 - Third public release (alpha)
62
+ # 2005 Jan 24 - soks-0.0.4 - Second public release (alpha)
63
+ # 2005 Jan 11 - soks-0.0.2 - First public release (alpha)
@@ -4,27 +4,142 @@ p{font-size: x-small;}. Recent Changes to This Site was created automatically fr
4
4
 
5
5
  <automaticsummary>
6
6
 
7
+ * [[ Distribution Home Page ]] revised on 2005 Feb 12 12:30 by tamc2
8
+ * [[ README ]] revised on 2005 Feb 12 12:27 by tamc2
9
+ * [[ README ]] revised on 2005 Feb 12 12:26 by tamc2
10
+ * [[ README ]] revised on 2005 Feb 12 12:22 by tamc2
11
+ * [[ Distribution Home Page ]] revised on 2005 Feb 12 12:19 by tamc2
12
+ * [[ Planned Features ]] revised on 2005 Feb 12 12:13 by tamc2
13
+ * [[ SOKS features ]] revised on 2005 Feb 12 12:11 by tamc2
14
+ * [[ SOKS features ]] revised on 2005 Feb 12 12:10 by tamc2
15
+ * [[ Known bugs ]] revised on 2005 Feb 12 12:09 by tamc2
16
+ * [[ Known bugs ]] revised on 2005 Feb 12 12:08 by tamc2
17
+ * [[ Site Index ]] revised on 2005 Feb 12 12:07 by AutomaticIndex
18
+ * [[ Instructions and Howtos ]] revised on 2005 Feb 12 12:07 by AutomaticSummary
19
+ * [[ How to report a bug ]] revised on 2005 Feb 12 12:07 by tamc2
20
+ * [[ home page ]] revised on 2005 Feb 12 12:05 by tamc2
21
+ * [[ home page ]] revised on 2005 Feb 12 12:05 by tamc2
22
+ * [[ List of changes ]] revised on 2005 Feb 12 12:01 by tamc2
23
+ * [[ List of changes ]] revised on 2005 Feb 12 12:01 by tamc2
24
+ * [[ Site Index ]] revised on 2005 Feb 12 12:00 by AutomaticIndex
25
+ * [[ Known bugs ]] revised on 2005 Feb 12 12:00 by AutomaticSummary
26
+ * [[ Bug: notextile does not prevent page inserts ]] revised on 2005 Feb 12 12:00 by tamc2
27
+ * [[ Site Index ]] revised on 2005 Feb 12 11:55 by AutomaticIndex
28
+ * [[ Attached ruby logo ]] revised on 2005 Feb 12 11:55 by tamc2
29
+ * [[ Site Index ]] revised on 2005 Feb 12 11:54 by AutomaticIndex
30
+ * [[ Site Index ]] revised on 2005 Feb 12 11:54 by AutomaticIndex
31
+ * [[ Attached test thing ]] revised on 2005 Feb 12 11:54 by tamc2
32
+ * [[ Attached ruby logo ]] revised on 2005 Feb 12 11:54 by tamc2
33
+ * [[ Attached ruby logo ]] revised on 2005 Feb 12 11:54 by AutomaticPageMover
34
+ * [[ Site Index ]] revised on 2005 Feb 12 11:54 by AutomaticIndex
35
+ * [[ Attached test thing ]] revised on 2005 Feb 12 11:54 by tamc2
36
+ * [[ Site Index ]] revised on 2005 Feb 12 11:52 by AutomaticIndex
37
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:52 by AutomaticSummary
38
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:52 by AutomaticSummary
39
+ * [[ Bug: Page titles cannot have html tags in them ]] revised on 2005 Feb 12 11:52 by tamc2
40
+ * [[ Site Index ]] revised on 2005 Feb 12 11:32 by AutomaticIndex
41
+ * [[ Site Index ]] revised on 2005 Feb 12 11:32 by AutomaticIndex
42
+ * [[ Picture of powered by ruby logo ]] revised on 2005 Feb 12 11:32 by tamc2
43
+ * [[ Picture of a logo for the ruby language ]] revised on 2005 Feb 12 11:32 by tamc2
44
+ * [[ Picture of a logo for the ruby language ]] revised on 2005 Feb 12 11:32 by AutomaticPageMover
45
+ * [[ Site Index ]] revised on 2005 Feb 12 11:32 by AutomaticIndex
46
+ * [[ Picture of powered by ruby logo ]] revised on 2005 Feb 12 11:32 by tamc2
47
+ * [[ Planned Features ]] revised on 2005 Feb 12 11:06 by tamc2
48
+ * [[ Site Index ]] revised on 2005 Feb 12 11:02 by AutomaticIndex
49
+ * [[ Site Index ]] revised on 2005 Feb 12 11:02 by AutomaticIndex
50
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
51
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
52
+ * [[ Fixed Bug: [FATAL] When renaming upload / picture pages ]] revised on 2005 Feb 12 11:02 by tamc2
53
+ * [[ Fixed Bug: [FATAL] When renaming upload / picture pages ]] revised on 2005 Feb 12 11:02 by AutomaticPageMover
54
+ * [[ Bug: [FATAL] When renaming upload / picture pages ]] revised on 2005 Feb 12 11:02 by tamc2
55
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
56
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
57
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
58
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
59
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
60
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
61
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
62
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
63
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
64
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
65
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
66
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
67
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
68
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
69
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
70
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
71
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
72
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
73
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
74
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
75
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
76
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
77
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
78
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
79
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
80
+ * [[ Known bugs ]] revised on 2005 Feb 12 11:02 by AutomaticSummary
81
+ * [[ Site Index ]] revised on 2005 Feb 12 10:10 by AutomaticIndex
82
+ * [[ Known bugs ]] revised on 2005 Feb 12 10:10 by AutomaticSummary
83
+ * [[ Fixed Bug: Duplicate links-to a page sometimes appear ]] revised on 2005 Feb 12 10:10 by tamc2
84
+ * [[ Fixed Bug: Duplicate links-to a page sometimes appear ]] revised on 2005 Feb 12 10:10 by AutomaticPageMover
85
+ * [[ Bug: Duplicate links-to a page sometimes appear ]] revised on 2005 Feb 12 10:10 by tamc2
86
+ * [[ Fixed Bug: Search includes leading and trailing spaces ]] revised on 2005 Feb 12 10:09 by tamc2
87
+ * [[ Fixed Bug: Search includes leading and trailing spaces ]] revised on 2005 Feb 12 10:09 by AutomaticPageMover
88
+ * [[ Bug: Search includes leading and trailing spaces ]] revised on 2005 Feb 12 10:09 by tamc2
89
+ * [[ Bug: Punctuation in page titles still problematic ]] revised on 2005 Feb 12 10:08 by tamc2
90
+ * [[ Fixed Bug: No robots.txt or favicon.ico ]] revised on 2005 Feb 12 10:07 by tamc2
91
+ * [[ Fixed Bug: No robots.txt or favicon.ico ]] revised on 2005 Feb 12 10:07 by AutomaticPageMover
92
+ * [[ Bug: No robots.txt or favicon.ico ]] revised on 2005 Feb 12 10:07 by tamc2
93
+ * [[ Site Index ]] revised on 2005 Feb 12 09:52 by AutomaticIndex
94
+ * [[ Known bugs ]] revised on 2005 Feb 12 09:52 by AutomaticSummary
95
+ * [[ Fixed Bug: no superclass method `_deprecated_base64 ]] revised on 2005 Feb 12 09:52 by tamc2
96
+ * [[ Fixed Bug: no superclass method `_deprecated_base64 ]] revised on 2005 Feb 12 09:52 by AutomaticPageMover
97
+ * [[ Bug: no superclass method `_deprecated_base64 ]] revised on 2005 Feb 12 09:52 by tamc2
98
+ * [[ Fixed Bug: External links incorrectly include trailing punctuation ]] revised on 2005 Feb 12 09:49 by tamc2
99
+ * [[ Fixed Bug: External links incorrectly include trailing punctuation ]] revised on 2005 Feb 12 09:49 by AutomaticPageMover
100
+ * [[ Bug: External links incorrectly include trailing punctuation ]] revised on 2005 Feb 12 09:49 by tamc2
101
+ * [[ SOKS features ]] revised on 2005 Feb 12 06:22 by Ochronus
102
+ * [[ home page ]] revised on 2005 Feb 08 16:18 by tamc2
103
+ * [[ Site Index ]] revised on 2005 Feb 06 11:21 by AutomaticIndex
104
+ * [[ Known bugs ]] revised on 2005 Feb 06 11:21 by AutomaticSummary
105
+ * [[ Bug: Search includes leading and trailing spaces ]] revised on 2005 Feb 06 11:21 by tamc2
106
+ * [[ Bug: Search includes leading and trailing spaces ]] revised on 2005 Feb 06 11:21 by AutomaticPageMover
107
+ * [[ Bug: Search inluced leading and trailing spaces ]] revised on 2005 Feb 06 11:21 by tamc2
108
+ * [[ Known bugs ]] revised on 2005 Feb 03 13:50 by AutomaticSummary
109
+ * [[ Bug: Duplicate links-to a page sometimes appear ]] revised on 2005 Feb 03 13:50 by tamc2
110
+ * [[ Site Index ]] revised on 2005 Feb 03 07:28 by AutomaticIndex
111
+ * [[ Known bugs ]] revised on 2005 Feb 03 07:28 by AutomaticSummary
112
+ * [[ Bug: Search inluced leading and trailing spaces ]] revised on 2005 Feb 03 07:28 by tamc2
113
+ * [[ Site Index ]] revised on 2005 Feb 02 00:23 by AutomaticIndex
114
+ * [[ Known bugs ]] revised on 2005 Feb 02 00:23 by AutomaticSummary
115
+ * [[ Bug: no superclass method `_deprecated_base64 ]] revised on 2005 Feb 02 00:23 by Skorgu
116
+ * [[ Planned Features ]] revised on 2005 Feb 01 18:55 by tamc2
117
+ * [[ How to administrate this wiki ]] revised on 2005 Feb 01 18:44 by tamc2
118
+ * [[ Site Index ]] revised on 2005 Feb 01 05:10 by AutomaticIndex
119
+ * [[ Known bugs ]] revised on 2005 Feb 01 05:10 by AutomaticSummary
120
+ * [[ Bug: Punctuation in page titles still problematic ]] revised on 2005 Feb 01 05:10 by tamc2
121
+ * [[ Bug: [FATAL] When renaming upload / picture pages ]] revised on 2005 Feb 01 05:05 by tamc2
122
+ * [[ Automatic Summaries ]] revised on 2005 Jan 27 09:40 by tom
123
+ * [[ Planned Features ]] revised on 2005 Jan 27 09:37 by tom
124
+ * [[ Planned Features ]] revised on 2005 Jan 27 05:31 by tamc2
125
+ * [[ Site Index ]] revised on 2005 Jan 27 05:31 by AutomaticIndex
126
+ * [[ SOKS features ]] revised on 2005 Jan 27 05:25 by tamc2
127
+ * [[ SOKS features ]] revised on 2005 Jan 27 00:10 by dab
128
+ * [[ SOKS features ]] revised on 2005 Jan 26 09:34 by tamc2
129
+ * [[ Site Index ]] revised on 2005 Jan 26 09:21 by AutomaticIndex
7
130
  * [[ Site Index ]] revised on 2005 Jan 26 08:55 by AutomaticIndex
8
131
  * [[ Known bugs ]] revised on 2005 Jan 26 08:55 by AutomaticSummary
9
132
  * [[ Bug: GEM limits title lengths ]] revised on 2005 Jan 26 08:55 by tamc2
10
133
  * [[ Site Index ]] revised on 2005 Jan 26 08:12 by AutomaticIndex
11
134
  * [[ Known bugs ]] revised on 2005 Jan 26 08:12 by AutomaticSummary
12
135
  * [[ Bug: No robots.txt or favicon.ico ]] revised on 2005 Jan 26 08:12 by tamc2
13
- * [[ Known bugs ]] revised on 2005 Jan 26 08:11 by AutomaticSummary
14
136
  * [[ Bug: Page titles cannot have html tags in them ]] revised on 2005 Jan 26 08:11 by tamc2
15
- * [[ Site Index ]] revised on 2005 Jan 26 08:10 by AutomaticIndex
16
- * [[ Known bugs ]] revised on 2005 Jan 26 08:10 by AutomaticSummary
17
- * [[ Bug: Page titles cannot have html tags in them ]] revised on 2005 Jan 26 08:10 by tamc2
18
- * [[ Site Index ]] revised on 2005 Jan 26 07:59 by AutomaticIndex
19
- * [[ Known bugs ]] revised on 2005 Jan 26 07:59 by AutomaticSummary
20
137
  * [[ Site Index ]] revised on 2005 Jan 26 07:59 by AutomaticIndex
21
138
  * [[ Known bugs ]] revised on 2005 Jan 26 07:59 by AutomaticSummary
22
139
  * [[ Fixed Bug: Site Index updates on every revision ]] revised on 2005 Jan 26 07:59 by tamc2
23
140
  * [[ Fixed Bug: Site Index updates on every revision ]] revised on 2005 Jan 26 07:59 by AutomaticPageMover
24
141
  * [[ Bug: Site Index updates on every revision ]] revised on 2005 Jan 26 07:59 by tamc2
25
- * [[ Known bugs ]] revised on 2005 Jan 26 07:58 by AutomaticSummary
26
142
  * [[ Instructions and Howtos ]] revised on 2005 Jan 26 07:58 by AutomaticSummary
27
- * [[ Site Index ]] revised on 2005 Jan 26 07:58 by AutomaticIndex
28
143
  * [[ Known bugs ]] revised on 2005 Jan 25 18:50 by AutomaticSummary
29
144
  * [[ Bug: Site Index updates on every revision ]] revised on 2005 Jan 25 18:50 by tamc2
30
145
  * [[ Known bugs ]] revised on 2005 Jan 25 18:34 by AutomaticSummary
@@ -1,12 +1,16 @@
1
1
  h2. Soks Features
2
2
 
3
+ p{font-size: x-small;}. Soks Features is a separate page that has been inserted into the home page using [ [ insert soks features ]].
4
+
3
5
  * Automatic linking between pages (no need for wiki words or any bracket shenanigans).
4
6
  * Easy to add, move and delete pages
5
7
  * Calendars, automatic summaries and the like
6
8
  * An api for classes to modify the wiki
7
- * Flat file storage (incidentally, this makes it easy to import from instiki using its export function)
9
+ * Flat file storage (incidentally, this makes it easy to [[ import from instiki => how to import a site from instiki ]] using its export function)
8
10
  * Easy to edit the look of the wiki with per wiki templates.
9
11
  * Built in web server (No need for Apache)
10
12
  * Textile
11
13
  * Uploads and Images
12
14
  * RSS feed for changes to any page
15
+
16
+ See also: planned features
@@ -4,24 +4,29 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
4
4
 
5
5
  <automaticsummary>
6
6
 
7
+ * [[ Picture of a logo for the ruby language ]]
7
8
  * [[ Picture of a pair of soks ]]
8
9
  * [[ All News ]]
9
10
  * [[ Author ]]
10
11
  * [[ Automatic linking between pages ]]
11
12
  * [[ Automatic Summaries ]]
12
13
  * [[ Bug: Does not make use of if-modified-since request headers ]]
13
- * [[ Bug: Duplicate links-to a page sometimes appear ]]
14
- * [[ Bug: External links incorrectly include trailing punctuation ]]
15
14
  * [[ Bug: GEM limits title lengths ]]
16
- * [[ Bug: No robots.txt or favicon.ico ]]
17
- * [[ Bug: Page titles cannot have html tags in them ]]
15
+ * [[ Bug: notextile does not prevent page inserts ]]
16
+ * [[ Bug: Punctuation in page titles still problematic ]]
18
17
  * [[ Bug: Uploads are not password protected ]]
19
18
  * [[ Distribution Home Page ]]
19
+ * [[ Fixed Bug: [FATAL] When renaming upload / picture pages ]]
20
20
  * [[ fixed bug: automatic link links to stuff inside html tags ]]
21
+ * [[ Fixed Bug: Duplicate links-to a page sometimes appear ]]
22
+ * [[ Fixed Bug: External links incorrectly include trailing punctuation ]]
21
23
  * [[ Fixed Bug: In a list of links, the last link is sometimes not linked ]]
22
24
  * [[ Fixed Bug: Inserted pages are not refreshed when new autolinks are made ]]
25
+ * [[ Fixed Bug: No robots.txt or favicon.ico ]]
26
+ * [[ Fixed Bug: no superclass method `_deprecated_base64 ]]
23
27
  * [[ Fixed Bug: RSS feed shows oldest 15 revisions (not newest!) ]]
24
28
  * [[ Fixed Bug: Search box width does not match column width ]]
29
+ * [[ Fixed Bug: Search includes leading and trailing spaces ]]
25
30
  * [[ Fixed Bug: Site Index updates on every revision ]]
26
31
  * [[ Fixed Bug: Symbols are not always correctly rendered in html ]]
27
32
  * [[ home page ]]
@@ -31,6 +36,7 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
31
36
  * [[ How to hack soks ]]
32
37
  * [[ How to import a site from instiki ]]
33
38
  * [[ How to install Soks ]]
39
+ * [[ How to report a bug ]]
34
40
  * [[ How to use the keyboard shortcuts ]]
35
41
  * [[ How to use this wiki ]]
36
42
  * [[ Instructions and Howtos ]]
@@ -38,6 +44,7 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
38
44
  * [[ Latest News ]]
39
45
  * [[ let me know ]]
40
46
  * [[ List of changes ]]
47
+ * [[ Planned Features ]]
41
48
  * [[ README ]]
42
49
  * [[ Recent Blog Entries ]]
43
50
  * [[ Recent Changes to This Site ]]
@@ -48,8 +55,6 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
48
55
  * [[ SOKS features ]]
49
56
  * [[ Soks Licence ]]
50
57
  * [[ tamc2 ]]
51
- * [[ test page ]]
52
- * [[ Picture of Type a title here ]]
53
58
 
54
59
 
55
60
  </automaticsummary>
@@ -33,13 +33,7 @@ module StartSoks
33
33
 
34
34
  def self.start
35
35
  start_wiki( CUSTOMSETTINGS ) do |wiki, view|
36
- AutomaticRecentChanges.new( wiki )
37
36
 
38
- AutomaticOnePageIndex.new( wiki ) # Index on one page, best for small wikis
39
- # AutomaticMultiPageIndex.new( wiki ) # One page per letter index, best for large wikis
40
-
41
- # calendar = AutomaticCalendar.new( wiki ) # Adds a series of calendar pages to the wiki
42
- # AutomaticUpcomingEvents.new( wiki, calendar ) # Creates a page with the next weeks events drawn from the calendar pages
43
37
 
44
38
  # Examples of automatically generated summary pages:
45
39
  AutomaticSummary.new( wiki,
@@ -83,6 +77,23 @@ module StartSoks
83
77
  # :summarise_revisions => false, # If true, then can contain several revisions for same page
84
78
  # :remove_deleted_pages => true, # If false will keep references to deleted pages
85
79
 
80
+ # These are beta...
81
+ =begin
82
+ require 'helpers/rss2wiki-helper'
83
+ RSS2WikiHelper.new( wiki, :url => 'http://rubyforge.org/export/rss_sfnews.php' )
84
+
85
+ require 'helpers/mail2wiki-helper'
86
+ Mail2WikiHelper.new( wiki )
87
+ =end
88
+
89
+ # Putting these towards the end speeds things up.
90
+ AutomaticRecentChanges.new( wiki )
91
+ AutomaticOnePageIndex.new( wiki ) # Index on one page, best for small wikis
92
+ # AutomaticMultiPageIndex.new( wiki ) # One page per letter index, best for large wikis
93
+
94
+ # calendar = AutomaticCalendar.new( wiki ) # Adds a series of calendar pages to the wiki
95
+ # AutomaticUpcomingEvents.new( wiki, calendar ) # Creates a page with the next weeks events drawn from the calendar pages
96
+
86
97
  # This is an array of titles that will NOT be automatically linked.
87
98
  # Default is the 30 most common words in the english language
88
99
  # Note that pages can still be created with these titles, and they can still be manually linked to.
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,5 +1,6 @@
1
- <span class='pagename'><%= pagename %> <%= page.deleted? ? "(Deleted)" : '' %></span>
2
- <form method=post action='/save/<%= pagename %>' >
1
+ <span class='pagename'><a href='<%= url pagename, "meta" %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
2
+
3
+ <form method=post action='<%= url pagename, "save" %>' >
3
4
  <table>
4
5
  <tr>
5
6
  <td>Title:</td>
@@ -31,17 +32,17 @@
31
32
  </tr>
32
33
  <tr>
33
34
  <td>Author:</td>
34
- <td><a href='/<%= person %>'><%= person %></a> Quit browser to log out.</td>
35
+ <td><a href='<%= url person %>'><%= person %></a> Quit browser to log out.</td>
35
36
  </tr>
36
37
  <tr>
37
38
  <td></td>
38
- <td><input name=action value='Save' type=submit accesskey="S"> <a href='/<%= pagename %>' accesskey="C" >(Do not Save)</a> or <a href='/delete/<%= pagename %>' accesskey='D'>(Delete)</a> this page.</td>
39
+ <td><input name=action value='Save' type=submit accesskey="S"> <a href='<%= url pagename %>' accesskey="C" >(Do not Save)</a> or <a href='<%= url pagename, 'delete' %>' accesskey='D'>(Delete)</a> this page.</td>
39
40
  </tr>
40
41
  </table>
41
42
  </form>
42
43
  <hr />
43
44
  <% unless page.empty? %>
44
- <p>The most recent change was made by <a href='/<%= page.author %>'><%= page.author %></a> who changed:</p>
45
+ <p>The most recent change was made by <a href='<%= url page.author %>'><%= page.author %></a> who changed:</p>
45
46
  <%
46
47
  page.changes.each do |change_group|
47
48
  change_group.each do |change|
@@ -56,6 +57,6 @@
56
57
  end
57
58
  %>
58
59
  <p>
59
- <a href='/rollback/<%= pagename %>?revision=<%= page.number-1 %>' accesskey="U" >(Undo this change)</a> or <a href='/revisions/<%= pagename %>' accesskey="A" >(Show All changes)</a>
60
+ <a href='<%= url pagename, "rollback" %>?revision=<%= page.number-1 %>' accesskey="U" >(Undo this change)</a> or <a href='<%= url pagename, "revisions" %>' accesskey="A" >(Show All changes)</a>
60
61
  </p>
61
62
  <% end %>
@@ -1,4 +1,4 @@
1
- <span class='pagename'><a href='/<%= pagename %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
1
+ <span class='pagename'><a href='<%= url pagename %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
2
2
 
3
3
  <h1><%= pagename %></h1>
4
4
 
@@ -11,7 +11,7 @@
11
11
 
12
12
  <ul>
13
13
  <% page.links_from.each do |linkedpage| %>
14
- <li><a href='/<%= linkedpage.name %>'><%= linkedpage.name %></a></li>
14
+ <li><a href='<%= url linkedpage.name %>'><%= linkedpage.name %></a></li>
15
15
  <% end %>
16
16
  </ul>
17
17
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  <ul>
24
24
  <% page.links_to.each do |linkedpage| %>
25
- <li><a href='/<%= linkedpage.name %>'><%= linkedpage.name %></a></li>
25
+ <li><a href='<%= url linkedpage.name %>'><%= linkedpage.name %></a></li>
26
26
  <% end %>
27
27
  </ul>
28
28
 
@@ -32,8 +32,8 @@
32
32
  <h2>Authors</h2>
33
33
 
34
34
  <ol>
35
- <% page.revisions.each do |revision| %>
36
- <li><a href='/<%= revision.author %>'><%= revision.author %></a></li>
35
+ <% page.revisions.map { |revision| revision.author }.uniq.each do |author| %>
36
+ <li><a href='<%= url author %>'><%= author %></a></li>
37
37
  <% end %>
38
38
  </ol>
39
39
 
@@ -1,7 +1,8 @@
1
- <span class='pagename'><%= pagename %></span>
1
+ <span class='pagename'><a href='<%= url pagename, "meta" %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
2
+
2
3
  <div class="undochange">
3
4
  <% page.revisions.reverse_each do |revision| %>
4
- <p><%= revision.created_on %> by <a href='/<%= revision.author %>'><%= revision.author %></a> <a href='/rollback/<%= pagename %>?revision=<%= revision.number-1 %>' >(undo)</a>:</p>
5
+ <p><%= revision.created_on %> by <a href='<%= url revision.author %>'><%= revision.author %></a> <a href='<%= url pagename, "rollback" %>?revision=<%= revision.number-1 %>' >(undo)</a>:</p>
5
6
  <p>
6
7
  <% revision.changes.each do |change_group| %>
7
8
  <% change_group.each do |change|
@@ -15,5 +16,5 @@
15
16
  <% end %>
16
17
  </p>
17
18
  <% end %>
18
- <br />(<a href='/edit/<%= pagename %>' accesskey="R" >Return to editing</a>)
19
+ <br />(<a href='<%= url pagename, "edit" %>' accesskey="R" >Return to editing</a>)
19
20
  </div>
@@ -4,7 +4,7 @@
4
4
  <h2>Matches in the titles of pages</h2>
5
5
  <ul>
6
6
  <% title_results.each do |name, page| %>
7
- <li><a href='/<%= name %>' ><%= name %></a></li>
7
+ <li><a href='<%= url name %>' ><%= name %></a></li>
8
8
  <% end %>
9
9
  </ul>
10
10
  <% end %>
@@ -12,8 +12,8 @@
12
12
  <h2>Matches in the text of pages</h2>
13
13
  <ul>
14
14
  <% text_results.each do |name, page| %>
15
- <li><a href='/<%= name %>' ><%= name %></a></li>
15
+ <li><a href='<%= url name %>' ><%= name %></a></li>
16
16
  <% end %>
17
17
  </ul>
18
18
  <% end %>
19
- <div class='command'>(<a href='/edit/<%= pagename %>' accesskey="E" >Create a page titled &#8220;<%= pagename %>&#8221;</a>)</div>
19
+ <div class='command'>(<a href='<%= url pagename, "edit" %>' accesskey="E" >Create a page titled &#8220;<%= pagename %>&#8221;</a>)</div>
@@ -1,4 +1,4 @@
1
- <span class='pagename'><a href='/meta/<%= pagename %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
1
+ <span class='pagename'><a href='<%= url pagename, "meta" %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
2
2
 
3
3
  <%= renderedview %>
4
- <div class='command'><a href='/edit/<%= pagename %>' accesskey="E" >(Edit this page)</a></div>
4
+ <div class='command'><a href='<%= url pagename, "edit" %>' accesskey="E" >(Edit this page)</a></div>
@@ -1,6 +1,6 @@
1
- <span class='pagename'><%= pagename %><%= page.deleted? ? "(Deleted)" : '' %></span>
1
+ <span class='pagename'><a href='<%= url pagename, "meta" %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
2
2
 
3
- <form action='/upload/<%= pagename %>' method=post enctype=multipart/form-data >
3
+ <form action='<%= url pagename, "upload" %>' method=post enctype=multipart/form-data >
4
4
  <table>
5
5
  <tr><td>Title:</td><td>
6
6
  <% if page.is_a? ImagePage %>
@@ -12,13 +12,13 @@
12
12
  <% end %>
13
13
  onClick="this.value == 'Type a title here' ? this.value = '' : true"/></td></tr>
14
14
  <tr><td valign='top'>File:</td><td><input name='file' type=file /></td></tr>
15
- <tr><td>Author:</td><td><a href='/<%= person %>'><%= person %></a> Quit browser to log out.</td>
16
- <tr><td></td><td><input name=action value='Save' type=submit accesskey="S"> <a href='/<%= pagename %>' accesskey="C" >(Cancel)</a> or <a href='/delete/<%= pagename %>' accesskey='D'>(Delete)</a> this page.</td></tr>
15
+ <tr><td>Author:</td><td><a href='<%= url person %>'><%= person %></a> Quit browser to log out.</td>
16
+ <tr><td></td><td><input name=action value='Save' type=submit accesskey="S"> <a href='<%= url pagename %>' accesskey="C" >(Cancel)</a> or <a href='<%= url pagename, 'delete' %>' accesskey='D'>(Delete)</a> this page.</td></tr>
17
17
  </table>
18
18
  </form>
19
19
  <hr />
20
20
  <% unless page.empty? %>
21
- <p>The most recent change was made by <a href='/<%= page.author %>'><%= page.author %></a> who changed:</p>
21
+ <p>The most recent change was made by <a href='<%= url page.author %>'><%= page.author %></a> who changed:</p>
22
22
  <%
23
23
  page.changes.each do |change_group|
24
24
  change_group.each do |change|
@@ -33,6 +33,6 @@
33
33
  end
34
34
  %>
35
35
  <p>
36
- <a href='/rollback/<%= pagename %>?revision=<%= page.number - 1 %>' accesskey="U" >(Undo this change)</a> or <a href='/revisions/<%= pagename %>' accesskey="A" >(Show All changes)</a>
36
+ <a href='<%= url pagename, "rollback" %>?revision=<%= page.number - 1 %>' accesskey="U" >(Undo this change)</a> or <a href='<%= url pagename, "revisions" %>' accesskey="A" >(Show All changes)</a>
37
37
  </p>
38
38
  <% end %>
@@ -4,39 +4,40 @@
4
4
  <title><%= pagename %></title>
5
5
  <meta name='description' content='<%= $SETTINGS[:description] %>' />
6
6
  <meta name='keywords' content='Soks, <%= $SETTINGS[:name] %>' />
7
- <link href='/attachment/stylesheet.css' rel='stylesheet' type='text/css' media='screen' />
8
- <link href='/attachment/print_stylesheet.css' rel='stylesheet' type='text/css' media='print' />
9
- <link rel='alternate' type='application/rss+xml' title='RSS' href='/rss/<%= pagename %>' />
10
- <script src='/attachment/newpage.js' type='text/javascript'></script>
7
+ <link href='<%= file 'stylesheet.css' %>' rel='stylesheet' type='text/css' media='screen' />
8
+ <link href='<%= file 'print_stylesheet.css' %>' rel='stylesheet' type='text/css' media='print' />
9
+ <link rel='alternate' type='application/rss+xml' title='RSS' href='<%= url pagename, 'rss' %>' />
10
+ <script src='<%= file 'newpage.js' %>' type='text/javascript'></script>
11
+ <link rel="SHORTCUT ICON" href='<%= file 'favicon.ico' %>' />
11
12
  </head>
12
13
  <body onkeypress='hotkey(event);'>
13
14
  <div id='content'>
14
15
  <%= content_of_page %>
15
16
  </div>
16
17
  <div id='menu'>
17
- <a href='/Home Page' accesskey='H' ><img width='149' src='/attachment/logo.png' alt='<%= @wikiname %>' /></a>
18
- <form method='get' action='/find/<%= pagename %>' >
18
+ <a href='<%= url 'Home Page' %>' accesskey='H' ><img width='149' src='<%= file 'logo.png' %>' alt='<%= @wikiname %>' /></a>
19
+ <form method='get' action='<%= url pagename, 'find' %>' >
19
20
  <input class='search' name='regex' value='' size='18' />
20
21
  <input name='action' value='search' type='submit' />
21
22
  </form>
22
- <a href='/site index' accesskey='I' >Site Index</a>
23
- <a href='/recent changes to this site' accesskey='R' >Recent Changes</a>
23
+ <a href='<%= url 'site index' %>' accesskey='I' >Site Index</a>
24
+ <a href='<%= url 'recent changes to this site' %>' accesskey='R' >Recent Changes</a>
24
25
  <% if page %>
25
26
  <br />
26
27
  <% page.links_to.each do |linkedpage| %>
27
- <a href='/<%= linkedpage.name %>'><%= linkedpage.name %></a>
28
+ <a href='<%= url linkedpage.name %>'><%= linkedpage.name %></a>
28
29
  <% end %>
29
30
  <% end %>
30
31
  <br />
31
- <a href='/edit/Type a title here'>Add a new page</a>
32
- <a href='/edit/Picture of Type a title here'>Upload a new picture</a>
33
- <a href='/edit/Attached Type a title here'>Upload a new file</a>
32
+ <a href='<%= url 'Type a title here', 'edit' %>'>Add a new page</a>
33
+ <a href='<%= url 'Picture of Type a title here', 'edit' %>'>Upload a new picture</a>
34
+ <a href='<%= url 'Attached Type a title here', 'edit' %>'>Upload a new file</a>
34
35
  <br />
35
36
  <span class='disclaimer'>
36
- This website can be edited by anyone. It is therefore unlikely to represent the views of anyone named.
37
+ Powered by <a style='display:inline;' href='http://soks.rubyforge.org'>Soks</a>
37
38
  </span>
38
39
  <br />
39
- <a style='display:inline;' href='/rss/<%= pagename %>'><img src='/attachment/rss.png' alt='rss feed' /></a>
40
+ <a style='display:inline;' href='<%= url pagename, 'rss' %>'><img src='<%= file 'rss.png'%>' alt='rss feed' /></a>
40
41
  </div>
41
42
  </body>
42
43
  </html>
@@ -0,0 +1 @@
1
+ page deleted
@@ -0,0 +1 @@
1
+ content moved to [[Attached ruby logo]]