effective_committees 0.1.0 → 0.1.2
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 +4 -4
- data/app/views/admin/committee_folders/_form.html.haml +4 -1
- data/app/views/admin/committees/_fields.html.haml +4 -1
- data/app/views/effective/committee_folders/_committee_folder.html.haml +1 -1
- data/app/views/effective/committees/_committee.html.haml +1 -1
- data/app/views/effective/committees/_fields.html.haml +5 -1
- data/db/migrate/01_create_effective_committees.rb.erb +57 -4
- data/lib/effective_committees/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63a0f1fb0d95dfae23974217952a389877c115b31e9ba3b73b616138ff0ae9b9
|
4
|
+
data.tar.gz: 38c05e3f466ae93f9258dd9394caa177a1fa7c4dd944b776e6866b9ecef2253a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 977e23882e20848a4b6aead2a8966e913664cf27ab396fc5ab24f3b85d58d47a9ae770ec368d2eb866ad88786beab86fb6982da6bf2956c805030f840ac8ab61
|
7
|
+
data.tar.gz: 6ab21c11c4bfec46be1347c57c0fca82163e601671a752a85735187c66ed5c66b51dda390e45d3b934098a305a17e319a3fcece909b31a062c41d9c0c9d84577
|
@@ -11,7 +11,10 @@
|
|
11
11
|
- current_url = (effective_committees.commitee_url(f.object) rescue nil)
|
12
12
|
= f.text_field :slug, hint: "The slug controls this committee's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This folder is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url }".html_safe
|
13
13
|
|
14
|
-
|
14
|
+
- if defined?(EffectiveArticleEditor)
|
15
|
+
= f.article_editor :body, hint: 'Displayed on the folder page'
|
16
|
+
- else
|
17
|
+
= f.rich_text_area :body, hint: 'Displayed on the folder page'
|
15
18
|
|
16
19
|
= f.submit
|
17
20
|
|
@@ -4,4 +4,7 @@
|
|
4
4
|
- current_url = (effective_committees.committee_url(f.object) rescue nil)
|
5
5
|
= f.text_field :slug, hint: "The slug controls this committee's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This committee is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url }".html_safe
|
6
6
|
|
7
|
-
|
7
|
+
- if defined?(EffectiveArticleEditor)
|
8
|
+
= f.article_editor :body, hint: 'Displayed on the committee page'
|
9
|
+
- else
|
10
|
+
= f.rich_text_area :body, hint: 'Displayed on the committee page'
|
@@ -1,13 +1,66 @@
|
|
1
|
-
class CreateEffectiveCommittees < ActiveRecord::Migration[6.
|
1
|
+
class CreateEffectiveCommittees < ActiveRecord::Migration[6.1]
|
2
2
|
def change
|
3
3
|
# Committees
|
4
|
-
create_table
|
4
|
+
create_table <%= @committees_table_name %> do |t|
|
5
|
+
t.string :title
|
6
|
+
t.string :slug
|
7
|
+
|
8
|
+
t.integer :committee_members_count, default: 0
|
9
|
+
t.integer :committee_folders_count, default: 0
|
10
|
+
t.integer :committee_files_count, default: 0
|
11
|
+
|
12
|
+
t.datetime :updated_at
|
13
|
+
t.datetime :created_at
|
5
14
|
end
|
6
15
|
|
7
|
-
add_index
|
16
|
+
add_index <%= @committees_table_name %>, :title
|
17
|
+
add_index <%= @committees_table_name %>, :slug
|
8
18
|
|
9
19
|
# Representatives
|
10
|
-
create_table
|
20
|
+
create_table <%= @committee_members_table_name %> do |t|
|
21
|
+
t.integer :committee_id
|
22
|
+
t.string :committee_type
|
23
|
+
|
24
|
+
t.integer :user_id
|
25
|
+
t.string :user_type
|
26
|
+
|
27
|
+
t.integer :roles_mask
|
28
|
+
|
29
|
+
t.datetime :updated_at
|
30
|
+
t.datetime :created_at
|
31
|
+
end
|
32
|
+
|
33
|
+
add_index <%= @committee_members_table_name %>, [:committee_id]
|
34
|
+
add_index <%= @committee_members_table_name %>, [:user_id, :user_type]
|
35
|
+
|
36
|
+
create_table <%= @committee_folders_table_name %> do |t|
|
37
|
+
t.integer :committee_id
|
38
|
+
t.string :committee_type
|
39
|
+
|
40
|
+
t.string :title
|
41
|
+
t.string :slug
|
42
|
+
|
43
|
+
t.integer :position
|
44
|
+
t.integer :committee_files_count, default: 0
|
45
|
+
|
46
|
+
t.datetime :updated_at
|
47
|
+
t.datetime :created_at
|
48
|
+
end
|
49
|
+
|
50
|
+
add_index <%= @committee_folders_table_name %>, [:committee_id, :committee_type]
|
51
|
+
add_index <%= @committee_folders_table_name %>, [:position]
|
52
|
+
|
53
|
+
create_table <%= @committee_files_table_name %> do |t|
|
54
|
+
t.integer :committee_id
|
55
|
+
t.string :committee_type
|
56
|
+
|
57
|
+
t.integer :committee_folder_id
|
58
|
+
|
59
|
+
t.string :title
|
60
|
+
t.text :notes
|
61
|
+
|
62
|
+
t.datetime :updated_at
|
63
|
+
t.datetime :created_at
|
11
64
|
end
|
12
65
|
|
13
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_committees
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|