wco_hosting 0.0.0.12 → 0.0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/wco_hosting_manifest.js +7 -1
- data/app/controllers/wco_hosting/appliance_tmpls_controller.rb +1 -1
- data/app/controllers/wco_hosting/application_controller.rb +3 -3
- data/app/views/layouts/wco_hosting/application.haml +9 -16
- data/app/views/wco_hosting/_main_header.haml +11 -0
- data/app/views/wco_hosting/appliance_tmpls/_form.haml +6 -4
- data/app/views/wco_hosting/appliance_tmpls/index.haml +4 -4
- data/app/views/wco_hosting/serverhosts/index.haml +1 -1
- data/app/views/wco_hosting/serverhosts/new.haml +2 -1
- metadata +3 -3
- data/app/models/wco/ability.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8766a098a355aa67b80d9a1ddf778b3db94ac7aed6bae2f138c7bd76d587e378
|
4
|
+
data.tar.gz: f4693bba0282a2c884c4c7ff8a3280be792a29842680b14c18e77bca4fc8e1f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 114ee8e82829f09ba234494e5d547fec4ff61f70bef3a74032b3e76a54da0627d81932d8ebb043d594d8ac903d503dbded7d350540c2b9ebe133006dc470fb50
|
7
|
+
data.tar.gz: c299e0a797c0d9ae13b5bef815bb1569f69275b852a42ec40998e8f94f240b05169ebe542ff7f73e7c09a9ebbd432c15c949e71ebeb53d0517f96937573838d4
|
@@ -12,9 +12,9 @@ class WcoHosting::ApplicationController < ActionController::Base
|
|
12
12
|
##
|
13
13
|
private
|
14
14
|
|
15
|
-
def current_ability
|
16
|
-
|
17
|
-
end
|
15
|
+
# def current_ability
|
16
|
+
# @current_ability ||= ::Wco::Ability.new(current_user)
|
17
|
+
# end
|
18
18
|
|
19
19
|
def current_profile
|
20
20
|
@current_profile ||= Wco::Profile.find_by( email: current_user.email )
|
@@ -3,25 +3,18 @@
|
|
3
3
|
%head
|
4
4
|
%meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}
|
5
5
|
%title Wco Hosting
|
6
|
+
|
7
|
+
= javascript_include_tag "wco/application"
|
8
|
+
= stylesheet_link_tag "wco/application", media: "all"
|
9
|
+
|
10
|
+
= javascript_include_tag "wco_hosting/application"
|
11
|
+
= stylesheet_link_tag "wco_hosting/application", media: "all"
|
12
|
+
|
6
13
|
= csrf_meta_tags
|
7
14
|
= csp_meta_tag
|
8
|
-
-# = javascript_include_tag 'wco_hosting/application'
|
9
|
-
= stylesheet_link_tag "wco_hosting/application", media: "all"
|
10
15
|
%body
|
11
|
-
|
12
|
-
|
13
|
-
%nav.flex-row
|
14
|
-
%ul
|
15
|
-
%li= link_to 'ROOT', '/'
|
16
|
-
%li= link_to '/email', '/email'
|
17
|
-
%li= link_to '/wco', '/wco'
|
18
|
-
%ul
|
19
|
-
%li= link_to 'Wco::Leadsets', leadsets_path
|
20
|
-
%li= link_to 'ApplianceTmpl`s', appliance_tmpls_path
|
21
|
-
%li= link_to 'Appliances', appliances_path
|
22
|
-
-# %li= link_to 'Products', products_path
|
23
|
-
%li= link_to 'Serverhosts', serverhosts_path
|
24
|
-
%hr
|
16
|
+
= render 'wco/main_header'
|
17
|
+
= render "/wco_hosting/main_header"
|
25
18
|
|
26
19
|
= render '/wco/alerts_notices'
|
27
20
|
%hr
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
.application--main-header.main-header{ class: "#{ENV['RAILS_ENV']} #{ENV['RAILS_ENV'][0...3]=="dev" ? "development" : ''}" }
|
3
|
+
.maxwidth
|
4
|
+
%i.fa.fa-compress.collapse-expand#collapseHeaderEmail
|
5
|
+
Wco Hosting
|
6
|
+
.flex-row
|
7
|
+
%ul
|
8
|
+
%li= link_to 'ApplianceTmpl`s', appliance_tmpls_path
|
9
|
+
%li= link_to 'Appliances', appliances_path
|
10
|
+
%li= link_to 'Serverhosts', serverhosts_path
|
11
|
+
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
.appliance-tmpls--form
|
5
5
|
= form_for appliance_tmpl, as: :tmpl, url: url do |f|
|
6
|
-
.
|
6
|
+
.d-flex
|
7
7
|
= f.label :kind
|
8
8
|
= f.text_field :kind
|
9
|
-
|
9
|
+
|
10
10
|
= f.label :version
|
11
11
|
= f.text_field :version
|
12
12
|
.field
|
@@ -19,8 +19,10 @@
|
|
19
19
|
%label volume_zip
|
20
20
|
= f.text_field :volume_zip, class: 'w-100'
|
21
21
|
.field
|
22
|
-
%label
|
23
|
-
= f.select :price, options_for_select( @prices_list, selected: appliance_tmpl.price )
|
22
|
+
%label Price
|
23
|
+
-# = f.select :price, options_for_select( @prices_list, selected: appliance_tmpl.price )
|
24
24
|
|
25
25
|
.actions
|
26
26
|
= f.submit 'Submit'
|
27
|
+
|
28
|
+
= appliance_tmpl.inspect
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.appliance-tmpls-index
|
2
|
+
.appliance-tmpls-index.maxwidth
|
3
3
|
%h5
|
4
4
|
ApplianceTmpl's
|
5
5
|
= link_to '[+]', new_appliance_tmpl_path
|
@@ -12,7 +12,6 @@
|
|
12
12
|
%th image
|
13
13
|
%th volume_zip
|
14
14
|
%th price
|
15
|
-
%td
|
16
15
|
|
17
16
|
- @appliance_tmpls.each do |tmpl|
|
18
17
|
%tr
|
@@ -23,8 +22,9 @@
|
|
23
22
|
%td= tmpl.image
|
24
23
|
%td= tmpl.volume_zip
|
25
24
|
%td
|
26
|
-
= tmpl.price
|
25
|
+
= tmpl.price.inspect
|
27
26
|
%br
|
28
27
|
= tmpl.price_id
|
29
|
-
|
28
|
+
%td
|
29
|
+
%td{ colspan: 6 }= tmpl.inspect
|
30
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_hosting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|
@@ -242,8 +242,8 @@ files:
|
|
242
242
|
- app/helpers/wco_hosting/application_helper.rb
|
243
243
|
- app/jobs/wco_hosting/application_job.rb
|
244
244
|
- app/mailers/wco_hosting/application_mailer.rb
|
245
|
-
- app/models/wco/ability.rb
|
246
245
|
- app/views/layouts/wco_hosting/application.haml
|
246
|
+
- app/views/wco_hosting/_main_header.haml
|
247
247
|
- app/views/wco_hosting/appliance_tmpls/_form.haml
|
248
248
|
- app/views/wco_hosting/appliance_tmpls/edit.haml
|
249
249
|
- app/views/wco_hosting/appliance_tmpls/index.haml
|
data/app/models/wco/ability.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'cancancan'
|
4
|
-
|
5
|
-
## v0.0.0
|
6
|
-
class Wco::Ability
|
7
|
-
include ::CanCan::Ability
|
8
|
-
|
9
|
-
def initialize(user)
|
10
|
-
|
11
|
-
if user
|
12
|
-
|
13
|
-
if [ 'piousbox@gmail.com', 'victor@piousbox.com', 'victor@wasya.co' ].include? user.email
|
14
|
-
can :manage, :all
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|