cambium 1.1.0 → 1.1.1

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: ff5677f58125f1cad2a98e1904ca8047bdf37252
4
- data.tar.gz: 8316b5eb6d5bae1ef353b24cea093c9898de9412
3
+ metadata.gz: ff891405a0ecaac0734c3c5ddbcea727ae2c80a4
4
+ data.tar.gz: 0d48bdd9463261869c85fa32150ec44f13aa6a43
5
5
  SHA512:
6
- metadata.gz: 22120069c0f33717fd8a4348c43b42d4ab9af23ae1631709abbd33c96f67e41833ef1e87bffed5e1ab47ce18d5a063e8507533e602843a4c7afb4222147e1e90
7
- data.tar.gz: 537b2a2e28c4e62643100babeb1f41e03962acf5466f1c89f9138c9706270399cd7cd1b20abfca78166c1387123b79a1c5168e251ea2fec218485617600207f0
6
+ metadata.gz: 3842f7b23c7c9af764e7536d201b768cc3720d93faf73b07dcd5e33b0fd9d642f21500368d7c4214c01c1bd2295867d5b64a5e50f5f77b157a8a4ce5ba9b0213
7
+ data.tar.gz: 63970a3d218d4e294259c52299eb304d439f2c9bd302d0ec4fcceacb7cde63b0a6d3b11355792bec21d5be014643897dd83c1692e6a07288adefd26997381021
@@ -1,24 +1,26 @@
1
1
  <% if version.whodunnit.present? %>
2
2
  <% user = @users.select { |u| u.id == version.whodunnit.to_i }.first %>
3
- <article>
4
- <%= avatar(user, 72) %>
5
- <div class="content">
6
- <p class="date">
7
- <%= "#{time_ago_in_words(version.created_at)} ago" %>
8
- </p>
9
- <p class="action">
10
- <%= content_tag(:strong, user.name.present? ? user.name : user.email) %>
11
- <%= "#{version.event}d" %>
12
- <%= version.item_type.downcase %>
13
- <% if cambium_route(:edit, version.item).nil? %>
14
- <%= content_tag(:strong, version.item.to_s) %>
15
- <% else %>
16
- <%= content_tag(
17
- :strong,
18
- link_to(version.item.to_s, cambium_route(:edit, version.item))
19
- ) %>
20
- <% end %>
21
- </p>
22
- </div>
23
- </article>
3
+ <% unless user.nil? %>
4
+ <article>
5
+ <%= avatar(user, 72) %>
6
+ <div class="content">
7
+ <p class="date">
8
+ <%= "#{time_ago_in_words(version.created_at)} ago" %>
9
+ </p>
10
+ <p class="action">
11
+ <%= content_tag(:strong, user.name.present? ? user.name : user.email) %>
12
+ <%= "#{version.event}d" %>
13
+ <%= version.item_type.downcase %>
14
+ <% if cambium_route(:edit, version.item).nil? %>
15
+ <%= content_tag(:strong, version.item.to_s) %>
16
+ <% else %>
17
+ <%= content_tag(
18
+ :strong,
19
+ link_to(version.item.to_s, cambium_route(:edit, version.item))
20
+ ) %>
21
+ <% end %>
22
+ </p>
23
+ </div>
24
+ </article>
25
+ <% end %>
24
26
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Cambium
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cambium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean C Davis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-11 00:00:00.000000000 Z
12
+ date: 2015-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler