radiant-forum-extension 1.1.2 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/admin/forums_controller.rb +3 -4
  3. data/app/controllers/admin/posts_controller.rb +10 -0
  4. data/app/controllers/admin/topics_controller.rb +10 -0
  5. data/app/controllers/posts_controller.rb +3 -27
  6. data/app/controllers/topics_controller.rb +3 -17
  7. data/app/helpers/forum_helper.rb +2 -2
  8. data/app/models/forum.rb +2 -24
  9. data/app/models/post.rb +12 -9
  10. data/app/models/post_attachment.rb +13 -13
  11. data/app/models/topic.rb +28 -55
  12. data/app/views/admin/forums/edit.html.haml +2 -1
  13. data/app/views/admin/forums/index.html.haml +42 -39
  14. data/app/views/admin/posts/_form.html.haml +25 -0
  15. data/app/views/admin/posts/edit.html.haml +6 -0
  16. data/app/views/admin/posts/index.html.haml +49 -0
  17. data/app/views/admin/reader_configuration/_edit_forum.html.haml +3 -3
  18. data/app/views/admin/reader_configuration/_forum.html.haml +19 -14
  19. data/app/views/admin/topics/_form.html.haml +24 -0
  20. data/app/views/admin/topics/edit.html.haml +6 -0
  21. data/app/views/admin/topics/index.html.haml +49 -0
  22. data/app/views/forums/index.html.haml +0 -7
  23. data/app/views/forums/show.html.haml +4 -3
  24. data/app/views/posts/_attachment.html.haml +4 -0
  25. data/app/views/posts/_form.html.haml +1 -3
  26. data/app/views/posts/_post.html.haml +50 -51
  27. data/app/views/posts/_reply.html.haml +16 -17
  28. data/app/views/posts/_search.html.haml +13 -17
  29. data/app/views/posts/_upload.html.haml +2 -0
  30. data/app/views/posts/_uploader.html.haml +15 -15
  31. data/app/views/posts/edit.html.haml +5 -7
  32. data/app/views/posts/index.html.haml +1 -8
  33. data/app/views/posts/search.html.haml +54 -45
  34. data/app/views/posts/show.html.haml +14 -6
  35. data/app/views/topics/_form.html.haml +15 -11
  36. data/app/views/topics/_latest.html.haml +0 -2
  37. data/app/views/topics/_locked.html.haml +2 -2
  38. data/app/views/topics/_topic.html.haml +50 -31
  39. data/app/views/topics/comments.html.haml +2 -1
  40. data/app/views/topics/index.html.haml +1 -9
  41. data/app/views/topics/new.html.haml +29 -18
  42. data/app/views/topics/show.html.haml +14 -14
  43. data/config/initializers/radiant_config.rb +12 -0
  44. data/config/locales/en.yml +81 -12
  45. data/forum_extension.rb +11 -16
  46. data/lib/forum_admin_ui.rb +47 -5
  47. data/radiant-forum-extension.gemspec +12 -4
  48. metadata +14 -6
  49. data/app/views/readers/_extra_controls.html.haml +0 -5
  50. data/app/views/readers/show_with_posts.html.haml +0 -47
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-forum-extension}
8
- s.version = "1.1.2"
8
+ s.version = "1.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
12
- s.date = %q{2010-11-01}
12
+ s.date = %q{2010-11-08}
13
13
  s.description = %q{Nice clean forums and page comments for inclusion in your radiant site. Derived long ago from beast. Requires the reader extension and share_layouts.}
14
14
  s.email = %q{will@spanner.org}
15
15
  s.extra_rdoc_files = [
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
20
20
  "Rakefile",
21
21
  "VERSION",
22
22
  "app/controllers/admin/forums_controller.rb",
23
+ "app/controllers/admin/posts_controller.rb",
24
+ "app/controllers/admin/topics_controller.rb",
23
25
  "app/controllers/forums_controller.rb",
24
26
  "app/controllers/posts_controller.rb",
25
27
  "app/controllers/topics_controller.rb",
@@ -36,9 +38,15 @@ Gem::Specification.new do |s|
36
38
  "app/views/admin/forums/new.html.haml",
37
39
  "app/views/admin/forums/remove.html.haml",
38
40
  "app/views/admin/pages/_edit_commentability.html.haml",
41
+ "app/views/admin/posts/_form.html.haml",
42
+ "app/views/admin/posts/edit.html.haml",
43
+ "app/views/admin/posts/index.html.haml",
39
44
  "app/views/admin/reader_configuration/_edit_forum.html.haml",
40
45
  "app/views/admin/reader_configuration/_forum.html.haml",
41
46
  "app/views/admin/sites/_choose_forum_layout.html.haml",
47
+ "app/views/admin/topics/_form.html.haml",
48
+ "app/views/admin/topics/edit.html.haml",
49
+ "app/views/admin/topics/index.html.haml",
42
50
  "app/views/forums/_forum.html.haml",
43
51
  "app/views/forums/index.html.haml",
44
52
  "app/views/forums/show.html.haml",
@@ -56,6 +64,7 @@ Gem::Specification.new do |s|
56
64
  "app/views/posts/_post.rss.builder",
57
65
  "app/views/posts/_reply.html.haml",
58
66
  "app/views/posts/_search.html.haml",
67
+ "app/views/posts/_upload.html.haml",
59
68
  "app/views/posts/_uploader.html.haml",
60
69
  "app/views/posts/edit.html.haml",
61
70
  "app/views/posts/index.html.haml",
@@ -66,8 +75,6 @@ Gem::Specification.new do |s|
66
75
  "app/views/posts/search.rss.builder",
67
76
  "app/views/posts/show.html.haml",
68
77
  "app/views/reader_notifier/post.rhtml",
69
- "app/views/readers/_extra_controls.html.haml",
70
- "app/views/readers/show_with_posts.html.haml",
71
78
  "app/views/topics/_form.html.haml",
72
79
  "app/views/topics/_help.html.haml",
73
80
  "app/views/topics/_latest.html.haml",
@@ -81,6 +88,7 @@ Gem::Specification.new do |s|
81
88
  "app/views/topics/new.html.haml",
82
89
  "app/views/topics/show.html.haml",
83
90
  "app/views/topics/show.rss.builder",
91
+ "config/initializers/radiant_config.rb",
84
92
  "config/locales/en.yml",
85
93
  "config/routes.rb",
86
94
  "db/migrate/001_create_forum_tables.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-forum-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 1
9
8
  - 2
10
- version: 1.1.2
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-01 00:00:00 +00:00
18
+ date: 2010-11-08 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -63,6 +63,8 @@ files:
63
63
  - Rakefile
64
64
  - VERSION
65
65
  - app/controllers/admin/forums_controller.rb
66
+ - app/controllers/admin/posts_controller.rb
67
+ - app/controllers/admin/topics_controller.rb
66
68
  - app/controllers/forums_controller.rb
67
69
  - app/controllers/posts_controller.rb
68
70
  - app/controllers/topics_controller.rb
@@ -79,9 +81,15 @@ files:
79
81
  - app/views/admin/forums/new.html.haml
80
82
  - app/views/admin/forums/remove.html.haml
81
83
  - app/views/admin/pages/_edit_commentability.html.haml
84
+ - app/views/admin/posts/_form.html.haml
85
+ - app/views/admin/posts/edit.html.haml
86
+ - app/views/admin/posts/index.html.haml
82
87
  - app/views/admin/reader_configuration/_edit_forum.html.haml
83
88
  - app/views/admin/reader_configuration/_forum.html.haml
84
89
  - app/views/admin/sites/_choose_forum_layout.html.haml
90
+ - app/views/admin/topics/_form.html.haml
91
+ - app/views/admin/topics/edit.html.haml
92
+ - app/views/admin/topics/index.html.haml
85
93
  - app/views/forums/_forum.html.haml
86
94
  - app/views/forums/index.html.haml
87
95
  - app/views/forums/show.html.haml
@@ -99,6 +107,7 @@ files:
99
107
  - app/views/posts/_post.rss.builder
100
108
  - app/views/posts/_reply.html.haml
101
109
  - app/views/posts/_search.html.haml
110
+ - app/views/posts/_upload.html.haml
102
111
  - app/views/posts/_uploader.html.haml
103
112
  - app/views/posts/edit.html.haml
104
113
  - app/views/posts/index.html.haml
@@ -109,8 +118,6 @@ files:
109
118
  - app/views/posts/search.rss.builder
110
119
  - app/views/posts/show.html.haml
111
120
  - app/views/reader_notifier/post.rhtml
112
- - app/views/readers/_extra_controls.html.haml
113
- - app/views/readers/show_with_posts.html.haml
114
121
  - app/views/topics/_form.html.haml
115
122
  - app/views/topics/_help.html.haml
116
123
  - app/views/topics/_latest.html.haml
@@ -124,6 +131,7 @@ files:
124
131
  - app/views/topics/new.html.haml
125
132
  - app/views/topics/show.html.haml
126
133
  - app/views/topics/show.rss.builder
134
+ - config/initializers/radiant_config.rb
127
135
  - config/locales/en.yml
128
136
  - config/routes.rb
129
137
  - db/migrate/001_create_forum_tables.rb
@@ -1,5 +0,0 @@
1
- %br
2
- start a new discussion
3
- | discussions
4
- | categories
5
- | search
@@ -1,47 +0,0 @@
1
- = render :partial => 'flasher'
2
-
3
- #reader
4
- - if @reader.description.blank?
5
- - if @reader == current_reader
6
- %p
7
- = link_to "Edit your preferences", edit_reader_url(current_reader)
8
- to put some text about yourself here.
9
- - else
10
- %p No description provided.
11
- - else
12
- = clean_textilize @reader.description
13
-
14
- #forum
15
- %h2{:style => 'clear: left;'}
16
- Messages from
17
- = @reader.name
18
- = feed_link(search_posts_url(:reader_id => @reader.id, :format => :rss))
19
-
20
- - if @posts
21
- %ul.main
22
- - if @posts.previous_page
23
- = paginate_and_summarise @posts, 'comments'
24
-
25
- = render :partial => 'posts/post', :collection => @posts, :locals => { :with_context => true, :without_author => false, :preview => true }
26
-
27
- - if @posts.next_page
28
- = paginate_and_summarise @posts, 'comments'
29
-
30
- - else
31
- %p None yet
32
-
33
- - content_for :breadcrumbs do
34
- = link_to 'Home', '/'
35
- >
36
- = link_to 'Readers', '/readers'
37
- >
38
- = @reader.name
39
-
40
- - content_for :pagetitle do
41
- = @reader.name
42
-
43
- - content_for :mugshot do
44
- = gravatar_for(@reader, {:size => 42}, {:alt => @reader.name, :class => 'gravatar'})
45
-
46
- - content_for :breadhead do
47
- = link_to 'People', '/readers', :class => 'breadhead'