abstracted 0.1.2 → 0.2.2
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/.gitignore +1 -0
- data/app/assets/javascripts/crud.js.coffee +1 -1
- data/app/assets/javascripts/initializers.js.coffee +1 -1
- data/app/helpers/abstract_resources_helper.rb +7 -7
- data/app/views/layouts/_navigation.html.haml +1 -1
- data/lib/abstracted/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: d3a0ce5c6254187f8b893aa56bdda5d66df2ca19
|
|
4
|
+
data.tar.gz: 82a66de9184904290c3eb4f73043dcb06339395f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46ac5a933a363cfe6b3d74683ebfd2c13bb3197db38e7780142571aef5a76b6fad353174942a813d8739b96c0c75ed93b4c4b27c4577063c8a6b73a4ecffa762
|
|
7
|
+
data.tar.gz: f20950c0728243d91d0f362101ea7c06e56d2e49974c34aca4ab646d5b504b133c1ea4ffa86663414f15d35d3ba13df88b174dcd180e16e39771ca7d27464b33
|
data/.gitignore
CHANGED
|
@@ -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="
|
|
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="
|
|
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,
|
|
182
|
+
content_tag :i, 'done', class: "material-icons small"
|
|
183
183
|
else
|
|
184
|
-
content_tag :i,
|
|
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,
|
|
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.
|
|
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,
|
|
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='
|
|
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='
|
|
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.
|
|
11
|
+
%i.material-icons menu
|
|
12
12
|
|
|
13
13
|
%ul#nav-mobile.side-nav.fixed{ style: "240px" }
|
|
14
14
|
= render 'layouts/navigation_links'
|
data/lib/abstracted/version.rb
CHANGED