my_forum 0.0.1.beta57 → 0.0.1.beta58

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27cb7d7f0bb08f12f2d2668c46bed635e33dcd83
4
- data.tar.gz: d3692ef0a7cce204f15e70d42d9b11188dc7dfa1
3
+ metadata.gz: 05c8f7f4d57d4ce406ed103539a5b4c760c6f358
4
+ data.tar.gz: 1d10d5fb2f2cd06525a46b8b5619b25626ea7b79
5
5
  SHA512:
6
- metadata.gz: 1c95c056ade0b979bcb1c8bd3bfa15903d189a1809327d26702b3d21bd5f38c001971aa92f3f4b1afcbe1a53206b7f507cf29ef3953af2fcef268ad64f95b9c7
7
- data.tar.gz: 34ac695ce54b8722794f1f8bd4f717e684318e45eab28a8e358554600fee60b3e0f9441edfdb3490bc2107601f22431fcc7f99057c82d3e967aab1cc330df65e
6
+ metadata.gz: c1b9bb783710d5b5582249a7f8085877494e17de72b0a8c71d076ace04b2dfba01ff79192ac91d19e6f0a45b84120ea528761bd7eebfb3b43f323f58eaeaeb2a
7
+ data.tar.gz: d9527af6199e48e28ae55c1366ed145286a3ef73f9017550f180ef8f87bbfa39a3386f1d129a9fb21ebd3bd9a4ab926bc785e065efec070dae8e86693edd000f
@@ -9,9 +9,10 @@
9
9
  %span.login= user_login
10
10
  .col-md-3.post_number.text-right
11
11
  - # TODO optimize condition!
12
- - if current_user and current_user.is_admin? and post.topic.posts.first != post
12
+ - if current_user and current_user.is_admin?
13
13
  =link_to t('.edit'), edit_forum_topic_post_path(@forum, post.topic, post, page: params[:page]), class: 'btn btn-xs btn-info', data: { confirm: "Are you sure?" }
14
- =link_to t('.delete'), forum_topic_post_path(@forum, post.topic, post), class: 'btn btn-xs btn-danger', method: :delete, data: { confirm: "Are you sure?" }
14
+ - if post.topic.posts.first != post
15
+ =link_to t('.delete'), forum_topic_post_path(@forum, post.topic, post), class: 'btn btn-xs btn-danger', method: :delete, data: { confirm: "Are you sure?" }
15
16
  %button.btn.btn-xs.btn-warning.quote-post{ data: { post_id: post.id } }
16
17
  =t('.quote')
17
18
  =link_to t('.number', post_number: post_counter), forum_topic_path(@forum, post.topic, show_post: post_counter)
@@ -1,3 +1,3 @@
1
1
  module MyForum
2
- VERSION = "0.0.1.beta57"
2
+ VERSION = "0.0.1.beta58"
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.beta57
4
+ version: 0.0.1.beta58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko