rlog_items 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module RlogItems
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -20,13 +20,19 @@ module RlogItems
20
20
  end
21
21
  haml_tag "div", rlog_item.ip if rlog_item.ip && current_user.has_role?("admin")
22
22
  end
23
- else
23
+ elsif rlog_item.user_id
24
24
  target_info = "#{t("messages.user_id")}: #{rlog_item.user_id}"
25
25
  capture_haml do
26
26
  haml_tag "div" do
27
27
  haml_tag "span.username", target_info
28
28
  end
29
29
  end
30
+ else
31
+ capture_haml do
32
+ haml_tag "div" do
33
+ haml_tag "span.username", t("messages.unregistered_user")
34
+ end
35
+ end
30
36
  end
31
37
  end
32
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rlog_items
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: