my_forum 0.0.1.beta57 → 0.0.1.beta58
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/my_forum/topics/_post.haml +3 -2
- data/lib/my_forum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05c8f7f4d57d4ce406ed103539a5b4c760c6f358
|
|
4
|
+
data.tar.gz: 1d10d5fb2f2cd06525a46b8b5619b25626ea7b79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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?
|
|
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
|
-
|
|
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)
|
data/lib/my_forum/version.rb
CHANGED