abstracted 0.1.2 → 0.2.2

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: 18399c8acfa9c24fec9a1715b2cc7c745f18e6c9
4
- data.tar.gz: 9de54f97a953ae108bd356d98e52ed3d5242fd00
3
+ metadata.gz: d3a0ce5c6254187f8b893aa56bdda5d66df2ca19
4
+ data.tar.gz: 82a66de9184904290c3eb4f73043dcb06339395f
5
5
  SHA512:
6
- metadata.gz: 2fb588b20e86b96fc179543581fccc5df1d3cf977b7b9787ba1f1b87746dad2c6cbd54e9dbb4d2fc74899d77928162b57809f6aa3eb9fd3f953c2fa213a28ebb
7
- data.tar.gz: ccd6d39614493067145a22780100a0376db7f0c6bedf59abac9c7dd99a3bf929b52c81762e5ced3552fe5c7e7cc4e1105dd70a9e990db9c4e4d2631984d478f3
6
+ metadata.gz: 46ac5a933a363cfe6b3d74683ebfd2c13bb3197db38e7780142571aef5a76b6fad353174942a813d8739b96c0c75ed93b4c4b27c4577063c8a6b73a4ecffa762
7
+ data.tar.gz: f20950c0728243d91d0f362101ea7c06e56d2e49974c34aca4ab646d5b504b133c1ea4ffa86663414f15d35d3ba13df88b174dcd180e16e39771ca7d27464b33
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ test/dummy/db/*.sqlite3-journal
6
6
  test/dummy/log/*.log
7
7
  test/dummy/tmp/
8
8
  test/dummy/.sass-cache
9
+ *gem
@@ -80,7 +80,7 @@
80
80
  # data-message-ok="Udskrivning af Labels bestilt!"
81
81
  # data-message-error="øv"
82
82
  # href="http://localhost:3000/stock_items/1/print">
83
- # <i class="mdi-action-label small" title="Udskriv labels"></i>
83
+ # <i class="material-icons small" title="Udskriv labels">label</i>
84
84
  # </a>
85
85
  #
86
86
  # data-url="", data-id="", data-print-action="", data-message-ok="", data-message-error=""
@@ -443,7 +443,7 @@ inputForm = null
443
443
  # All the File APIs are supported.
444
444
  console.log 'file APIs supported '
445
445
  else
446
- document.getElementById('message_container').innerHTML = '<div class="alert fade in alert-warning"><a href="#!" class="warning close-notice btn-floating btn-small waves-effect waves-light" aria-hidden="true" type="button" data-dismiss="alert"><i class="mdi-navigation-close"></i></a>This browser does not support this application fully! Use latest Chrome - or advance cautiously!</div>';
446
+ document.getElementById('message_container').innerHTML = '<div class="alert fade in alert-warning"><a href="#!" class="warning close-notice btn-floating btn-small waves-effect waves-light" aria-hidden="true" type="button" data-dismiss="alert"><i class="material-icons">close</i></a>This browser does not support this application fully! Use latest Chrome - or advance cautiously!</div>';
447
447
 
448
448
 
449
449
 
@@ -179,9 +179,9 @@ module AbstractResourcesHelper
179
179
  def show_resource_active item, linkable=true
180
180
  unless linkable
181
181
  if item.active
182
- content_tag :i, nil, class: "mdi-action-done small"
182
+ content_tag :i, 'done', class: "material-icons small"
183
183
  else
184
- content_tag :i, nil, class: "mdi-av-pause small"
184
+ content_tag :i, 'pause', class: "material-icons small"
185
185
  end
186
186
  else
187
187
  if item.active
@@ -200,14 +200,14 @@ module AbstractResourcesHelper
200
200
  # return a link to delete a row
201
201
  def show_resource_delete_icon item, url, lbl='name'
202
202
  link_to item, class: 'delete_link', data: { url: url, name: "#{item.send lbl }", id: "#{item.id}", remove: "#tr-#{item.id}" } do
203
- content_tag :i, nil, class: 'mdi-action-delete small', title: "#{t('.delete')}"
203
+ content_tag :i, 'delete', class: 'material-icons small', title: "#{t('.delete')}"
204
204
  end
205
205
  # = link_to account, class: 'delete_link', data: { url: '/admin/accounts', name: "#{account.name}", id: "#{account.id}", remove: "#tr-#{account.id}" } do
206
- # %i.mdi-action-delete.small{ title: "#{t('.delete')}"}
206
+ # %i.material-icons.small{ title: "#{t('.delete')}"} delete
207
207
 
208
208
  end
209
209
  def build_delete_link resource
210
- link_to(content_tag(:i,nil,class:'icon-trash'), resource, class: 'btn btn-mini delete_item', :"data-no-turbolink"=>true)
210
+ link_to(content_tag(:i,'delete',class:'material-icons icon-trash'), resource, class: 'btn btn-mini delete_item', :"data-no-turbolink"=>true)
211
211
  end
212
212
 
213
213
  # return a link to print a row
@@ -309,9 +309,9 @@ module AbstractResourcesHelper
309
309
  end
310
310
 
311
311
  def build_close_button(type)
312
- "<a href='#!' class='#{type} close-notice btn-floating btn-small waves-effect waves-light' aria-hidden='true' type='button' data-dismiss='alert'><i class='mdi-navigation-close'></i></a>".html_safe
312
+ "<a href='#!' class='#{type} close-notice btn-floating btn-small waves-effect waves-light' aria-hidden='true' type='button' data-dismiss='alert'><i class='material-icons'>close</i></a>".html_safe
313
313
  # link_to "#", type: "button", "aria-hidden" => "true", class: "#{type} close-notice btn-floating btn-small waves-effect waves-light", "data-dismiss" => "alert" do
314
- # "<i class='x mdi-navigation-close'/>".html_safe
314
+ # "<i class='material-icons'>close</i>".html_safe
315
315
  # end
316
316
  end
317
317
 
@@ -8,7 +8,7 @@
8
8
  / perhaps incorporate https://github.com/mblode/burger
9
9
  /
10
10
  %a.button-collapse.top-nav.full{ href:"#", :"data-activates"=>"nav-mobile"}
11
- %i.mdi-navigation-menu
11
+ %i.material-icons menu
12
12
 
13
13
  %ul#nav-mobile.side-nav.fixed{ style: "240px" }
14
14
  = render 'layouts/navigation_links'
@@ -1,3 +1,3 @@
1
1
  module Abstracted
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstracted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walther H Diechmann