drg_blog_news_forum 0.0.5 → 0.0.6

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: d4837fd6c77dad9f6f476277d07d9ed7cbebaa9a
4
- data.tar.gz: aaa48e13bb70f838d7a2ffdc2a8fb61455e84564
3
+ metadata.gz: 45e516c4354491ad4f7ff2471ffe5ba3f070c4a0
4
+ data.tar.gz: 7f0685e4f74699c8a2eea92858cfb0ea4f87b049
5
5
  SHA512:
6
- metadata.gz: fe493dfb684ef435a6b428fd433655e960543c00af1e938d724e8fd0756d023b47b4a734cbaf23d65880002b2bb2f1b292fc8ec8988c2248d90f4da6644c3cdc
7
- data.tar.gz: 11c27a3adc9b8a012837ec3f5ce9fb419e59152eb25d8b15a56ce17e51f8e3db66465371e6f3230a7eeef4640fe735ed0ad40648c6da3d71ee1e89608e7f6744
6
+ metadata.gz: 57c7114fccdaed2c123acd2a25cdb5e78f3fd97bfac40ef715aa10fe9ee7d14fbeefc420e3fb258d5533354ec183d31cd340a94dc51d1f31e8b6307c4dda561e
7
+ data.tar.gz: b54765d4fe626cf2dcb33303403accabab62148e5f5758f8f40a0db072bf48341bbd570348e8421aad1af3487a142d4595837c4059a1085e08d187eb847d6474
@@ -37,13 +37,13 @@ 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]
40
41
  end
41
42
 
42
43
  ######################################################################
43
44
  # Called before save. Reloads browser.
44
45
  ######################################################################
45
46
  def dc_before_save()
46
- @record.created_by_name = session[:user_name]
47
47
  params[:return_to] = 'parent.reload'
48
48
  end
49
49
 
@@ -3,7 +3,7 @@
3
3
  table: dc_blog
4
4
 
5
5
  index:
6
- filter: subject, :created_by_name
6
+ filter: subject, created_by_name
7
7
  actions: standard
8
8
 
9
9
  result_set:
@@ -40,3 +40,10 @@ form:
40
40
  type: html_field
41
41
  options: 'height: 500'
42
42
 
43
+ 50:
44
+ name: replies
45
+ type: embedded
46
+ formname: dc_reply
47
+ table: dc_reply
48
+ html:
49
+ height: 400
@@ -55,5 +55,6 @@ form:
55
55
  name: dc_policy_rules
56
56
  type: embedded
57
57
  formname: dc_policy_rule
58
+ table: dc_policy_rule
58
59
  html:
59
60
  height: 400
@@ -53,7 +53,7 @@ included do
53
53
  ########################################################################
54
54
  def do_before_save
55
55
  if self.link.size < 5
56
- self.link = self.created_at.strftime('%Y-%m-%d-') + UnicodeUtils.downcase(self.subject)
56
+ self.link = Time.now.strftime('%Y-%m-%d-') + UnicodeUtils.downcase(self.subject)
57
57
  end
58
58
  if self.created_by_name.nil?
59
59
  self.created_by_name = DcUser.find(self.created_by).name
@@ -51,10 +51,11 @@ en:
51
51
  subject: Subject
52
52
  body: Body
53
53
  created_at: Created at
54
+ created_by_name: Name
54
55
  dc_user_id: User
55
56
  dc_forum_id: Forum
56
57
  active: Active
57
- replays: Replays
58
+ replies: No of replies
58
59
  views: Views
59
60
 
60
61
  dc_reply:
@@ -62,9 +63,9 @@ en:
62
63
 
63
64
  subject: Subject
64
65
  body: Body
66
+ created_by_name: Name
67
+ created_by: Created by
65
68
  created_at: Created at
66
- dc_user_id: User
67
- dc_forum_topic_id: Topic
68
69
  active: Active
69
70
 
70
71
  dc_blog:
@@ -72,6 +73,7 @@ en:
72
73
 
73
74
  subject: Subject
74
75
  body: Body
76
+ replies: Replies
75
77
  created_at: Created at
76
78
  created_by_id: Creator
77
79
  created_by_name: Creator
@@ -102,8 +104,9 @@ en:
102
104
 
103
105
  dc_reply:
104
106
  subject: Subject, short description of reply
105
- body: Replays body
107
+ body: Body text of reply
106
108
  created_at: Created at
109
+ created_by_name: Reply author's name
107
110
  dc_user_id: User
108
111
  active: Reply is active
109
112
 
@@ -54,7 +54,7 @@ sl:
54
54
  dc_user_id: Ustvaril
55
55
  dc_forum_id: Forum
56
56
  active: Aktiven
57
- replays: Odgovorov
57
+ replies: Odgovorov
58
58
  views: Vpogledov
59
59
 
60
60
  dc_reply:
@@ -63,8 +63,7 @@ sl:
63
63
  subject: Zadeva
64
64
  body: Vsebina
65
65
  created_at: Ustvarjeno
66
- dc_user_id: Ustvaril
67
- dc_forum_topic_id: Tema
66
+ created_by_name: Ustvaril
68
67
  active: Aktiven
69
68
 
70
69
  help:
@@ -1,3 +1,3 @@
1
1
  module DrgBlogNewsForum
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drg_blog_news_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damjan Rems