ish_manager 0.1.8.18 → 0.1.8.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba39fcaa2293c3032528f8ed29fc307106859895
|
4
|
+
data.tar.gz: 661a0288c2a0f874781e82e196e240522fd03f45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab6c2905e6c6f2162f968eb4307198e21fcc1d42628b29891ab03d12a1748a2ab77f764d0b2d378bf569f5058af5da26c49165b3e9b108a0949994282bfa8e2
|
7
|
+
data.tar.gz: 44152f4c03921d6c8b5341ee3e7408c0f16d38164723cd357bd29ee02fc81b858c535ce09e452e134d858c7d01c332b97d278b4f83d548dc8afa0e854ebd1661
|
@@ -114,6 +114,7 @@ class IshManager::ReportsController < IshManager::ApplicationController
|
|
114
114
|
photo.save
|
115
115
|
|
116
116
|
# for homepage
|
117
|
+
# @TODO: move this to the model
|
117
118
|
if @report.is_public
|
118
119
|
n = Newsitem.new
|
119
120
|
n.report = @report
|
@@ -121,7 +122,7 @@ class IshManager::ReportsController < IshManager::ApplicationController
|
|
121
122
|
# n.user = @report.user
|
122
123
|
@site.newsitems << n
|
123
124
|
if @site.save
|
124
|
-
|
125
|
+
@site.touch
|
125
126
|
else
|
126
127
|
flash[:error] = (flash[:error]||'') + 'City could not be saved (newsitem). '
|
127
128
|
end
|
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.8.
|
4
|
+
version: 0.1.8.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -208,7 +208,6 @@ files:
|
|
208
208
|
- app/views/ish_manager/photos/_multinew.haml~
|
209
209
|
- app/views/ish_manager/photos/show.haml
|
210
210
|
- app/views/ish_manager/photos/without_gallery.haml
|
211
|
-
- app/views/ish_manager/reports/#index.haml#
|
212
211
|
- app/views/ish_manager/reports/_form.haml
|
213
212
|
- app/views/ish_manager/reports/_index.haml
|
214
213
|
- app/views/ish_manager/reports/edit.haml
|
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
.row
|
3
|
-
.large-12.columns
|
4
|
-
%h3
|
5
|
-
Reports Index (#{@reports.length})
|
6
|
-
- if @site
|
7
|
-
In #{@site.domain}/#{@site.lang}
|
8
|
-
= link_to '[+]', new_report_path
|
9
|
-
= paginate @reports, :param_name => :reports_page
|
10
|
-
|
11
|
-
%ol
|
12
|
-
- @reports.each do |report|
|
13
|
-
%li
|
14
|
-
= link_to '[~]', edit_report_path( report )
|
15
|
-
= link_to '[x]', report_path( report ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
16
|
-
- if report.is_public
|
17
|
-
[public ]
|
18
|
-
- else
|
19
|
-
[private]
|
20
|
-
= link_to report.name, report_path( report )
|
21
|
-
%br
|
22
|
-
.gray
|
23
|
-
- if report.site
|
24
|
-
Site #{report.site.domain}/#{report.site.lang}
|
25
|
-
%br
|
26
|
-
= report.created_at
|
27
|
-
= paginate @reports, :param_name => :reports_page
|
28
|
-
|