ishapi 0.1.8.273 → 0.1.8.275

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
  SHA256:
3
- metadata.gz: 13c897a1a21d87db06261863709147c84b7af9318f49e28a22635f14ed08cb38
4
- data.tar.gz: f5c8c830c35e861375ba4ce7dc4783f0ec672fb7ba41a5bd1cf1ef784094642c
3
+ metadata.gz: e7a1b5c512f574448b708cc55a48137ff32b142563d9b67de1951a3363a7cbd1
4
+ data.tar.gz: b9dd0e8e035f09f550012369e2738ef8888a65f81c35ac2cff963786a2069be5
5
5
  SHA512:
6
- metadata.gz: 210a05441dbd6073c5c6654f651044862edf439a79dd55ee06940d20ba98ba3f43570d0c0c50ce85cd54a643694d158fb67d4d3cff2bb4d74ecf69aa4e4cb9d7
7
- data.tar.gz: 9ab3ddbd3664be9e66a8480e3a307bdd7896e41c06587343ef1abeea0a1fb68bb529e9b5b0bad38472eccb52df74e9177c4be76589a039da7cb4c57323371073
6
+ metadata.gz: 8a7309b9fab6a3bd6051d374dfb54e012ab1f0663e5303be85fca610becfc8880d55700dbaa265a4152fa6b636ca36bb9b0ece11bd1e4a4a579096a640ef89ac
7
+ data.tar.gz: d86abcca5f1cd34f567c1eef79c6dfeef4580dc62a16141c6913db7cd7315cdda62d32831ca8fd6637f7cfb65d198bcc0ba797147f3275077ee9f678d2f825a7
@@ -33,3 +33,13 @@
33
33
  }
34
34
  }
35
35
 
36
+ .newsitems--show {
37
+
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: center;
41
+
42
+ margin-top: 80px;
43
+ height: 100%;
44
+ }
45
+
@@ -162,7 +162,7 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
162
162
  email_filters = Office::EmailFilter.active
163
163
  email_filters.each do |filter|
164
164
  if ( filter.from_regex.blank? || @message.from.match( filter.from_regex ) ) &&
165
- ( filter.from_exact.blank? || @message.from.downcase.include?( filter.from_exact ) ) &&
165
+ ( filter.from_exact.blank? || @message.from.downcase.include?( filter.from_exact.downcase ) ) &&
166
166
  ( filter.body_exact.blank? || @message.part_html.include?( filter.body_exact ) ) &&
167
167
  ( filter.subject_regex.blank? || @message.subject.match( filter.subject_regex ) ) &&
168
168
  ( filter.subject_exact.blank? || @message.subject.include?( filter.subject_exact ) )
@@ -9,13 +9,14 @@
9
9
  - newsitems.each do |newsitem|
10
10
  .Card14
11
11
  - if newsitem.video
12
- [Video]
12
+ [vid]
13
13
  = link_to newsitem.video.name, video_path( newsitem.video )
14
14
  - if newsitem.report
15
- [Report]
15
+ [txt]
16
16
  = link_to newsitem.report.name, report_path( newsitem.report )
17
+ - if newsitem.iframe_src
18
+ = link_to newsitem.name, newsitem_path( newsitem )
17
19
 
18
- = newsitem.name
19
20
  = raw newsitem.descr
20
21
 
21
22
 
@@ -0,0 +1,10 @@
1
+
2
+ - newsitem ||= @newsitem
3
+ .newsitems--show
4
+ .header
5
+ %h2.title= @newsitem.name
6
+ %iframe{ src: newsitem.iframe_src,
7
+ width: "90%",
8
+ height: "90%",
9
+ style: "margin: auto;",
10
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.273
4
+ version: 0.1.8.275
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-24 00:00:00.000000000 Z
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -269,6 +269,7 @@ files:
269
269
  - app/views/ishapi/my/videos/index.jbuilder
270
270
  - app/views/ishapi/newsitems/_index.haml
271
271
  - app/views/ishapi/newsitems/_index.jbuilder
272
+ - app/views/ishapi/newsitems/_show.haml
272
273
  - app/views/ishapi/newsitems/_show.haml-trash
273
274
  - app/views/ishapi/newsitems/index.jbuilder
274
275
  - app/views/ishapi/option_price_items/index.jbuilder