scrivito_linklist_widget 1.0.0 → 1.0.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: ec22d487dd0e4b998ae1e27f49f37d86ca245306
4
- data.tar.gz: ac5a0d7fdf694038d3c953306dbae79d80b03d19
3
+ metadata.gz: c75f13951d9ace6839b184e9fefcf340781e11a6
4
+ data.tar.gz: d75ab02302f7a81ccdcc3cd96d0c8b1b2952123a
5
5
  SHA512:
6
- metadata.gz: 80dc0c7d0c611e0790c55b242f2ef955307b140cb5f0a40d2b0704e7a8b3619695e12a2f09ee785a647ff8cb72c2c94243ba8894a88b1dd95e5724975721c86f
7
- data.tar.gz: 1dcd5917bf89bf16716519dbfe923b800664838db6a7489ae00f3f4b9bb6f0a0b7d413f767d6a51b47622c29a33f82acd9ad989d42f2c82462da9f75951b3f50
6
+ metadata.gz: af875ccf236fadf4133776da4e791057e0f1dc63284a19ec1f61b3db1df058ce4957306f99a7409762747e5e1edaf3a659cbc3d4cf0097936b4024167d5b411a
7
+ data.tar.gz: 049ee3149465c0835c18f13f6f201fde0425c8f3e9cdadd13822adba6665ca1eaa272c13d650ea92d26a1f7e4d17986cc41dfe2b08cd6f98320ccf138f56fdf3
@@ -1,3 +1,5 @@
1
1
  class LinklistWidget < Widget
2
+ attribute :links, :linklist
3
+ attribute :show_as_css, :enum, values: ["Yes","No"]
2
4
 
3
5
  end
@@ -3,7 +3,11 @@
3
3
  <% if widget.show_as_css == "Yes" %>
4
4
  <li class="<%= link.title %>"><%= link_to "", link.url %></li>
5
5
  <% else %>
6
- <li><%= link_to link.title, link.url %></li>
6
+ <% if link.url %>
7
+ <li><%= link_to link.title, link.url %></li>
8
+ <% else %>
9
+ <li><%= link.title %></li>
10
+ <% end %>
7
11
  <% end %>
8
12
  <% end %>
9
13
  </ul>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoLinklistWidget
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_linklist_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-02 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler