drg_blog_news_forum 0.5.52.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/drg_blog_news_forum.css +28 -7
  4. data/app/{controllers/drgcms_controls → controls}/dc_blog_dc_reply_control.rb +1 -1
  5. data/app/{controllers/drgcms_controls → controls}/dc_forum_topic_control.rb +1 -1
  6. data/app/{controllers/drgcms_controls → controls}/dc_forum_topic_dc_reply_control.rb +4 -1
  7. data/app/{controllers/drgcms_controls → controls}/dc_news_dc_reply_control.rb +1 -1
  8. data/app/{controllers/drgcms_controls → controls}/reply_control.rb +19 -2
  9. data/app/forms/dc_blog.yml +32 -29
  10. data/app/forms/dc_forum_topic.yml +9 -3
  11. data/app/forms/dc_news.yml +27 -26
  12. data/app/forms/dc_reply.yml +1 -1
  13. data/app/forms/dc_reply_public.yml +37 -0
  14. data/app/forms/reply.yml +11 -7
  15. data/app/helpers/dc_bnf_helper.rb +1 -1
  16. data/app/models/dc_blog.rb +9 -5
  17. data/app/models/dc_forum.rb +1 -0
  18. data/app/models/dc_forum_topic.rb +1 -2
  19. data/app/models/dc_news.rb +6 -2
  20. data/app/models/dc_reply.rb +4 -2
  21. data/app/{helpers → renderers}/dc_blog_renderer.rb +35 -20
  22. data/app/{helpers → renderers}/dc_forum_renderer.rb +4 -4
  23. data/app/{helpers → renderers}/dc_news_renderer.rb +4 -3
  24. data/app/views/dc_blog/{_blogers.html.erb → _bloggers.html.erb} +4 -3
  25. data/app/views/dc_blog/_list.html.erb +6 -2
  26. data/app/views/dc_blog/_show.html.erb +13 -3
  27. data/app/views/dc_forum/_forums.html.erb +19 -8
  28. data/app/views/dc_forum/_topic.html.erb +31 -41
  29. data/app/views/dc_forum/_topics.html.erb +18 -22
  30. data/app/views/dc_news/_list.html.erb +4 -2
  31. data/app/views/dc_news/_show.html.erb +2 -2
  32. data/app/views/dc_replay/_reply.html.erb +6 -7
  33. data/config/locales/dc_bnf_en.yml +2 -1
  34. data/config/locales/dc_bnf_sl.yml +2 -1
  35. data/config/locales/models_en.yml +2 -0
  36. data/config/locales/models_sl.yml +3 -0
  37. data/lib/drg_blog_news_forum/version.rb +1 -1
  38. metadata +18 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: df3654faf8249615292d74cc3e8e4bfffe783055
4
- data.tar.gz: 62493c2c36520bffe5feeb7929e8fb9326386bb7
2
+ SHA256:
3
+ metadata.gz: 72ed58040560740422402bad4242efe137bec31681dbd74754d9b503abc03ef2
4
+ data.tar.gz: 2ea79957ac9959149b97465049f687bd1acf2960013f2e0c1e7c3242d4b052c5
5
5
  SHA512:
6
- metadata.gz: e819a01d19b77034c842c281ecabf5718592b59044edc2a8bef8c31181925925d00e7af4bd69913af547e3b484a0c854d98bbfe667728d28a90e7beff2227b04
7
- data.tar.gz: bf6c9b7eda130ed6a96c952a7398d0d771f90e223d5abdca45516a166477e29bfe4f87738b3bdc7cbf3ee0ccdf7fb9adb4c601ac25b0fae1872379ce42e1b21b
6
+ metadata.gz: 95005b8b47db2fd05b1055fcbaee1b50c71eaebdf9ad62db6d8ad1f6df2ff7af41fc33c5277c18eb0f93166565d2bf4dd2e675b071b563130414558e89371c50
7
+ data.tar.gz: d3b8e1993a75a0562d14ae4d35a375022fc0aebc168b879297635d052d2774b4e75e15ef158aa58e8a43892c9b0dde2caa6ad78c46f3556d308bb0671e74209a
data/README.md CHANGED
@@ -30,7 +30,7 @@ Please see the DRG CMS website for up-to-date documentation:
30
30
  License
31
31
  -------
32
32
 
33
- Copyright (c) 2014-2018 Damjan Rems
33
+ Copyright (c) 2014-2022 Damjan Rems
34
34
 
35
35
  Permission is hereby granted, free of charge, to any person obtaining
36
36
  a copy of this software and associated documentation files (the
@@ -135,23 +135,32 @@ border-radius: 2px;
135
135
  }
136
136
 
137
137
  /******* dc_blog *******/
138
+
138
139
  #blogs .title {
139
140
  font-size: 1.4em;
140
141
  padding-bottom: 5px;
141
142
  }
142
- .blog-subject {
143
- font-size: 1.4em;
143
+
144
+ #blogs h1 {
145
+ font-size: 2.2em;
146
+ font-weight: 600;
147
+ }
148
+
149
+
150
+ .blog-subject h1 {
151
+ font-size: 2.2em;
144
152
  font-weight: bold;
145
- margin-top: 20px;
146
153
  }
147
154
  .blog-date {
148
- font-size: 1em;
155
+ font-size: 1.2em;
149
156
  color: #aaa;
150
157
  margin-bottom: 20px;
151
158
  }
152
159
  .blog-body {
160
+ font-size: 1.2em;
153
161
  }
154
- .blog-replies {
162
+ .blog-replies h2 {
163
+ font-size: 2em;
155
164
  }
156
165
  .reply-top.even {
157
166
  padding:5px;
@@ -170,8 +179,8 @@ margin-bottom: 0em;
170
179
  margin-top: 10px;
171
180
  }
172
181
  .blog-entry a {
173
- font-size: 1.6em;
174
- font-weight: bold;
182
+ font-size: 1.4em;
183
+ font-weight: 600;
175
184
  }
176
185
 
177
186
  .social-sites {
@@ -184,4 +193,16 @@ padding-bottom: 5px;
184
193
  /**** news ****/
185
194
  .news.one .author {
186
195
  font-size: 1.2em;
196
+ font-weight: 600;
187
197
  }
198
+
199
+ .news .body {
200
+ font-size: 1.2em;
201
+ }
202
+ .news .document {
203
+ font-size: 1.2em;
204
+ }
205
+
206
+ .news h2 {
207
+ font-size: 1.4em;
208
+ }
@@ -25,7 +25,7 @@
25
25
  ######################################################################
26
26
  # DrgcmsControls for DcBlog.DcReply form
27
27
  ######################################################################
28
- module DrgcmsControls::DcBlogDcReplyControl
28
+ module DcBlogDcReplyControl
29
29
 
30
30
  ######################################################################
31
31
  # Called when new empty record is created
@@ -25,7 +25,7 @@
25
25
  ######################################################################
26
26
  # DrgcmsControls for DcForumTopic form
27
27
  ######################################################################
28
- module DrgcmsControls::DcForumTopicControl
28
+ module DcForumTopicControl
29
29
  ######################################################################
30
30
  # Called when new empty record is created
31
31
  ######################################################################
@@ -25,7 +25,7 @@
25
25
  ######################################################################
26
26
  # DrgcmsControls for DcForum.DcReply form
27
27
  ######################################################################
28
- module DrgcmsControls::DcForumTopicDcReplyControl
28
+ module DcForumTopicDcReplyControl
29
29
 
30
30
  ######################################################################
31
31
  # Called when new empty record is created
@@ -37,6 +37,9 @@ def dc_new_record()
37
37
  @record.subject = "Re: #{replyto.subject}"
38
38
  @record.body = "<div class='dc-forum-quote'>#{replyto.body}</div><br>"
39
39
  end
40
+ @record.created_by_name = session[:user_name] if session[:user_name]
41
+ @record.doc_id = params[:parent_doc]
42
+ @record.doc_class = 'DcForum'
40
43
  end
41
44
 
42
45
  ######################################################################
@@ -25,7 +25,7 @@
25
25
  ######################################################################
26
26
  # DrgcmsControls for DcBlog.DcReply form
27
27
  ######################################################################
28
- module DrgcmsControls::DcNewsDcReplyControl
28
+ module DcNewsDcReplyControl
29
29
 
30
30
  ######################################################################
31
31
  # Called when new empty record is created
@@ -25,7 +25,7 @@
25
25
  ######################################################################
26
26
  # DrgcmsControls for DcBlog.DcReply form
27
27
  ######################################################################
28
- module DrgcmsControls::ReplyControl
28
+ module ReplyControl
29
29
 
30
30
  ######################################################################
31
31
  # Called when new empty record is created
@@ -35,7 +35,12 @@ def dc_new_record()
35
35
  if params[:reply_to]
36
36
  replyto = DcReply.find(params[:reply_to])
37
37
  @record.subject = (replyto.subject.match('Re:') ? '' : 'Re: ') + replyto.subject
38
- @record.body = "<div class='dc-forum-quote'>#{replyto.body}</div><br>"
38
+ @record.body = "<div class='dc-forum-quote'>[#{replyto.created_by_name}]#{replyto.body}</div><p><br></p>"
39
+ elsif params[:p_doc_id]
40
+ model = params[:p_doc_class].classify.constantize
41
+ doc = model.find(params[:p_doc_id])
42
+ @record.subject = "Re: #{doc.subject}"
43
+
39
44
  end
40
45
  @record.created_by_name = session[:user_name] if session[:user_name]
41
46
  end
@@ -49,4 +54,16 @@ def dc_before_save()
49
54
  return false unless params[:_record][:_honey].blank?
50
55
  end
51
56
 
57
+ ######################################################################
58
+ # Called after succesfull save.
59
+ ######################################################################
60
+ def dc_after_save()
61
+ replies = DcReply.where(doc_id: @record.doc_id, active: true).count
62
+ parent = @record.doc_class.constantize
63
+ doc = parent.find_by(id: @record.doc_id)
64
+ doc.replies = replies
65
+ doc.updated_by_name = @record.created_by_name
66
+ doc.save
67
+ end
68
+
52
69
  end
@@ -1,4 +1,5 @@
1
1
  table: dc_blog
2
+ include: dc_seo
2
3
 
3
4
  index:
4
5
  filter: subject, created_by_name
@@ -10,6 +11,7 @@ result_set:
10
11
  columns:
11
12
  1:
12
13
  name: subject
14
+ width: 30%
13
15
  2:
14
16
  name: created_by_name
15
17
  4:
@@ -20,32 +22,33 @@ edit_title: subject
20
22
  form:
21
23
  actions: standard
22
24
 
23
- fields:
24
- 10:
25
- name: subject
26
- type: text_field
27
- html:
28
- size: 80
29
-
30
- 20:
31
- name: link
32
- type: text_field
33
- html:
34
- size: 80
35
-
36
- 30:
37
- name: created_at
38
- type: datetime_picker
39
-
40
- 40:
41
- name: body
42
- type: html_field
43
- options: 'height: 500'
44
-
45
- 50:
46
- name: dc_replies
47
- type: embedded
48
- form_name: dc_reply
49
- table: dc_reply
50
- html:
51
- height: 400
25
+ tabs:
26
+ 1base:
27
+ 10:
28
+ name: subject
29
+ type: text_field
30
+ html:
31
+ size: 80
32
+
33
+ 20:
34
+ name: link
35
+ type: text_field
36
+ html:
37
+ size: 80
38
+
39
+ 30:
40
+ name: created_at
41
+ type: datetime_picker
42
+
43
+ 40:
44
+ name: body
45
+ type: html_field
46
+ options: 'height: 500'
47
+
48
+ # 50:
49
+ # name: dc_replies
50
+ # type: embedded
51
+ # form_name: dc_reply
52
+ # table: dc_reply
53
+ # html:
54
+ # height: 400
@@ -2,10 +2,16 @@ table: dc_forum_topic
2
2
 
3
3
 
4
4
  form:
5
- height: 600
5
+ height: 625
6
6
  labels_pos: top
7
7
  actions:
8
- 1: save
8
+ 5: save
9
+
10
+ 1:
11
+ type: script
12
+ caption: drgcms.back
13
+ icon: arrow-left
14
+ js: parent.location.reload();
9
15
 
10
16
  fields:
11
17
  10:
@@ -20,7 +26,7 @@ form:
20
26
  30:
21
27
  name: body
22
28
  type: html_field
23
- options: "height: 420, toolbar: 'basic'"
29
+ options: "height: 420, width: 700, toolbar: 'basic'"
24
30
 
25
31
  100:
26
32
  name: dc_forum_id
@@ -1,4 +1,5 @@
1
1
  table: dc_news
2
+ include: dc_seo
2
3
 
3
4
  index:
4
5
  filter: subject, created_by_name
@@ -10,6 +11,8 @@ result_set:
10
11
  columns:
11
12
  1:
12
13
  name: subject
14
+ width: 30%
15
+
13
16
  2:
14
17
  name: created_by_name
15
18
  4:
@@ -20,33 +23,31 @@ edit_title: subject
20
23
  form:
21
24
  actions: standard
22
25
 
23
- fields:
24
- 10:
25
- name: subject
26
- type: text_field
27
- html:
26
+ tabs:
27
+ 1base:
28
+ 10:
29
+ name: subject
30
+ type: text_field
28
31
  size: 80
29
32
 
30
- 20:
31
- name: link
32
- type: text_field
33
- html:
33
+ 20:
34
+ name: link
35
+ type: text_field
34
36
  size: 80
35
37
 
36
- 30:
37
- name: created_at
38
- type: datetime_picker
39
-
40
- 40:
41
- name: categories
42
- type: select
43
- multiple: true
44
- eval: dc_big_table 'news-categories'
45
- html:
46
- include_blank: true
47
-
48
- 50:
49
- name: body
50
- type: html_field
51
- options: 'height: 500'
52
-
38
+ 30:
39
+ name: created_at
40
+ type: datetime_picker
41
+
42
+ 40:
43
+ name: categories
44
+ type: select
45
+ multiple: true
46
+ eval: dc_big_table 'news-categories'
47
+ html:
48
+ include_blank: true
49
+
50
+ 50:
51
+ name: body
52
+ type: html_field
53
+ options: 'height: 500'
@@ -39,4 +39,4 @@ form:
39
39
  50:
40
40
  name: body
41
41
  type: html_field
42
- options: "height: 420, toolbar: 'basic', allowedContent: false"
42
+ options: "height: 420, width: 800, toolbar: 'basic', allowedContent: false"
@@ -0,0 +1,37 @@
1
+ table: dc_reply
2
+
3
+ form:
4
+ actions:
5
+ 1:
6
+ type: save
7
+ 5:
8
+ type: script
9
+ caption: Cancle
10
+ js: parent.reload();
11
+
12
+ height: 750
13
+ actions: standard
14
+
15
+ fields:
16
+ 10:
17
+ name: doc_id
18
+ type: hidden_field
19
+
20
+ 20:
21
+ name: doc_class
22
+ type: hidden_field
23
+
24
+ 30:
25
+ name: created_by_name
26
+ type: text_field
27
+ size: 30
28
+
29
+ 40:
30
+ name: subject
31
+ type: text_field
32
+ size: 80
33
+
34
+ 50:
35
+ name: body
36
+ type: html_field
37
+ options: "height: 420, width: 800, toolbar: 'basic', allowedContent: false"
data/app/forms/reply.yml CHANGED
@@ -4,28 +4,32 @@ title: Reply
4
4
  controls: reply
5
5
 
6
6
  form:
7
- height: 750
7
+ height: 650
8
8
  labels_pos: top
9
9
  actions:
10
- 1: save
10
+ 1:
11
+ type: script
12
+ caption: drgcms.back
13
+ icon: arrow-left
14
+ js: parent.location.reload();
15
+
16
+ 5: save
11
17
 
12
18
  fields:
13
19
  10:
14
20
  name: created_by_name
15
21
  type: text_field
16
- html:
17
- size: 30
22
+ size: 30
18
23
 
19
24
  20:
20
25
  name: subject
21
26
  type: text_field
22
- html:
23
- size: 80
27
+ size: 80
24
28
 
25
29
  30:
26
30
  name: body
27
31
  type: html_field
28
- options: "height: 420, toolbar: 'basic', allowedContent: false"
32
+ options: "height: 420, width: 700, toolbar: 'basic', allowedContent: false"
29
33
  40:
30
34
  name: _honey
31
35
  type: text_field
@@ -22,7 +22,7 @@
22
22
  #++
23
23
 
24
24
  module DcBnfHelper
25
- #include DcApplicationHelper
25
+ include CmsCommonHelper
26
26
 
27
27
  ########################################################################
28
28
  #
@@ -46,11 +46,15 @@ included do
46
46
 
47
47
  field :subject, type: String, default: ''
48
48
  field :body, type: String, default: ''
49
- field :active, type: Boolean, default: true
49
+ field :active, type: Mongoid::Boolean, default: true
50
50
  field :link, type: String
51
+ field :replies, type: Integer, default: 0
51
52
 
52
53
  field :created_by, type: BSON::ObjectId
53
54
  field :created_by_name, type: String
55
+
56
+ # SEO
57
+ include DcSeoConcern
54
58
 
55
59
  embeds_many :dc_replies, as: :replies
56
60
 
@@ -66,11 +70,11 @@ included do
66
70
  ########################################################################
67
71
  def do_before_save
68
72
  if self.link.size < 5
69
- self.link = UnicodeUtils.downcase(self.subject).gsub(' ','-') + Time.now.strftime('-%Y-%m-%d')
70
- end
71
- if self.created_by_name.nil?
72
- self.created_by_name = DcUser.find(self.created_by).name
73
+ self.link = UnicodeUtils.downcase(DcPage.clear_link(self.subject)) + Time.now.strftime('-%Y-%m-%d')
73
74
  end
75
+ #if self.created_by_name.nil?
76
+ self.created_by_name = DcUser.find(self.created_by).name.downcase.gsub(' ','-')
77
+ #end
74
78
  end
75
79
 
76
80
  ########################################################################
@@ -56,6 +56,7 @@ class DcForum
56
56
  field :active, type: Boolean, default: true
57
57
  field :created_by, type: BSON::ObjectId
58
58
  field :updated_by, type: BSON::ObjectId
59
+ field :updated_by_name, type: String
59
60
 
60
61
  embeds_many :dc_policy_rules, as: :policy_rules
61
62
 
@@ -57,8 +57,7 @@ class DcForumTopic
57
57
  field :created_by, type: BSON::ObjectId
58
58
  field :updated_by, type: BSON::ObjectId
59
59
  field :created_by_name, type: String
60
- field :updated_by_name, type: String
61
-
60
+ field :updated_by_name, type: String
62
61
 
63
62
  index( { dc_forum_id: 1 } )
64
63
 
@@ -48,10 +48,14 @@ class DcNews
48
48
  field :body, type: String, default: ''
49
49
  field :active, type: Boolean, default: true
50
50
  field :link, type: String
51
+ field :replies, type: Integer, default: 0
51
52
 
52
53
  field :valid_from, type: Date
53
54
  field :valid_to, type: Date
54
55
  field :categories, type: Array
56
+
57
+ # SEO
58
+ include DcSeoConcern
55
59
 
56
60
  field :created_by, type: BSON::ObjectId
57
61
  field :created_by_name, type: String
@@ -67,8 +71,8 @@ class DcNews
67
71
  # Update link when left blank.
68
72
  ########################################################################
69
73
  def do_before_save
70
- if self.link.size < 5
71
- self.link = UnicodeUtils.downcase(self.subject).gsub(' ','-') + Time.now.strftime('-%Y-%m-%d')
74
+ if self.link.blank?
75
+ self.link = UnicodeUtils.downcase(DcPage.clear_link(self.subject)) + Time.now.strftime('-%Y-%m-%d')
72
76
  end
73
77
  if self.created_by_name.nil?
74
78
  self.created_by_name = DcUser.find(self.created_by).name
@@ -49,8 +49,10 @@ class DcReply
49
49
 
50
50
  field :created_by, type: BSON::ObjectId
51
51
  field :created_by_name, type: String
52
+
53
+ index( { doc_id: 1 } )
52
54
 
53
- validates_length_of :subject, minimum: 4
54
- validates_length_of :body, minimum: 10
55
+ validates_length_of :subject, minimum: 5
56
+ validates_length_of :body, minimum: 5
55
57
  validates_length_of :created_by_name, minimum: 5
56
58
  end
@@ -26,6 +26,7 @@
26
26
  ########################################################################
27
27
  class DcBlogRenderer < DcRenderer
28
28
  include DcApplicationHelper
29
+ include CmsCommonHelper
29
30
 
30
31
  ########################################################################
31
32
  # Show one blog entry
@@ -33,6 +34,11 @@ include DcApplicationHelper
33
34
  def show(link)
34
35
  entry = DcBlog.find_by(link: link)
35
36
  return t('dc_blog.entry_not_found') if entry.nil?
37
+ # SEO
38
+ @parent.page_title = entry.title.blank? ? entry.subject : entry.title
39
+ @parent.page.canonical_link = nil
40
+ @parent.dc_add_meta_tag(:name, 'description', entry.meta_description) unless entry.meta_description.blank?
41
+ @parent.dc_add_json_ld(entry.get_json_ld)
36
42
 
37
43
  replies = DcReply.where(doc_id: entry.id, active: true).order(created_at: 1)
38
44
  @parent.render partial: 'dc_blog/show', formats: [:html],
@@ -40,21 +46,32 @@ def show(link)
40
46
  end
41
47
 
42
48
  ########################################################################
43
- # List all blogs from one bloger
49
+ # List all blogs from single blogger
44
50
  ########################################################################
45
- def list(bloger)
46
- documents = DcBlog.only(:created_by_name, :link, :subject, :created_at)
47
- .where(active: true).order_by(created_at: -1)
48
- .page(@parent.params[:page]).per(10)
51
+ def list(path)
52
+ # get blogger id from document path
53
+ blogger_id = path.last.split('-').last
54
+ documents = if BSON::ObjectId.legal?(blogger_id)
55
+ DcBlog.only(:created_by, :link, :subject, :created_at)
56
+ .where(created_by: blogger_id, active: true).order_by(created_at: -1)
57
+ .page(@parent.params[:page]).per(10)
58
+ else
59
+ blogger_name = path.last
60
+ DcBlog.only(:created_by, :link, :subject, :created_at)
61
+ .where(created_by_name: blogger_name, active: true).order_by(created_at: -1)
62
+ .page(@parent.params[:page]).per(10)
63
+ end
64
+
49
65
  @parent.render partial: 'dc_blog/list', formats: [:html], locals: { documents: documents }
50
66
  end
51
67
 
52
68
  ########################################################################
53
- # List all blogers
69
+ # List all bloggers
54
70
  ########################################################################
55
- def list_blogers
56
- blogers = DcBlog.all.distinct(:created_by_name)
57
- @parent.render partial: 'dc_blog/blogers', formats: [:html], locals: { blogers: blogers }
71
+ def list_bloggers
72
+ bloggers = DcBlog.distinct(:created_by)
73
+ bloggers = DcUser.only(:id, :name).where(:_id.in => bloggers).to_a
74
+ @parent.render partial: 'dc_blog/bloggers', formats: [:html], locals: { bloggers: bloggers }
58
75
  end
59
76
 
60
77
  ########################################################################
@@ -62,19 +79,17 @@ end
62
79
  ########################################################################
63
80
  def last_blogs
64
81
  limit = @opts[:limit] || 3
65
- entries = DcBlog.only(:created_by_name, :link, :subject, :created_at)
66
- .where(active: true)
67
- .order_by(created_at: -1).limit(limit).to_a
68
-
82
+ entries = DcBlog.only(:created_by_name, :link, :subject, :created_at).where(active: true)
83
+ entries = entries.and(created_by_name: @opts[:blogger]) if @opts[:blogger]
84
+ entries = entries.order_by(created_at: -1).limit(limit).to_a
69
85
  entries.inject('') do |result, document|
70
86
  result << @parent.link_to("/blog/#{document.created_by_name}/#{document.link}") do
71
- %Q[
87
+ %Q[<div>
72
88
  <span class="date">#{@parent.dc_pretty_date(document.created_at)} : </span>
73
- <span class="title">#{document.subject}</span><br><br>
74
- ].html_safe
89
+ <span class="title">#{document.subject}</span><br>
90
+ </div>].html_safe
75
91
  end
76
92
  end
77
-
78
93
  end
79
94
 
80
95
 
@@ -83,10 +98,10 @@ end
83
98
  ########################################################################
84
99
  def default
85
100
  document_link = @opts[:path].last
86
- if @opts[:path].size == 1 or document_link == 'blogers'
87
- list_blogers
101
+ if @opts[:path].size == 1 or document_link == 'bloggers'
102
+ list_bloggers
88
103
  elsif @opts[:path].size == 2
89
- list(document_link)
104
+ list(@opts[:path])
90
105
  else
91
106
  show(document_link)
92
107
  end
@@ -26,7 +26,7 @@
26
26
  ########################################################################
27
27
  class DcForumRenderer < DcRenderer
28
28
  include DcApplicationHelper
29
-
29
+ include CmsCommonHelper
30
30
 
31
31
  ########################################################################
32
32
  #
@@ -49,9 +49,9 @@ def topic
49
49
  forum = DcForum.find(@parent.params[:forum])
50
50
  topic = DcForumTopic.find(@parent.params[:topic])
51
51
  replies = DcReply.where(doc_id: topic.id, active: true).order(created_at: 1)
52
- .page(@parent.params[:page]).per(10)
52
+ .page(@parent.params[:page]).per(15)
53
53
  @parent.render partial: 'dc_forum/topic', formats: [:html],
54
- locals: { forum: forum, topic: topic, replies: replies }
54
+ locals: { forum: forum, topic: topic, replies: replies, opts: @opts }
55
55
  end
56
56
 
57
57
  ########################################################################
@@ -64,7 +64,7 @@ def topics
64
64
  topics = DcForumTopic.only(:id, :created_by_name, :updated_by_name, :subject, :created_at, :updated_at, :replies)
65
65
  .where(dc_forum_id: forum._id, active: true).order(updated_at: -1)
66
66
  .page(@parent.params[:page]).per(10)
67
- @parent.render partial: 'dc_forum/topics', formats: [:html], locals: { forum: forum, topics: topics }
67
+ @parent.render partial: 'dc_forum/topics', formats: [:html], locals: { forum: forum, topics: topics, opts: @opts }
68
68
  end
69
69
 
70
70
  ########################################################################
@@ -26,6 +26,7 @@
26
26
  ########################################################################
27
27
  class DcNewsRenderer < DcRenderer
28
28
  include DcApplicationHelper
29
+ include CmsCommonHelper
29
30
 
30
31
  ########################################################################
31
32
  # Collects documents for list
@@ -84,10 +85,10 @@ def last_news
84
85
 
85
86
  entries.inject('') do |result, element|
86
87
  result << @parent.link_to("/news/#{element.link}") do
87
- %Q[
88
+ %Q[<div>
88
89
  <span class="date">#{@parent.dc_pretty_date(element.created_at)} : </span>
89
- <span class="title">#{element.subject}</span><br><br>
90
- ].html_safe
90
+ <span class="title">#{element.subject}</span>
91
+ </div>].html_safe
91
92
  end
92
93
  end
93
94
  end
@@ -2,12 +2,13 @@
2
2
  <% if session[:edit_mode] > 1 %>
3
3
  <%= dc_link_for_create(controller: 'cmsedit', table: 'dc_blog', title: 'dc_blog.new_entry' ) %>
4
4
  <% end %>
5
+
5
6
  <div class="blog-title">
6
- <h1><%= t('dc_blog.blogers') %></h1>
7
+ <h1><%= t('dc_blog.bloggers') %></h1>
7
8
  </div>
8
9
 
9
- <% for bloger in blogers %>
10
+ <% for blogger in bloggers %>
10
11
  <div class="blog-entry">
11
- <%= link_to( bloger, { path: "blog/#{bloger}"} )%>
12
+ <%= link_to( blogger.name, { path: "blog/#{blogger.name.downcase.gsub(' ','-')}" } )%>
12
13
  </div>
13
14
  <% end %>
@@ -1,11 +1,15 @@
1
1
 
2
2
  <div id="blogs">
3
- <h3><%= t('dc_blog.blogs') %></h3>
3
+ <h1><%= t('dc_blog.blogs') %></h1>
4
4
 
5
5
  <% for document in documents %>
6
6
  <div class="entry">
7
7
  <div class="date"><%= dc_pretty_date(document.created_at) %></div>
8
- <div class="title"><%= link_to( document.subject, path: "#{@page.link}/#{document.created_by_name}/#{document.link}" )%></div>
8
+ <div class="title">
9
+ <%= link_to( path: "#{(@options[:path] + [document.link]).join('/')}" ) do %>
10
+ <h2><%= document.subject %> </h2>
11
+ <% end %>
12
+ </div>
9
13
  </div>
10
14
  <% end %>
11
15
  </div>
@@ -1,15 +1,17 @@
1
+ <div class="row">
1
2
 
3
+ <div class="column small-12 medium-9">
2
4
  <% if session[:edit_mode] > 1 %>
3
5
  <%= dc_link_for_create(controller: 'cmsedit', table: 'dc_blog', title: 'dc_blog.new_document' ) %>
4
6
  <br><br>
5
7
  <%= dc_link_for_edit(controller: 'cmsedit', table: 'dc_blog', title: 'dc_blog.edit_document', id: document.id ) %>
6
8
  <% end %>
7
9
 
8
- <div class="blog-subject"><h2><%= document.subject %></h2></div>
9
- <div class="blog-date"><h4><%= t('dc_blog.published') + ' ' + dc_pretty_date(document.created_at) %></h4></div>
10
+ <div class="blog-subject"><h1><%= document.subject %></h1></div>
11
+ <div class="blog-date"><%= t('dc_blog.published') + ' ' + dc_pretty_date(document.created_at) %></div>
10
12
 
11
13
  <div class="blog-body"><%= document.body.html_safe %></div>
12
- <div class="social-sites"><%= social_sites %></div>
14
+ <div class="social-sites"><%= social_sites %></div>
13
15
 
14
16
  <div class="blog-replies">
15
17
  <h2><%= t('dc_blog.comments') %></h2>
@@ -18,3 +20,11 @@
18
20
  </div>
19
21
 
20
22
  <iframe id="iframe_edit" name="iframe_edit" scrolling="no"></iframe>
23
+ </div>
24
+
25
+ <div class="column small-12 medium-3 more-blogs">
26
+ <h2>More blogs by<br><%= document.created_by_name %></h2>
27
+ <%= dc_render(:dc_blog, method: 'last_blogs', limit: 10, blogger: document.created_by_name) %>
28
+ </div>
29
+
30
+ </div>
@@ -1,11 +1,13 @@
1
- <div class="wrap">
1
+
2
+ <%= "<div id=\"#{opts[:div_id]}\">".html_safe if opts[:div_id] %>
3
+
2
4
  <%= if session[:edit_mode] > 1
3
5
  dc_link_for_create(controller: 'cmsedit', table: 'dc_forum', title: 'dc_forum.add_new_forum' )
4
6
  end %>
5
7
 
6
8
  <div class="forum-topics">
7
9
  <div class="forum-title">
8
- <h1><%= t 'dc_forum.forums_list' %></h1>
10
+ <h3><%= t 'dc_forum.forums_list' %></h3>
9
11
  </div>
10
12
 
11
13
  <% for forum in forums %>
@@ -15,20 +17,29 @@
15
17
  <div class="name">
16
18
  <%= link_to(forum.name,{ path: params[:path], forum: forum.id} ) %>
17
19
  </div>
18
- <div class='description'>
19
- <%= forum.description %><hr>
20
- <b><%= t('dc_forum.topics') %>:</b>
21
- <%= forum.topics %> &nbsp;|&nbsp;
22
20
 
21
+ <div class='description'>
22
+ <%= forum.description %><br>
23
+ <b><%= t('dc_forum.topics') %>:</b>
24
+ <%= forum.topics %> &nbsp;|&nbsp;
25
+
26
+ <% zadnja_sprememba = DcForumTopic.where(dc_forum_id: forum.id).order_by(updated_at: -1).first; if zadnja_sprememba %>
27
+ <b><%= t('dc_forum.last_change') %>:</b>
28
+ <%= dc_pretty_date(zadnja_sprememba.updated_at) %> &nbsp;|&nbsp;
29
+ <%= link_to(zadnja_sprememba.subject, { path: params[:path], forum: forum.id, topic: zadnja_sprememba._id } ) %>
30
+ <% end %>
31
+
32
+ <% if false %>
23
33
  <b><%= t('dc_forum.replies') %>:</b>
24
34
  <%= forum.replies %> &nbsp;|&nbsp;
25
35
 
26
36
  <b><%= t('dc_forum.last') %>:</b>
27
37
  <%= forum.updated_by_name %>
28
38
  <%= dc_pretty_date(forum.updated_at) %>
29
-
39
+ <% end %>
30
40
  </div>
31
41
  </div>
32
42
  <% end %>
33
- </div>
34
43
  </div>
44
+
45
+ <%= "</div>".html_safe if opts[:div_id] %>
@@ -1,53 +1,43 @@
1
- <div class="wrap">
1
+
2
+ <%= "<div id=\"#{opts[:div_id]}\">".html_safe if opts[:div_id] %>
3
+
2
4
  <div class="forum-topics">
3
5
  <div id="back-list">
4
6
  <%= link_to( t('dc_forum.forums_list'), {path: params[:path]} ) %> /
5
7
  <%= link_to( forum.name, {path: params[:path], forum: forum.id} ) %>
6
8
  </div>
7
- <table id="dc-forum-menu"><tr>
8
- <td class="dc-link dc-animate" style="white-space: nowrap;">
9
- <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: 'dc_forum_topic;dc_reply',
10
- form_name: 'dc_reply', action: 'new', ids: topic.id, forum: forum._id},
11
- target: 'iframe_edit') %>
12
- </td>
13
- <td style="text-align: right; width: 100%;"><%= paginate replies %></td>
14
- </tr></table>
15
9
 
16
- <div class="forum-title">
17
- <h1><%= forum.name %></h1></div>
18
-
19
- <div class="topic-top"><h2><%= topic.subject %></h2>
20
- <%= t('dc_forum.created_by') %>: <%= topic.created_by_name %> <%= dc_pretty_date(topic.created_at) %>
10
+ <div id="dc-forum-menu">
11
+ <div class="dc-link">
12
+ <%= link_to( 'Nazaj', {path: params[:path], forum: forum.id}, class: 'dc-animate' ) %>
13
+ </div>
14
+ <div class="dc-link">
15
+ <%= link_to( t('dc_forum.new_reply'), { table: 'dc_reply', form_name: 'reply',
16
+ controller: :cmsedit, action: 'new',
17
+ p_doc_id: topic.id, p_doc_class: topic.class.to_s },
18
+ target: 'iframe_edit', class: 'dc-animate', ref: 'nofollow') %>
19
+ </div>
20
+ <div class="dc-link">
21
+ <%= link_to( t('dc_forum.new_topic'),
22
+ {controller: 'cmsedit', table: 'dc_forum_topic', form_name: 'dc_forum_topic',
23
+ action: 'new', forum: forum._id}, target: 'iframe_edit', class: 'dc-animate', ref: 'nofollow') %>
24
+ </div>
25
+ <div style="text-align: right; width: 100%;"><%= paginate replies %></div>
21
26
  </div>
22
27
 
28
+ <h2><%= forum.name %></h2>
29
+
30
+ <div class="topic-top"><h3><%= topic.subject %></h3>
31
+ <%= t('dc_forum.created_by') %>: <%= dc_pretty_date(topic.created_at) %>, <%= topic.created_by_name %>
32
+ </div>
23
33
  <div class="topic-body"><%= topic.body.html_safe %></div>
24
34
 
25
- <% for reply in replies %>
26
- <% oddeven = cycle("odd", "even") %>
27
-
28
- <div class="reply-top-<%= oddeven %>">
29
- <span style="float: right; top-margin: 5px;">
30
- <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: 'dc_forum_topic;dc_reply',
31
- form_name: 'dc_reply', action: 'new', ids: topic.id,
32
- forum: forum._id, reply_to: reply.id}, target: 'iframe_edit') %>
33
- </span>
34
- <b><%= reply.subject %></b><br>
35
- <%= t('dc_forum.replied_by') %>:
36
- <%= reply.created_by_name %>,
37
- <%= dc_pretty_date(reply.created_at) %>&nbsp;&nbsp;
38
- </div>
39
- <div class="reply-body-<%= oddeven %>"><%= reply.body.html_safe %></div>
40
- <% end %>
41
-
42
- <table id="dc-forum-menu"><tr>
43
- <td class="dc-link dc-animate" style="white-space: nowrap;">
44
- <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: 'dc_forum_topic;dc_reply',
45
- form_name: 'dc_reply', action: 'new', ids: topic.id, forum: forum._id},
46
- target: 'iframe_edit') %>
47
- </td>
48
- <td style="text-align: right; width: 100%;"><%= paginate replies %></td>
49
- </tr></table>
35
+ <div class="news-replies">
36
+ <h4>Odgovori</h4>
37
+ <%= render partial: 'dc_replay/reply', formats: [:html],
38
+ locals: { replies: replies, parent_doc: topic } %>
39
+ </div>
50
40
  </div>
51
-
41
+
52
42
  <iframe id="iframe_edit" name="iframe_edit" scrolling="no"></iframe>
53
- </div>
43
+ <%= "</div>".html_safe if opts[:div_id] %>
@@ -1,46 +1,42 @@
1
- <div class="wrap">
1
+
2
+ <%= "<div id=\"#{opts[:div_id]}\">".html_safe if opts[:div_id] %>
3
+
2
4
  <div class="forum-topics">
3
5
  <div id="back-list"><%= link_to( t('dc_forum.forums_list'), { path: params[:path] }) %> </div>
4
-
5
- <table id="dc-forum-menu"><tr>
6
- <td class="dc-link dc-animate" style="white-space: nowrap;">
6
+
7
+ <div id="dc-forum-menu">
8
+ <div class="dc-link" style="white-space: nowrap;">
7
9
  <%= link_to( t('dc_forum.new_topic'),
8
10
  {controller: 'cmsedit', table: 'dc_forum_topic', form_name: 'dc_forum_topic',
9
- action: 'new', forum: forum._id}, target: 'iframe_edit') %>
10
- </td>
11
- <td style="text-align: right; width: 100%;"><%= paginate topics %></td>
12
- </tr></table>
11
+ action: 'new', forum: forum._id}, target: 'iframe_edit', class: 'dc-animate', ref: 'nofollow') %>
12
+ </div>
13
+ <div style="text-align: right; width: 100%;"><%= paginate topics %></div>
14
+ </div>
13
15
 
14
16
  <div class="forum-title">
15
- <h1><%= forum.name %></h1>
17
+ <h2><%= forum.name %></h2>
16
18
  </div>
17
19
 
18
20
  <% for topic in topics %>
19
21
  <div class="topic-<%= cycle("odd", "even") %>">
20
- <%= link_to(topic.subject, { path: params[:path], forum: params[:forum], topic: topic._id } ) %><hr>
22
+ <%= link_to(topic.subject, { path: params[:path], forum: params[:forum], topic: topic._id } ) %><br>
23
+
21
24
  <b><%= t('dc_forum.created_by') %>:</b> <%= topic.created_by_name %>
22
- <%= dc_pretty_date(topic.created_at) %> &nbsp;|&nbsp;
25
+ &nbsp;|&nbsp; <%= dc_pretty_date(topic.created_at) %> &nbsp;|&nbsp;
23
26
 
24
27
  <b><%= t('dc_forum.replies') %>:</b>
25
28
  <%= topic.replies %>
26
29
 
27
30
  <% if topic.updated_at != topic.created_at %>
28
- &nbsp;|&nbsp; <b><%= t('dc_forum.last') %>:</b>
31
+ &nbsp;|&nbsp; <b><%= t('dc_forum.last') %>:</b>
29
32
  <%= topic.updated_by_name %>
30
- <%= dc_pretty_date(topic.updated_at) %>
33
+ &nbsp;|&nbsp; <%= dc_pretty_date(topic.updated_at) %>
31
34
  <% end %>
32
35
  </div>
33
36
  <% end %>
34
37
 
35
- <table id="dc-forum-menu"><tr>
36
- <td class="dc-link dc-animate" style="white-space: nowrap;">
37
- <%= link_to( t('dc_forum.new_topic'),
38
- {controller: 'cmsedit', table: 'dc_forum_topic', form_name: 'dc_forum_topic',
39
- action: 'new', forum: forum._id}, target: 'iframe_edit') %>
40
- </td>
41
- <td style="text-align: right; width: 100%;"><%= paginate topics %></td>
42
- </tr></table>
43
38
  </div>
44
39
 
45
40
  <iframe id="iframe_edit" name="iframe_edit" scrolling="no"></iframe>
46
- </div>
41
+ <%= "</div>".html_safe if opts[:div_id] %>
42
+
@@ -10,7 +10,7 @@ title = opts.dig(:settings, opts[:element], 'title') || t('dc_news.news')
10
10
 
11
11
  <div class="<%= clas %>">
12
12
  <%= news_settings(opts) %>
13
- <% unless title == '-' %><h2><%= title %></h2><% end %>
13
+ <% unless title == '-' %><h1><%= title %></h1><% end %>
14
14
  <%= if opts[:edit_mode] > 1
15
15
  dc_link_for_create(controller: 'cmsedit', table: 'dc_news', title: 'dc_blog.new_entry' )
16
16
  end %>
@@ -18,7 +18,9 @@ title = opts.dig(:settings, opts[:element], 'title') || t('dc_news.news')
18
18
  <% for document in documents %>
19
19
  <div class="document">
20
20
  <%= dc_pretty_date(document.created_at) %>
21
- <h4><%= link_to( document.subject, { path: "#{link}/#{document.link}" } )%></h4>
21
+ <%= link_to( { path: "#{link}/#{document.link}" } ) do %>
22
+ <h2><%= document.subject %></h2>
23
+ <% end %>
22
24
  </div>
23
25
  <% end %>
24
26
  </div>
@@ -8,9 +8,9 @@ clas = (opts.dig(:settings, opts[:element], 'clas') || 'news') + ' one'
8
8
  <%= dc_link_for_create( table: 'dc_news', title: 'dc_news.new_document' ) %>
9
9
  <% end %>
10
10
 
11
- <h2><%= document.subject %></h2>
11
+ <h1><%= document.subject %></h1>
12
12
  <div class="author">
13
- <%= "#{t('dc_blog.author')} #{document.created_by_name}, #{dc_pretty_date(document.created_at)}" %>
13
+ <%= "#{t('dc_blog.author')}: #{document.created_by_name}, #{dc_pretty_date(document.created_at)}" %>
14
14
  </div><br>
15
15
 
16
16
  <div class="body"><%= document.body.html_safe %></div>
@@ -2,25 +2,24 @@
2
2
  <% for reply in replies %>
3
3
  <% oddeven = cycle("odd", "even") %>
4
4
  <div class="reply-top <%= oddeven %>">
5
- <span style="float: right; top-margin: 5px;">
5
+ <span style="float:right;">
6
6
  <%= link_to( t('dc_forum.new_reply'), { table: 'dc_reply', form_name: 'reply',
7
7
  controller: :cmsedit, action: 'new', reply_to: reply.id,
8
8
  p_doc_id: parent_doc.id, p_doc_class: parent_doc.class.to_s },
9
- target: 'iframe_edit') %>
9
+ target: 'iframe_edit', ref: 'nofollow') %>
10
10
  </span>
11
11
  <b><%= reply.subject %></b><br>
12
- <%= t('dc_forum.replied_by') %>: <%= reply.created_by_name %>,
13
- <%= dc_pretty_date(reply.created_at) %>&nbsp;&nbsp;<br><br>
14
- <div class="reply-body <%= oddeven %>"><%= reply.body.html_safe %></div>
12
+ <%= t('dc_forum.replied_by') %>: <%= dc_pretty_date(reply.created_at) %>, <%= reply.created_by_name %> <br>
15
13
  </div>
14
+ <div class="reply-body <%= oddeven %>"><%= reply.body.html_safe %></div>
16
15
  <% end %>
17
16
 
18
17
  <div id="dc-reply-menu">
19
18
  <div class="dc-link dc-animate" style="float: left;">
20
- <%= link_to( t('dc_forum.new_comment'), { controller: 'cmsedit', table: "dc_reply",
19
+ <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: "dc_reply",
21
20
  form_name: 'reply', action: 'new',
22
21
  p_doc_id: parent_doc.id, p_doc_class: parent_doc.class.to_s},
23
- {target: 'iframe_edit', class: 'dc-animate'}) %>
22
+ {target: 'iframe_edit', class: 'dc-animate', ref: 'nofollow'}) %>
24
23
  </div>
25
24
  <%# = paginate replies %>
26
25
  </div>
@@ -35,10 +35,11 @@ en:
35
35
  topics: Topics
36
36
  replies: Replies
37
37
  last: Last
38
+ last_change: Last change
38
39
 
39
40
  dc_blog:
40
41
  author: Author
41
- blogers: List of our blogers
42
+ bloggers: List of our bloggers
42
43
  published: Published on,
43
44
  new_entry: New blog entry
44
45
  edit_entry: Edit blog entry
@@ -35,10 +35,11 @@ sl:
35
35
  topics: Teme
36
36
  replies: Odgovorov
37
37
  last: Zadnji
38
+ last_change: Zadnja sprememba
38
39
 
39
40
  dc_blog:
40
41
  author: Avtor
41
- blogers: Seznam naših blogerjev
42
+ bloggers: Seznam naših blogerjev
42
43
  published: Objava,
43
44
  new_entry: Nov vpis v blog
44
45
  edit_entry: Uredi vpis v blog
@@ -70,6 +70,7 @@ en:
70
70
 
71
71
  dc_blog:
72
72
  tabletitle: Blogs
73
+ 1base: Base
73
74
 
74
75
  subject: Subject
75
76
  body: Body
@@ -82,6 +83,7 @@ en:
82
83
 
83
84
  dc_news:
84
85
  tabletitle: News
86
+ 1base: Base
85
87
 
86
88
  subject: Subject
87
89
  body: Body
@@ -52,6 +52,7 @@ sl:
52
52
  body: Vsebina
53
53
  created_at: Ustvarjeno
54
54
  dc_user_id: Ustvaril
55
+ created_by_name: Ustvaril
55
56
  dc_forum_id: Forum
56
57
  active: Aktiven
57
58
  replies: Odgovorov
@@ -68,6 +69,7 @@ sl:
68
69
 
69
70
  dc_blog:
70
71
  tabletitle: Blogi
72
+ 1base: Osnovno
71
73
 
72
74
  subject: Zadeva
73
75
  body: Vsebina
@@ -80,6 +82,7 @@ sl:
80
82
 
81
83
  dc_news:
82
84
  tabletitle: Novice
85
+ 1base: Osnovno
83
86
 
84
87
  subject: Zadeva
85
88
  body: Vsebina
@@ -1,3 +1,3 @@
1
1
  module DrgBlogNewsForum
2
- VERSION = "0.5.52.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drg_blog_news_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.52.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damjan Rems
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-12 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -50,33 +50,34 @@ files:
50
50
  - README.md
51
51
  - Rakefile
52
52
  - app/assets/stylesheets/drg_blog_news_forum.css
53
- - app/controllers/drgcms_controls/dc_blog_dc_reply_control.rb
54
- - app/controllers/drgcms_controls/dc_forum_topic_control.rb
55
- - app/controllers/drgcms_controls/dc_forum_topic_dc_reply_control.rb
56
- - app/controllers/drgcms_controls/dc_news_dc_reply_control.rb
57
- - app/controllers/drgcms_controls/reply_control.rb
53
+ - app/controls/dc_blog_dc_reply_control.rb
54
+ - app/controls/dc_forum_topic_control.rb
55
+ - app/controls/dc_forum_topic_dc_reply_control.rb
56
+ - app/controls/dc_news_dc_reply_control.rb
57
+ - app/controls/reply_control.rb
58
58
  - app/forms/cms_menu.yml
59
59
  - app/forms/dc_blog.yml
60
60
  - app/forms/dc_forum.yml
61
61
  - app/forms/dc_forum_topic.yml
62
62
  - app/forms/dc_news.yml
63
63
  - app/forms/dc_reply.yml
64
+ - app/forms/dc_reply_public.yml
64
65
  - app/forms/forum_settings.yml
65
66
  - app/forms/news_settings.yml
66
67
  - app/forms/reply.yml
67
68
  - app/helpers/application_helper.rb
68
- - app/helpers/dc_blog_renderer.rb
69
69
  - app/helpers/dc_bnf_helper.rb
70
- - app/helpers/dc_forum_renderer.rb
71
- - app/helpers/dc_news_renderer.rb
72
70
  - app/models/dc_blog.rb
73
71
  - app/models/dc_forum.rb
74
72
  - app/models/dc_forum_policy_rule.rb
75
73
  - app/models/dc_forum_topic.rb
76
74
  - app/models/dc_news.rb
77
75
  - app/models/dc_reply.rb
76
+ - app/renderers/dc_blog_renderer.rb
77
+ - app/renderers/dc_forum_renderer.rb
78
+ - app/renderers/dc_news_renderer.rb
78
79
  - app/views/dc_blog/_blog.html.erb
79
- - app/views/dc_blog/_blogers.html.erb
80
+ - app/views/dc_blog/_bloggers.html.erb
80
81
  - app/views/dc_blog/_last_blogs.erb
81
82
  - app/views/dc_blog/_list.html.erb
82
83
  - app/views/dc_blog/_show.html.erb
@@ -102,7 +103,7 @@ homepage: http://www.drgcms.org
102
103
  licenses:
103
104
  - MIT
104
105
  metadata: {}
105
- post_install_message:
106
+ post_install_message:
106
107
  rdoc_options: []
107
108
  require_paths:
108
109
  - lib
@@ -117,12 +118,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
118
  - !ruby/object:Gem::Version
118
119
  version: '0'
119
120
  requirements: []
120
- rubyforge_project:
121
- rubygems_version: 2.6.14.1
122
- signing_key:
121
+ rubygems_version: 3.2.22
122
+ signing_key:
123
123
  specification_version: 4
124
124
  summary: 'DRG CMS: Blog, news and forum plugin for DRG CMS'
125
125
  test_files:
126
- - test/test_helper.rb
127
- - test/integration/navigation_test.rb
128
126
  - test/drg_blog_news_forum_test.rb
127
+ - test/integration/navigation_test.rb
128
+ - test/test_helper.rb