kuppayam 0.1.11 → 0.1.12

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: 0a0adf0627b4954e5a77fc92b8961c7c4eb59089
4
- data.tar.gz: 59ebb5e0aa4343f3ec6d7bad64d8d6fb83753a2a
3
+ metadata.gz: 24abab3e7660af35334f396237441417a64e825f
4
+ data.tar.gz: 64e55c1fadbce666f2e2d5c5de97af770b10a063
5
5
  SHA512:
6
- metadata.gz: 39571623ae960883198531adb65483d8180bb48dc49c4ce06b95cccf2be64cd4176552c4fb455fc70095bedf7eca16d0db4b4f47ff6577518deb02c7d48fe71d
7
- data.tar.gz: d189928bcc529dd7695c4232e4e48c1bb6f95b1946f8a7666efa202731a75148414fd70db88e60f88c7df35ec36b06395b37ce962b9b576165e5d6e1f44d2069
6
+ metadata.gz: 3ab29b837994d1eae4c3537223bd57e39829a10f9fb009bfc67afdd512d922184e02e1f94f7b0441b30a85abdb9ebccd4df2ebe36f4c8cc830534de0c0748a40
7
+ data.tar.gz: 16eba03d23005b6e36029e05bd9e7a55bb46f82c716db60c52bf132dcfb4f0b582487db5b02a1de260ac995cf0c443f1b04722cafe0a78176802c75f8b7ae9b9
@@ -53,11 +53,14 @@ module ResourceHelper
53
53
  save_resource
54
54
  else
55
55
  message = I18n.t('errors.failed_to_update', item: default_item_name.titleize)
56
+ @r_object.errors.add :base, message
56
57
  set_flash_message(message, :failure)
57
58
  set_notification(false, I18n.t('status.error'), message)
59
+ render_accordingly
58
60
  end
59
61
  else
60
62
  set_notification(false, I18n.t('status.error'), I18n.t('status.not_found', item: default_item_name.titleize))
63
+ render_accordingly
61
64
  end
62
65
  end
63
66
 
@@ -0,0 +1,14 @@
1
+ <div class="page-error centered">
2
+
3
+ <div class="error-symbol">
4
+ <i class="fa-warning"></i>
5
+ </div>
6
+
7
+ <h2 style="color:#4b4b4b;">
8
+ Permission Denied
9
+ <small>Unauthorized</small>
10
+ </h2>
11
+
12
+ <p>You do not have permission to view this page or perform this action</p>
13
+
14
+ </div>
@@ -0,0 +1,45 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <!-- Head -->
5
+ <%= render :partial=>"/layouts/kuppayam/head" -%>
6
+ </head>
7
+
8
+ <body class="page-body">
9
+
10
+ <div class="page-container">
11
+
12
+ <div class="main-content">
13
+
14
+ <!-- Top Navigation -->
15
+ <%= render :partial=>"/layouts/kuppayam/navbar" -%>
16
+
17
+ <%#* Show flash messages if controller has set any. -%>
18
+ <div id="div_flash_message" class="mt-10">
19
+ <%= flash_message(false) if defined?(flash) -%>
20
+ </div>
21
+
22
+ <%#* Page Content Starts here -%>
23
+ <div id="div_page_content_main">
24
+ <%= yield %>
25
+ </div>
26
+
27
+ <!-- Footer -->
28
+ <%= render :partial=>"/layouts/kuppayam/footer" -%>
29
+
30
+ </div>
31
+
32
+ </div>
33
+
34
+ <%#* Loading Javascripts -%>
35
+ <%= javascript_include_tag @javascript_filename -%>
36
+
37
+ <%= yield :javascript_footer -%>
38
+
39
+ <iframe id="iframe_document" name="iframe_document" width="100%" style="display:none"></iframe>
40
+
41
+ <iframe id="iframe_image" name="iframe_image" width="100%" style="display:none"></iframe>
42
+
43
+ </body>
44
+
45
+ </html>
@@ -213,7 +213,7 @@ module Kuppayam
213
213
 
214
214
  def drop_down_filter(text, items, **options)
215
215
  options.reverse_merge!(
216
- color: "default"
216
+ color: "white"
217
217
  )
218
218
  content_tag(:div, class: "btn-group") do
219
219
  content_tag(:button, text, class: "btn btn-#{options[:color]}", type: :button) +
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.1.11'
2
+ VERSION = '0.1.12'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuppayam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-10 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -466,6 +466,7 @@ files:
466
466
  - app/views/kuppayam/workflows/peacock/row.js.erb
467
467
  - app/views/kuppayam/workflows/peacock/show.js.erb
468
468
  - app/views/kuppayam/workflows/peacock/update.js.erb
469
+ - app/views/layouts/kuppayam/401.html.erb
469
470
  - app/views/layouts/kuppayam/_footer.html.erb
470
471
  - app/views/layouts/kuppayam/_head.html.erb
471
472
  - app/views/layouts/kuppayam/_header.html.erb
@@ -477,6 +478,7 @@ files:
477
478
  - app/views/layouts/kuppayam/_sidebar_old.html.erb
478
479
  - app/views/layouts/kuppayam/admin.html.erb
479
480
  - app/views/layouts/kuppayam/blank.html.erb
481
+ - app/views/layouts/kuppayam/blank_with_nav.html.erb
480
482
  - app/views/layouts/kuppayam/docs.html.erb
481
483
  - app/views/layouts/kuppayam/document_upload.html.erb
482
484
  - app/views/layouts/kuppayam/image_upload.html.erb