xforum 0.0.371 → 0.0.372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d76a2c0955075babe121fdcbc5c4b10a0776a46
|
4
|
+
data.tar.gz: 0ad69779618221c41f6253d82376dac01e1a1dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b330908427c98178c107d67e3909a4ae233c9f64e52fbe501bb8f90f237e78a2de35e35342626447fa40a170c32b41961ddc0ab0df203157e3f7afb09279b896
|
7
|
+
data.tar.gz: 69ca03ac90092844a24151d8470e7f3ed8cc9f39c3b929740720464c81ba5644196e752dc375ddb71ad842e0e9177f9a1096ea005f53eb5dc790dc9b38849b0c
|
@@ -91,8 +91,11 @@ module Xforum
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def self.get_forum_users(params, user)
|
94
|
-
user.forum_admin? ? alist = Xforum.user_class.all.pluck(:forum_post_name, :id) : alist =[]
|
94
|
+
user.forum_admin? ? alist = Xforum.user_class.all.order(:forum_post_name).pluck(:forum_post_name, :id) : alist =[]
|
95
95
|
alist.unshift([I18n.t('xForum.select_none'), 'select none', 0])
|
96
|
+
blist=alist.clone #so you can do list.each and delete items
|
97
|
+
blist.each { |record| alist.delete(record) if record[0].nil? || record[0]=='' }
|
98
|
+
alist
|
96
99
|
{list_data: ForumAssist.named_array(alist, [:value, :item]), name: 'forum-user-tag'}
|
97
100
|
end
|
98
101
|
|
@@ -11,21 +11,20 @@
|
|
11
11
|
<label> <%= t('xForum.User_Email')%> </label> <br><br>
|
12
12
|
<button class="cool-selector" name="forum-user-email-show"><input class= 'silver-selector' type='button' id= 'forum-admin-button' name='forum-user-email-choose' value="<%= t('xForum.select_user')%>"></button>
|
13
13
|
<span id='forum-user-email-span'><%=select_tag(:user_email,options_for_select(@user_email), multiple:true, size:6, name:'forum-user-email', class:'forum-select')%></span>
|
14
|
-
|
14
|
+
<br>
|
15
15
|
<label> <%= t('xForum.User_Name') %> </label> <br><br>
|
16
16
|
<button class="cool-selector" name="forum-user-tag-show"><input class= 'silver-selector' type='button' id= 'forum-admin-button' name='forum-user-tag-choose' value="<%= t('xForum.select_user')%>"></button>
|
17
17
|
<span id='forum-user-tag-span'><%=select_tag(:users,options_for_select(@user_tags ), multiple:true, name:'forum-user-tag',size:6, class:'forum-select')%></span>
|
18
18
|
</span>
|
19
19
|
<span class="col-md-4">
|
20
20
|
<span id="forum-distribution-span">
|
21
|
-
<label> <%= t('xForum.Distribuiton_List_Name')%> </label> <br
|
21
|
+
<label> <%= t('xForum.Distribuiton_List_Name')%> </label> <br>
|
22
22
|
<%=select_tag(:forum,options_for_select(@distribution_lists), id:'forum-distribution-lists', class:'forum-select')%>
|
23
23
|
<label><%=t('xForum.New')%></label> <input type="text" id='forum-new-distribution-list' class="admin-edit-field" >
|
24
24
|
<label><%=t('xFrorum.User_Email')%></label>
|
25
|
-
|
26
|
-
</span>
|
25
|
+
<textarea id="forum_selected_emails" name="forum_selected_emails" readonly></textarea> </span>
|
27
26
|
<span id="forum-moderator-add-span">
|
28
|
-
<label> <%= t('xForum.Add_Topic_Monitor')%> </label> <br
|
27
|
+
<label> <%= t('xForum.Add_Topic_Monitor')%> </label> <br>
|
29
28
|
<%= select_tag(:forum, options_for_select(@categories),id:'forum-category-monitor', class: 'forum-select') %>
|
30
29
|
<%= select_tag(:forum, options_for_select(@topics), id:'forum-topic-monitor', class: 'forum-select') %>
|
31
30
|
</span>
|
data/lib/xforum/version.rb
CHANGED