junebug-wiki 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ = 0.0.24 2006-11-29
2
+
3
+ * Accesskey attributes added for edit(e) and save(s). Thanks willcodeforfoo!
4
+ * Edit form tweaks
5
+
6
+
1
7
  = 0.0.23 2006-11-28
2
8
 
3
9
  * *EXISTING USERS PLEASE READ THE RELEASE NOTES*
@@ -2,7 +2,7 @@ module Junebug #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 23
5
+ TINY = 24
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -23,7 +23,7 @@ module Junebug::Views
23
23
  def show
24
24
  _header (@version.version == @page.version ? :backlinks : :show)
25
25
  _body do
26
- _button 'edit', R(Edit, @page.title_url, @version.version), {:style=>'float: right; margin: 0 0 5px 5px;'} if (@version.version == @page.version && (! @page.readonly || is_admin?))
26
+ _button 'edit', R(Edit, @page.title_url, @version.version), {:style=>'float: right; margin: 0 0 5px 5px;', :accesskey => 'e'} if (@version.version == @page.version && (! @page.readonly || is_admin?))
27
27
  h1 @page.title
28
28
  _markup @version.body
29
29
  _button 'edit', R(Edit, @page.title_url, @version.version), {:style=>'float: right; margin: 5px 0 0 5px;'} if (@version.version == @page.version && (! @page.readonly || is_admin?)) && (@version.body && @version.body.size > 200)
@@ -67,25 +67,26 @@ module Junebug::Views
67
67
  small " word characters (0-9A-Za-z), dashes, and spaces only"
68
68
  }
69
69
  p {
70
- label 'Page Content'
70
+ a 'syntax help', :href => 'http://hobix.com/textile/', :target=>'_blank', :style => 'float: right;'
71
+ label 'Page Content '
71
72
  br
72
73
  textarea @page.body, :name => 'post_body', :rows => 17, :cols => 80
73
74
  }
75
+ input :type => 'submit', :name=>'submit', :value=>'cancel', :class=>'button', :style=>'float: right;'
76
+ input :type => 'submit', :name=>'submit', :value=>'save', :class=>'button', :style=>'float: right;', :accesskey => 's'
74
77
  if is_admin?
75
78
  opts = { :type => 'checkbox', :value=>'1', :name => 'post_readonly' }
76
79
  opts[:checked] = 1 if @page.readonly
77
80
  input opts
78
81
  text " Readonly "
82
+ br
79
83
  end
80
84
  if @page.user_id == @state.user.id
81
85
  input :type=>'checkbox', :value=>'1', :name=>'quicksave'
82
- text " Quicksave "
86
+ text " Minor edit (don't increment version) "
83
87
  end
84
- br
85
- input :type => 'submit', :name=>'submit', :value=>'cancel', :class=>'button', :style=>'float: right;'
86
- input :type => 'submit', :name=>'submit', :value=>'save', :class=>'button', :style=>'float: right;'
88
+
87
89
  end
88
- a 'syntax help', :href => 'http://hobix.com/textile/', :target=>'_blank'
89
90
  br :clear=>'all'
90
91
  }
91
92
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: junebug-wiki
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.23
7
- date: 2006-11-28 00:00:00 -08:00
6
+ version: 0.0.24
7
+ date: 2006-11-29 00:00:00 -08:00
8
8
  summary: Junebug is a minimalist ruby wiki running on Camping.
9
9
  require_paths:
10
10
  - lib