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 +4 -4
- data/app/controllers/drgcms_controls/dc_blog_dc_reply_control.rb +1 -1
- data/app/forms/dc_blog.yml +8 -1
- data/app/forms/dc_forum.yml +1 -0
- data/app/models/dc_blog.rb +1 -1
- data/config/locales/models_en.yml +7 -4
- data/config/locales/models_sl.yml +2 -3
- data/lib/drg_blog_news_forum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45e516c4354491ad4f7ff2471ffe5ba3f070c4a0
|
4
|
+
data.tar.gz: 7f0685e4f74699c8a2eea92858cfb0ea4f87b049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/app/forms/dc_blog.yml
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
table: dc_blog
|
4
4
|
|
5
5
|
index:
|
6
|
-
filter: subject,
|
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
|
data/app/forms/dc_forum.yml
CHANGED
data/app/models/dc_blog.rb
CHANGED
@@ -53,7 +53,7 @@ included do
|
|
53
53
|
########################################################################
|
54
54
|
def do_before_save
|
55
55
|
if self.link.size < 5
|
56
|
-
self.link =
|
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
|
-
|
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:
|
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
|
-
|
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
|
-
|
67
|
-
dc_forum_topic_id: Tema
|
66
|
+
created_by_name: Ustvaril
|
68
67
|
active: Aktiven
|
69
68
|
|
70
69
|
help:
|