ish_manager 0.1.1 → 0.1.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/app/assets/javascripts/ish_manager/application.js +0 -1
- data/app/assets/stylesheets/ish_manager/application.css +4 -0
- data/app/controllers/ish_manager/application_controller.rb +1 -1
- data/app/controllers/ish_manager/features_controller.rb +125 -0
- data/app/controllers/ish_manager/galleries_controller.rb +86 -0
- data/app/controllers/ish_manager/newsitems_controller.rb +113 -0
- data/app/controllers/ish_manager/photos_controller.rb +55 -0
- data/app/controllers/ish_manager/reports_controller.rb +64 -0
- data/app/controllers/ish_manager/sites_controller.rb +2 -0
- data/app/controllers/ish_manager/tags_controller.rb +54 -0
- data/app/controllers/ish_manager/users_controller.rb +13 -0
- data/app/helpers/ish_manager/images_helper.rb +2 -1
- data/app/views/ish_manager/application/_main_footer.haml +6 -2
- data/app/views/ish_manager/cities/edit.haml +3 -3
- data/app/views/ish_manager/features/_form.haml +61 -0
- data/app/views/ish_manager/features/_index.haml +23 -0
- data/app/views/ish_manager/features/_item.haml +14 -0
- data/app/views/ish_manager/features/edit.haml +16 -0
- data/app/views/ish_manager/features/index.haml +25 -0
- data/app/views/ish_manager/features/new.haml +11 -0
- data/app/views/ish_manager/features/show.haml +0 -0
- data/app/views/ish_manager/galleries/#_thumbs.haml# +5 -0
- data/app/views/ish_manager/galleries/_form.haml +46 -0
- data/app/views/ish_manager/galleries/_index.haml +14 -0
- data/app/views/ish_manager/galleries/_list.haml +23 -0
- data/app/views/ish_manager/galleries/_list_short.haml +9 -0
- data/app/views/ish_manager/galleries/_menu_secondary.haml +13 -0
- data/app/views/ish_manager/galleries/_meta.haml +16 -0
- data/app/views/ish_manager/galleries/_search.haml +7 -0
- data/app/views/ish_manager/galleries/_thumbs.haml +12 -0
- data/app/views/ish_manager/galleries/_title.haml +17 -0
- data/app/views/ish_manager/galleries/all_photos.haml +4 -0
- data/app/views/ish_manager/galleries/edit.haml +11 -0
- data/app/views/ish_manager/galleries/index.haml +18 -0
- data/app/views/ish_manager/galleries/index_ajax.haml +9 -0
- data/app/views/ish_manager/galleries/index_mini.haml +0 -0
- data/app/views/ish_manager/galleries/index_short.haml +19 -0
- data/app/views/ish_manager/galleries/index_thumb.haml +16 -0
- data/app/views/ish_manager/galleries/index_title.haml +15 -0
- data/app/views/ish_manager/galleries/index_trash.haml +20 -0
- data/app/views/ish_manager/galleries/new.haml +7 -0
- data/app/views/ish_manager/galleries/show.haml +34 -0
- data/app/views/ish_manager/newsitems/_form.haml +10 -0
- data/app/views/ish_manager/newsitems/_index.haml +17 -0
- data/app/views/ish_manager/newsitems/_item.haml +53 -0
- data/app/views/ish_manager/newsitems/edit.haml +14 -0
- data/app/views/ish_manager/newsitems/new.haml +16 -0
- data/app/views/ish_manager/photos/_meta.haml +9 -0
- data/app/views/ish_manager/photos/_multinew.haml +23 -0
- data/app/views/ish_manager/photos/show.haml +2 -0
- data/app/views/ish_manager/photos/without_gallery.haml +11 -0
- data/app/views/ish_manager/reports/_form.haml +42 -0
- data/app/views/ish_manager/reports/_index.haml +16 -0
- data/app/views/ish_manager/reports/edit.haml +6 -0
- data/app/views/ish_manager/reports/index.haml +26 -0
- data/app/views/ish_manager/reports/new.haml +5 -0
- data/app/views/ish_manager/reports/show.haml +18 -0
- data/app/views/ish_manager/sites/_form.haml +1 -1
- data/app/views/ish_manager/sites/edit.haml +2 -2
- data/app/views/ish_manager/sites/index.haml +7 -7
- data/app/views/ish_manager/videos/_index.haml +12 -0
- data/app/views/layouts/ish_manager/application.haml +2 -1
- data/config/routes.rb +4 -1
- data/lib/ish_manager.rb +2 -0
- data/lib/ish_manager/version.rb +1 -1
- metadata +80 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
.manager-reports-show
|
3
|
+
.row
|
4
|
+
.large-12.columns
|
5
|
+
%h1= @report.name
|
6
|
+
|
7
|
+
.meta
|
8
|
+
-# By #{link_to @report.user_profile.username, user_path( @report.user )}
|
9
|
+
On #{@report.created_at.to_s.slice(0, 10)}
|
10
|
+
In #{link_to "http://#{@report.site.domain}/#{@report.site.lang}", site_path( @report.site )}
|
11
|
+
-# - if @report.tag
|
12
|
+
-# Tagged #{link_to @report.tag.name, manager_tag_path( @report.tag )}
|
13
|
+
- if @report.city
|
14
|
+
In #{link_to @report.city.name, city_path( @report.city )}
|
15
|
+
|
16
|
+
- if @report.subhead.length > 3
|
17
|
+
.subhead= @report.subhead
|
18
|
+
.descr= raw @report.descr
|
@@ -5,5 +5,5 @@
|
|
5
5
|
%br
|
6
6
|
%br
|
7
7
|
|
8
|
-
= render '
|
9
|
-
= render '
|
8
|
+
= render 'form', :site => @site
|
9
|
+
= render 'ish_manager/newsitems/index', :newsitems => @site.newsitems.limit(10), :site => @site
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
|
-
.
|
2
|
+
.sites-index
|
3
|
+
%h3 Sites
|
3
4
|
.row
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
%li
|
5
|
+
- @sites.each do |site|
|
6
|
+
.col-xs-6
|
7
|
+
.panel.panel-primary
|
8
|
+
.panel-body
|
9
9
|
%h4
|
10
10
|
= link_to "http://#{site.domain}/#{site.lang}", site_path( site )
|
11
11
|
= link_to '[~]', edit_site_path( site )
|
@@ -24,4 +24,4 @@
|
|
24
24
|
#{site.tags.length} tags
|
25
25
|
%li
|
26
26
|
#{site.videos.length} videos
|
27
|
-
|
27
|
+
|
data/config/routes.rb
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
IshManager::Engine.routes.draw do
|
2
2
|
root :to => 'application#home'
|
3
3
|
|
4
|
-
resources :cities
|
4
|
+
resources :cities do
|
5
|
+
resources :features
|
6
|
+
end
|
5
7
|
resources :events
|
6
8
|
resources :galleries
|
7
9
|
resources :newsitems
|
8
10
|
resources :reports
|
11
|
+
resources :photos
|
9
12
|
resources :sites do
|
10
13
|
resources :galleries
|
11
14
|
resources :reports
|
data/lib/ish_manager.rb
CHANGED
data/lib/ish_manager/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -80,6 +80,34 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '4.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: kaminari-mongoid
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: kaminari-actionview
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.0'
|
83
111
|
description: Description of IshManager.
|
84
112
|
email:
|
85
113
|
- piousbox@gmail.com
|
@@ -399,8 +427,15 @@ files:
|
|
399
427
|
- app/assets/stylesheets/ish_manager/bootstrap.min.css.map
|
400
428
|
- app/controllers/ish_manager/application_controller.rb
|
401
429
|
- app/controllers/ish_manager/cities_controller.rb
|
430
|
+
- app/controllers/ish_manager/features_controller.rb
|
431
|
+
- app/controllers/ish_manager/galleries_controller.rb
|
402
432
|
- app/controllers/ish_manager/galleries_controller.rb~
|
433
|
+
- app/controllers/ish_manager/newsitems_controller.rb
|
434
|
+
- app/controllers/ish_manager/photos_controller.rb
|
435
|
+
- app/controllers/ish_manager/reports_controller.rb
|
403
436
|
- app/controllers/ish_manager/sites_controller.rb
|
437
|
+
- app/controllers/ish_manager/tags_controller.rb
|
438
|
+
- app/controllers/ish_manager/users_controller.rb
|
404
439
|
- app/helpers/ish_manager/application_helper.rb
|
405
440
|
- app/helpers/ish_manager/images_helper.rb
|
406
441
|
- app/jobs/ish_manager/application_job.rb
|
@@ -421,23 +456,67 @@ files:
|
|
421
456
|
- app/views/ish_manager/cities/new_feature.haml
|
422
457
|
- app/views/ish_manager/cities/new_newsitem.haml
|
423
458
|
- app/views/ish_manager/cities/show.haml
|
459
|
+
- app/views/ish_manager/features/_form.haml
|
460
|
+
- app/views/ish_manager/features/_index.haml
|
424
461
|
- app/views/ish_manager/features/_index.haml~
|
462
|
+
- app/views/ish_manager/features/_item.haml
|
463
|
+
- app/views/ish_manager/features/edit.haml
|
464
|
+
- app/views/ish_manager/features/index.haml
|
465
|
+
- app/views/ish_manager/features/new.haml
|
466
|
+
- app/views/ish_manager/features/show.haml
|
467
|
+
- app/views/ish_manager/galleries/#_thumbs.haml#
|
468
|
+
- app/views/ish_manager/galleries/_form.haml
|
469
|
+
- app/views/ish_manager/galleries/_index.haml
|
470
|
+
- app/views/ish_manager/galleries/_list.haml
|
425
471
|
- app/views/ish_manager/galleries/_list.haml~
|
472
|
+
- app/views/ish_manager/galleries/_list_short.haml
|
473
|
+
- app/views/ish_manager/galleries/_menu_secondary.haml
|
426
474
|
- app/views/ish_manager/galleries/_menu_secondary.haml~
|
475
|
+
- app/views/ish_manager/galleries/_meta.haml
|
427
476
|
- app/views/ish_manager/galleries/_meta.haml~
|
477
|
+
- app/views/ish_manager/galleries/_search.haml
|
428
478
|
- app/views/ish_manager/galleries/_search.haml~
|
479
|
+
- app/views/ish_manager/galleries/_thumbs.haml
|
429
480
|
- app/views/ish_manager/galleries/_thumbs.haml~
|
481
|
+
- app/views/ish_manager/galleries/_title.haml
|
482
|
+
- app/views/ish_manager/galleries/all_photos.haml
|
483
|
+
- app/views/ish_manager/galleries/edit.haml
|
484
|
+
- app/views/ish_manager/galleries/index.haml
|
430
485
|
- app/views/ish_manager/galleries/index.haml~
|
486
|
+
- app/views/ish_manager/galleries/index_ajax.haml
|
487
|
+
- app/views/ish_manager/galleries/index_mini.haml
|
488
|
+
- app/views/ish_manager/galleries/index_short.haml
|
489
|
+
- app/views/ish_manager/galleries/index_thumb.haml
|
490
|
+
- app/views/ish_manager/galleries/index_title.haml
|
491
|
+
- app/views/ish_manager/galleries/index_trash.haml
|
492
|
+
- app/views/ish_manager/galleries/new.haml
|
493
|
+
- app/views/ish_manager/galleries/show.haml
|
431
494
|
- app/views/ish_manager/galleries/show.haml~
|
495
|
+
- app/views/ish_manager/newsitems/_form.haml
|
432
496
|
- app/views/ish_manager/newsitems/_form.haml~
|
497
|
+
- app/views/ish_manager/newsitems/_index.haml
|
433
498
|
- app/views/ish_manager/newsitems/_index.haml~
|
499
|
+
- app/views/ish_manager/newsitems/_item.haml
|
500
|
+
- app/views/ish_manager/newsitems/edit.haml
|
434
501
|
- app/views/ish_manager/newsitems/edit.haml~
|
502
|
+
- app/views/ish_manager/newsitems/new.haml
|
503
|
+
- app/views/ish_manager/photos/_meta.haml
|
504
|
+
- app/views/ish_manager/photos/_multinew.haml
|
435
505
|
- app/views/ish_manager/photos/_multinew.haml~
|
506
|
+
- app/views/ish_manager/photos/show.haml
|
507
|
+
- app/views/ish_manager/photos/without_gallery.haml
|
508
|
+
- app/views/ish_manager/reports/_form.haml
|
509
|
+
- app/views/ish_manager/reports/_index.haml
|
510
|
+
- app/views/ish_manager/reports/edit.haml
|
511
|
+
- app/views/ish_manager/reports/index.haml
|
512
|
+
- app/views/ish_manager/reports/new.haml
|
513
|
+
- app/views/ish_manager/reports/show.haml
|
436
514
|
- app/views/ish_manager/sites/_form.haml
|
437
515
|
- app/views/ish_manager/sites/edit.haml
|
438
516
|
- app/views/ish_manager/sites/index.haml
|
439
517
|
- app/views/ish_manager/sites/new.haml
|
440
518
|
- app/views/ish_manager/sites/show.haml
|
519
|
+
- app/views/ish_manager/videos/_index.haml
|
441
520
|
- app/views/layouts/ish_manager/application.haml
|
442
521
|
- app/views/layouts/ish_manager/application.haml~
|
443
522
|
- config/routes.rb
|