ish_manager 0.1.8.207 → 0.1.8.208

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: 1af4799b090fc634e74b7605e890cdb48c5943eefda72c678a1776d69a0ba0c8
4
- data.tar.gz: 2fafcf153b594790bccc35deea8306c593928087d3d886a3ee69dc625eba6d15
3
+ metadata.gz: 1a50638a9fe5d95f4574eaabb05d9cda8e8fdb07e92f519c8ca6e5879eb00199
4
+ data.tar.gz: 57d8a0d82aa2d80c0e83c7c3e333daaba52f2cb4ad98bae5f9cd8cab4f10e7c0
5
5
  SHA512:
6
- metadata.gz: abd3153488ee26001cf517dc150f5e97935d4478f694fc0884fb08ece79b8b25ac97a52d2e53c7bb654a20fc24247a9d6460265dd7107780cdf1738ae45068ec
7
- data.tar.gz: ddf55012e848280194221981aa739274133f7e92529ebde2d32c67bbd9d9ee290b4d3222663519f81e9a5325a2e3306235cb26f023a74893de984effbb20b3ef
6
+ metadata.gz: 6a950049283451049b9b5d3e6d5734a030866fc9f6956bd8d4baa05a552fc6a5f0a26454a16299927b40468abb110e0bc2351c040ae10645c32f9432ee78c32d
7
+ data.tar.gz: 3b7c0d0bc3ae428f5b49fbedc13b89decbc49a92983cf3ffcaf9e76ba638f3696a5158ca26795b69ffa3dc73b5d54dea3de426f124294dc8b88be4be552bdb8f
@@ -4,7 +4,7 @@ class IshManager::CitiesController < IshManager::ApplicationController
4
4
 
5
5
  def index
6
6
  authorize! :index, City
7
- @cities = City.all
7
+ @cities = City.unscoped
8
8
  @city = City.new
9
9
  @photo = Photo.new
10
10
  end
@@ -22,13 +22,17 @@
22
22
  .col-xs-6
23
23
  = f.label :y
24
24
  = f.text_field :y
25
+ .field
26
+ = f.label :deleted_at
27
+ = f.text_field :deleted_at
28
+ .field
29
+ = f.check_box :is_active
30
+ = f.label :is_active
25
31
  .col-sm-6
26
32
  .field
27
33
  = f.label :description
28
34
  = f.text_area :description, :class => [ :tinymce ]
29
35
 
30
36
  .col-xs-12
31
- = f.label :deleted_at
32
- = f.text_field :deleted_at
33
37
  .actions
34
38
  = f.submit
@@ -9,14 +9,19 @@
9
9
  - @cities.each do |city|
10
10
  .col-xs-3
11
11
  .panel.panel-default
12
- .panel-heading
13
- = link_to city.name, city_path(city)
14
- = link_to '[~]', edit_city_path(city)
15
- .cities-meta= "R(#{city.reports.length}) G(#{city.galleries.length}) V(#{city.videos.length}) U(#{city.current_users.length})"
16
-
17
- - if city.profile_photo.blank?
18
- = image_missing
19
- %div{ :style => "width: 100px; height: 100px; background: #cecece;" }
20
- - else
21
- = image_tag city.profile_photo.photo.url(:thumb)
12
+ .row
13
+ .panel-heading
14
+ = link_to city.name, city_path(city)
15
+ = link_to '[~]', edit_city_path(city)
16
+ .cities-meta= "R(#{city.reports.length}) G(#{city.galleries.length}) V(#{city.videos.length}) U(#{city.current_users.length})"
17
+ .row
18
+ %ul
19
+ %li active? #{city.is_active}
20
+ %li n venues: #{city.venues.count}
21
+ .row
22
+ - if city.profile_photo.blank?
23
+ = image_missing
24
+ %div{ :style => "width: 100px; height: 100px; background: #cecece;" }
25
+ - else
26
+ = image_tag city.profile_photo.photo.url(:thumb)
22
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.207
4
+ version: 0.1.8.208
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails