drg_blog_news_forum 0.5.52.1 → 0.5.52.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb7ee75586683204eb1f405464282a1e220b417d
4
- data.tar.gz: 1cc753d310225e1a2ee45cead6ae072547677701
3
+ metadata.gz: df3654faf8249615292d74cc3e8e4bfffe783055
4
+ data.tar.gz: 62493c2c36520bffe5feeb7929e8fb9326386bb7
5
5
  SHA512:
6
- metadata.gz: 6150f740cbe57a19ed9780d322e8e39170b19666c08037062f1d9c37eaf4bdf6ae7c7997c8825fa225a6d4cc84676d4620d3c702ee57c53080ab7fc9b9360ae0
7
- data.tar.gz: e6395612293542900ac3824bc28bc189e145364a3ddc8686869e00211aa5ef8b5c3854c3fe06879855c70bc10d20a5057cfc287571cee240dc833aa81c98ce0d
6
+ metadata.gz: e819a01d19b77034c842c281ecabf5718592b59044edc2a8bef8c31181925925d00e7af4bd69913af547e3b484a0c854d98bbfe667728d28a90e7beff2227b04
7
+ data.tar.gz: bf6c9b7eda130ed6a96c952a7398d0d771f90e223d5abdca45516a166477e29bfe4f87738b3bdc7cbf3ee0ccdf7fb9adb4c601ac25b0fae1872379ce42e1b21b
@@ -32,6 +32,7 @@ module DrgcmsControls::DcBlogDcReplyControl
32
32
  ######################################################################
33
33
  def dc_new_record()
34
34
  # fill with quote when reply_to is present
35
+ return false unless params[:record][:_reply].blank?
35
36
  if params[:reply_to]
36
37
  replyto = @record._parent.dc_replies.find(params[:reply_to])
37
38
  @record.subject = "Re: #{replyto.subject}"
@@ -32,8 +32,7 @@ module DrgcmsControls::DcNewsDcReplyControl
32
32
  ######################################################################
33
33
  def dc_new_record()
34
34
  # fill with quote when reply_to is present
35
- bla
36
- if params[:reply_to]
35
+ if params[:reply_to]
37
36
 
38
37
  replyto = DcReply.find(params[:reply_to])
39
38
  @record.subject = "Re: #{replyto.subject}"
@@ -46,7 +46,7 @@ end
46
46
  def dc_before_save()
47
47
  params[:return_to] = 'parent.reload'
48
48
  # simple automatic robot trap
49
- return false unless params[:record][:honey].blank?
49
+ return false unless params[:_record][:_honey].blank?
50
50
  end
51
51
 
52
52
  end
@@ -40,4 +40,9 @@ menu:
40
40
  controller: cmsedit
41
41
  icon: server lg
42
42
  table: dc_forum
43
+ 40:
44
+ caption: helpers.label.dc_reply.tabletitle
45
+ controller: cmsedit
46
+ icon: commenting-o lg
47
+ table: dc_reply
43
48
 
@@ -17,18 +17,26 @@ form:
17
17
 
18
18
  fields:
19
19
  10:
20
+ name: doc_id
21
+ type: readonly
22
+
23
+ 20:
24
+ name: doc_class
25
+ type: readonly
26
+
27
+ 30:
20
28
  name: created_by_name
21
29
  type: text_field
22
30
  html:
23
31
  size: 30
24
32
 
25
- 20:
33
+ 40:
26
34
  name: subject
27
35
  type: text_field
28
36
  html:
29
37
  size: 80
30
38
 
31
- 30:
39
+ 50:
32
40
  name: body
33
41
  type: html_field
34
42
  options: "height: 420, toolbar: 'basic', allowedContent: false"
data/app/forms/reply.yml CHANGED
@@ -26,6 +26,12 @@ form:
26
26
  name: body
27
27
  type: html_field
28
28
  options: "height: 420, toolbar: 'basic', allowedContent: false"
29
+ 40:
30
+ name: _honey
31
+ type: text_field
32
+ text: Click on save button to save comment!
33
+ html:
34
+ style: "display: none;"
29
35
 
30
36
  100:
31
37
  name: doc_id
@@ -34,9 +40,3 @@ form:
34
40
  110:
35
41
  name: doc_class
36
42
  type: hidden_field
37
-
38
- 120:
39
- name: honey
40
- type: hidden_field
41
-
42
-
@@ -17,7 +17,7 @@
17
17
 
18
18
  <div id="dc-reply-menu">
19
19
  <div class="dc-link dc-animate" style="float: left;">
20
- <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: "dc_reply",
20
+ <%= link_to( t('dc_forum.new_comment'), { controller: 'cmsedit', table: "dc_reply",
21
21
  form_name: 'reply', action: 'new',
22
22
  p_doc_id: parent_doc.id, p_doc_class: parent_doc.class.to_s},
23
23
  {target: 'iframe_edit', class: 'dc-animate'}) %>
@@ -28,6 +28,7 @@ en:
28
28
  forums_list: All forums
29
29
  new_reply: New reply
30
30
  new_topic: New topic
31
+ new_comment: New comment
31
32
  created_by: Created by
32
33
  updated_by: Updated by
33
34
  replied_by: Replied by
@@ -28,6 +28,7 @@ sl:
28
28
  forums_list: Vsi forumi
29
29
  new_reply: Nov odgovor
30
30
  new_topic: Nova tema
31
+ new_comment: Nov komentar
31
32
  created_by: Ustvaril
32
33
  updated_by: Spremenil
33
34
  replied_by: Odgovoril
@@ -59,7 +59,7 @@ en:
59
59
  views: Views
60
60
 
61
61
  dc_reply:
62
- tabletitle: Replies
62
+ tabletitle: Comments
63
63
 
64
64
  subject: Subject
65
65
  body: Body
@@ -58,7 +58,7 @@ sl:
58
58
  views: Vpogledov
59
59
 
60
60
  dc_reply:
61
- tabletitle: Odgovor
61
+ tabletitle: Komentarji
62
62
 
63
63
  subject: Zadeva
64
64
  body: Vsebina
@@ -1,3 +1,3 @@
1
1
  module DrgBlogNewsForum
2
- VERSION = "0.5.52.1"
2
+ VERSION = "0.5.52.2"
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.1
4
+ version: 0.5.52.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damjan Rems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-28 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -100,7 +100,7 @@ files:
100
100
  - test/test_helper.rb
101
101
  homepage: http://www.drgcms.org
102
102
  licenses:
103
- - MIT-LICENSE
103
+ - MIT
104
104
  metadata: {}
105
105
  post_install_message:
106
106
  rdoc_options: []