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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8128598332ef2fb4e92c7cf869f001a90b0c174e12ffdf15ac414ae29fd6cc5
4
- data.tar.gz: 1ff4cbcd98d30259c2a719f3efb6053607ac973202dface7b6b5e11035dc05bd
3
+ metadata.gz: 8766a098a355aa67b80d9a1ddf778b3db94ac7aed6bae2f138c7bd76d587e378
4
+ data.tar.gz: f4693bba0282a2c884c4c7ff8a3280be792a29842680b14c18e77bca4fc8e1f4
5
5
  SHA512:
6
- metadata.gz: 0f55cbbbd6f7bb6b56cf0436a20810fcedcc9705ae492228f938e5b8ce6ad2fa6da632dbe6a9d8738c60e962e174ee3c76cf9d4d3a746ad2262bd9e207903276
7
- data.tar.gz: 422db8500a5a7e6b99cd9f3388033a36d13630c394166afb661059441224aa0636d6211f8c3b7e300ec28671c8dedf87737b4ff8693292493563f3864abcbdb1
6
+ metadata.gz: 114ee8e82829f09ba234494e5d547fec4ff61f70bef3a74032b3e76a54da0627d81932d8ebb043d594d8ac903d503dbded7d350540c2b9ebe133006dc470fb50
7
+ data.tar.gz: c299e0a797c0d9ae13b5bef815bb1569f69275b852a42ec40998e8f94f240b05169ebe542ff7f73e7c09a9ebbd432c15c949e71ebeb53d0517f96937573838d4
@@ -1 +1,7 @@
1
- //= link_directory ../stylesheets/wco_hosting .css
1
+
2
+ //= link wco/application.css
3
+ //= link wco/application.js
4
+ //
5
+ //= link wco_hosting/application.css
6
+ //= link wco_hosting/application.js
7
+
@@ -65,7 +65,7 @@ class WcoHosting::ApplianceTmplsController < WcoHosting::ApplicationController
65
65
  private
66
66
 
67
67
  def set_lists
68
- @prices_list = Wco::Price.list
68
+ # @prices_list = Wco::Price.list
69
69
  @new_appliance_tmpl = WcoHosting::ApplianceTmpl.new
70
70
  end
71
71
 
@@ -12,9 +12,9 @@ class WcoHosting::ApplicationController < ActionController::Base
12
12
  ##
13
13
  private
14
14
 
15
- def current_ability
16
- @current_ability ||= ::Wco::Ability.new(current_user)
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
- %h2 Wco Hosting
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
- .field
6
+ .d-flex
7
7
  = f.label :kind
8
8
  = f.text_field :kind
9
- .field
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 price
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 &nbsp;
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
- %td= tmpl.inspect
28
+ %td
29
+ %td{ colspan: 6 }= tmpl.inspect
30
30
 
@@ -1,5 +1,5 @@
1
1
 
2
- .serverhosts-index
2
+ .serverhosts-index.maxwidth
3
3
  %h5
4
4
  Serverhosts
5
5
  = link_to '[+]', new_serverhost_path
@@ -1,2 +1,3 @@
1
1
 
2
- = render 'form', serverhost: @new_serverhost
2
+ .serverhosts-new.maxwidth
3
+ = render 'form', serverhost: @new_serverhost
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.12
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-06 00:00:00.000000000 Z
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
@@ -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