my_forum 0.0.1.beta30 → 0.0.1.beta31

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: eec57a96d65caf18e79aafe5e709bf5c5329422d
4
- data.tar.gz: bcf4d88f50c8ba6863f4a2c9f0c7deda8faca650
3
+ metadata.gz: 89a49dfc22a2a7a7fa487b91cecae40cdf307fc8
4
+ data.tar.gz: 5abd3ac661e60d046afa0a178884fcc7a96084ed
5
5
  SHA512:
6
- metadata.gz: d7c20f37f6970b61257aa1bd524a5da2105c5df5fd14f8455480fac76328998e5d24ff557384812d46424d82f7cd6cfbe4c01d9754058828e0eda19b8e604dd6
7
- data.tar.gz: 9719a7e531db8d6db16b8cc75b570e076127dc4f49cc556bc7ed4122a61b3e8d7ec1fb3be91f725cfc223ec6565b9168ebf26a79afd84ce354b0f822b6c0923f
6
+ metadata.gz: 486084d8c05cd56ebda75b96a95830c13d51fc9e35659a7abac7c0fa08eb02d2bd5e5f9183bdedd777db9209f30100553bbebc414f11782f28ba8394def8dd8e
7
+ data.tar.gz: 6c4e438155220a21d763fbe9d5f5405fe7c697ba8bd7e819e69152ddf2cbb34b88c986e504d085281df3fe50475a501f083ca11aaa62098798f9fa5407f43232
@@ -8,6 +8,20 @@
8
8
  }
9
9
  }
10
10
 
11
+ .karma {
12
+ position: absolute;
13
+ right: 26px;
14
+ top: 6px;
15
+
16
+ .fa-plus {
17
+ color: green;
18
+ }
19
+
20
+ .fa-minus {
21
+ color: red;
22
+ }
23
+ }
24
+
11
25
  .topic_posts_info {
12
26
  background-color: #d3daed;
13
27
  color: #fff;
@@ -41,6 +41,10 @@ module MyForum
41
41
  #text.gsub!(/\[quote author=(.*?) link=(.*?) date=(.*?)\]/i) { bbquote(author: $1, date: $3) }
42
42
  #text.gsub!(/\[\/quote\]/i, '</div>')
43
43
  #text.gsub!(/\[quote(.*)\]/i, "<div class='bbqoute'>")
44
+ text.gsub!(/\[quote author=(?<autor>.*)\](?<text>.*)\[\/quote\]/m) do |match|
45
+ "<div class='bbqoute'> <div class='quote_info'>#{$~[:autor]} #{t('my_forum.bbquote.wrote')}:</div> #{$~[:text]} </div>"
46
+ end
47
+
44
48
  text.gsub!(/(?<open>\[quote author=(?<autor>(.*?)) (.+)\](?<text>(.+))(?<close>\[\/quote\]))/i) do |match|
45
49
  # "<div class='bbqoute'> <div class='quote_info'>#{$~[:autor]} #{t('my_forum.bbquote.wrote')} #{Time.now}:</div> #{$~[:text]} </div>"
46
50
  "<div class='bbqoute'> <div class='quote_info'>#{$~[:autor]} #{t('my_forum.bbquote.wrote')}:</div> #{$~[:text]} </div>"
@@ -1,3 +1,3 @@
1
1
  module MyForum
2
- VERSION = "0.0.1.beta30"
2
+ VERSION = "0.0.1.beta31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta30
4
+ version: 0.0.1.beta31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko