ish_manager 0.1.8.29 → 0.1.8.30

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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ish_manager/application.js +13 -11
  3. data/app/assets/javascripts/ish_manager/materialize.js +10000 -0
  4. data/app/assets/stylesheets/ish_manager/application.css +13 -1
  5. data/app/assets/stylesheets/ish_manager/bootstrap.css +6757 -0
  6. data/app/assets/stylesheets/ish_manager/materialize.css +9388 -0
  7. data/app/assets/stylesheets/ish_manager/{bootstrap.min.css → trash/bootstrap.min.css} +0 -0
  8. data/app/assets/stylesheets/ish_manager/{bootstrap.min.css.map → trash/bootstrap.min.css.map} +0 -0
  9. data/app/views/ish_manager/galleries/_form.haml +6 -5
  10. data/app/views/ish_manager/kaminari/_first_page.html.erb +11 -0
  11. data/app/views/ish_manager/kaminari/_first_page.html.erb~ +11 -0
  12. data/app/views/ish_manager/kaminari/_gap.html.erb +8 -0
  13. data/app/views/ish_manager/kaminari/_gap.html.erb~ +8 -0
  14. data/app/views/ish_manager/kaminari/_last_page.html.erb +11 -0
  15. data/app/views/ish_manager/kaminari/_last_page.html.erb~ +11 -0
  16. data/app/views/ish_manager/kaminari/_next_page.html.erb +11 -0
  17. data/app/views/ish_manager/kaminari/_next_page.html.erb~ +11 -0
  18. data/app/views/ish_manager/kaminari/_page.html.erb +13 -0
  19. data/app/views/ish_manager/kaminari/_page.html.erb~ +12 -0
  20. data/app/views/ish_manager/kaminari/_paginator.html.erb +25 -0
  21. data/app/views/ish_manager/kaminari/_paginator.html.erb~ +25 -0
  22. data/app/views/ish_manager/kaminari/_prev_page.html.erb +11 -0
  23. data/app/views/ish_manager/kaminari/_prev_page.html.erb~ +11 -0
  24. data/app/views/ish_manager/reports/_form.haml +17 -13
  25. data/app/views/ish_manager/reports/index.haml +7 -6
  26. data/app/views/layouts/ish_manager/application.haml +4 -2
  27. metadata +21 -4
@@ -25,15 +25,16 @@
25
25
 
26
26
  .row
27
27
  .col-sm-3
28
- = f.label :is_public
29
28
  = f.check_box :is_public
29
+ = f.label :is_public
30
30
  .col-sm-3
31
- = f.label :is_done
32
31
  = f.check_box :is_done
32
+ = f.label :is_done
33
33
  .col-sm-3
34
- = f.label :is_trash
35
34
  = f.check_box :is_trash
35
+ = f.label :is_trash
36
36
  .col-sm-3
37
- = f.label :is_feature
38
37
  = f.check_box :is_feature
39
-
38
+ = f.label :is_feature
39
+ .col-sm-3
40
+ = f.submit 'Submit'
@@ -0,0 +1,11 @@
1
+ <%# Link to the "First" page
2
+ - available local variables
3
+ url: url to the first page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <li class="first">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote %>
11
+ </li>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "First" page
2
+ - available local variables
3
+ url: url to the first page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="first">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote %>
11
+ </span>
@@ -0,0 +1,8 @@
1
+ <%# Non-link tag that stands for skipped pages...
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ -%>
8
+ <li class="page gap"><%= t('views.pagination.truncate').html_safe %></li>
@@ -0,0 +1,8 @@
1
+ <%# Non-link tag that stands for skipped pages...
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ -%>
8
+ <span class="page gap"><%= t('views.pagination.truncate').html_safe %></span>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Last" page
2
+ - available local variables
3
+ url: url to the last page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <li class="last">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote %>
11
+ </li>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Last" page
2
+ - available local variables
3
+ url: url to the last page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="last">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote %>
11
+ </span>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Next" page
2
+ - available local variables
3
+ url: url to the next page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <li class="next">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote %>
11
+ </li>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Next" page
2
+ - available local variables
3
+ url: url to the next page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="next">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote %>
11
+ </span>
@@ -0,0 +1,13 @@
1
+ <%# Link showing page number
2
+ - available local variables
3
+ page: a page object for "this" page
4
+ url: url to this page
5
+ current_page: a page object for the currently displayed page
6
+ total_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ -%>
10
+ <li class="waves-effect page <%= 'active' if page.current? %>">
11
+ <% # = link_to_unless page.current?, page, url, {remote: remote, rel: page.rel} %>
12
+ <%= link_to page, url, {remote: remote, rel: page.rel} %>
13
+ </li>
@@ -0,0 +1,12 @@
1
+ <%# Link showing page number
2
+ - available local variables
3
+ page: a page object for "this" page
4
+ url: url to this page
5
+ current_page: a page object for the currently displayed page
6
+ total_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ -%>
10
+ <span class="page<%= ' current' if page.current? %>">
11
+ <%= link_to_unless page.current?, page, url, {remote: remote, rel: page.rel} %>
12
+ </span>
@@ -0,0 +1,25 @@
1
+ <%# The container tag
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ paginator: the paginator that renders the pagination tags inside
8
+ -%>
9
+ <%= paginator.render do -%>
10
+ <ul class="pagination">
11
+ <%= first_page_tag unless current_page.first? %>
12
+ <%= prev_page_tag unless current_page.first? %>
13
+ <% each_page do |page| -%>
14
+ <% if page.display_tag? -%>
15
+ <%= page_tag page %>
16
+ <% elsif !page.was_truncated? -%>
17
+ <%= gap_tag %>
18
+ <% end -%>
19
+ <% end -%>
20
+ <% unless current_page.out_of_range? %>
21
+ <%= next_page_tag unless current_page.last? %>
22
+ <%= last_page_tag unless current_page.last? %>
23
+ <% end %>
24
+ </ul>
25
+ <% end -%>
@@ -0,0 +1,25 @@
1
+ <%# The container tag
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ paginator: the paginator that renders the pagination tags inside
8
+ -%>
9
+ <%= paginator.render do -%>
10
+ <nav class="pagination">
11
+ <%= first_page_tag unless current_page.first? %>
12
+ <%= prev_page_tag unless current_page.first? %>
13
+ <% each_page do |page| -%>
14
+ <% if page.display_tag? -%>
15
+ <%= page_tag page %>
16
+ <% elsif !page.was_truncated? -%>
17
+ <%= gap_tag %>
18
+ <% end -%>
19
+ <% end -%>
20
+ <% unless current_page.out_of_range? %>
21
+ <%= next_page_tag unless current_page.last? %>
22
+ <%= last_page_tag unless current_page.last? %>
23
+ <% end %>
24
+ </nav>
25
+ <% end -%>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Previous" page
2
+ - available local variables
3
+ url: url to the previous page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <li class="prev">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote %>
11
+ </li>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Previous" page
2
+ - available local variables
3
+ url: url to the previous page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="prev">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote %>
11
+ </span>
@@ -25,24 +25,28 @@
25
25
  = f.label :city_id
26
26
  = select :report, :city_id, @cities_list
27
27
 
28
- = f.label :coords
29
- = f.text_field :x
30
- = f.text_field :y
31
-
32
- = f.label :site
33
- = select :report, :site_id, @sites_list
28
+ .card
29
+ .card-content
30
+ = f.label :coords
31
+ .row
32
+ .col-xs-6
33
+ = f.text_field :x
34
+ .col-xs-6
35
+ = f.text_field :y
36
+
37
+ .card
38
+ .card-content
39
+ = f.label :site
40
+ = select :report, :site_id, @sites_list
34
41
 
35
42
  .large-6.columns
36
43
  = f.label :tag_id
37
44
  = select :report, :tag_id, @tags_list
38
45
 
39
- .check
40
- = f.label :is_public
46
+ %p
41
47
  = f.check_box :is_public
42
-
48
+ = f.label :is_public
49
+
43
50
  = f.file_field :photo
44
51
 
45
- -# = recaptcha_tags
46
-
47
- = f.submit
48
-
52
+ = f.submit 'Submit'
@@ -6,17 +6,18 @@
6
6
  - if @site
7
7
  In #{@site.domain}/#{@site.lang}
8
8
  = link_to '[+]', new_report_path
9
- = paginate @reports, :param_name => :reports_page
9
+
10
+ = paginate @reports, :param_name => :reports_page, :views_prefix => 'ish_manager'
10
11
 
11
- %ol
12
- - @reports.each do |report|
13
- %li
12
+ - @reports.each do |report|
13
+ .card
14
+ .card-content
14
15
  = link_to '[~]', edit_report_path( report )
15
16
  = link_to '[x]', report_path( report ), :method => :delete, :data => { :confirm => 'Are you sure?' }
16
17
  - if report.is_public
17
- [public&nbsp;]
18
+ %i.material-icons visibility
18
19
  - else
19
- [private]
20
+ %i.material-icons visibility off
20
21
  = link_to report.name, report_path( report )
21
22
  %br
22
23
  .gray
@@ -5,10 +5,12 @@
5
5
  %meta{ :name => :viewport, :content => 'width=device-width, initial-scale=1.0' }
6
6
  %meta{ :charset => 'UTF-8' }
7
7
  %meta{ :description => 'some description' }
8
- %script{ :src => "https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js" }
8
+ -# %script{ :src => "https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js" }
9
+ %script{ :src => "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" }
9
10
  %script{ :src => "https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
10
11
  %script{ :src => "https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
11
- = stylesheet_link_tag "ish_manager/application", media: "all"
12
+ = stylesheet_link_tag "ish_manager/application", media: "all"
13
+ = stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
12
14
  = javascript_include_tag "ish_manager/application"
13
15
  = csrf_meta_tags
14
16
  %body
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.29
4
+ version: 0.1.8.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -132,9 +132,12 @@ files:
132
132
  - app/assets/javascripts/ish_manager/jquery.fileupload.js
133
133
  - app/assets/javascripts/ish_manager/jquery.iframe-transport.js
134
134
  - app/assets/javascripts/ish_manager/jquery.ui.widget.js
135
+ - app/assets/javascripts/ish_manager/materialize.js
135
136
  - app/assets/stylesheets/ish_manager/application.css
136
- - app/assets/stylesheets/ish_manager/bootstrap.min.css
137
- - app/assets/stylesheets/ish_manager/bootstrap.min.css.map
137
+ - app/assets/stylesheets/ish_manager/bootstrap.css
138
+ - app/assets/stylesheets/ish_manager/materialize.css
139
+ - app/assets/stylesheets/ish_manager/trash/bootstrap.min.css
140
+ - app/assets/stylesheets/ish_manager/trash/bootstrap.min.css.map
138
141
  - app/controllers/ish_manager/application_controller.rb
139
142
  - app/controllers/ish_manager/cities_controller.rb
140
143
  - app/controllers/ish_manager/features_controller.rb
@@ -211,6 +214,20 @@ files:
211
214
  - app/views/ish_manager/galleries/new.haml
212
215
  - app/views/ish_manager/galleries/show.haml
213
216
  - app/views/ish_manager/galleries/show.haml~
217
+ - app/views/ish_manager/kaminari/_first_page.html.erb
218
+ - app/views/ish_manager/kaminari/_first_page.html.erb~
219
+ - app/views/ish_manager/kaminari/_gap.html.erb
220
+ - app/views/ish_manager/kaminari/_gap.html.erb~
221
+ - app/views/ish_manager/kaminari/_last_page.html.erb
222
+ - app/views/ish_manager/kaminari/_last_page.html.erb~
223
+ - app/views/ish_manager/kaminari/_next_page.html.erb
224
+ - app/views/ish_manager/kaminari/_next_page.html.erb~
225
+ - app/views/ish_manager/kaminari/_page.html.erb
226
+ - app/views/ish_manager/kaminari/_page.html.erb~
227
+ - app/views/ish_manager/kaminari/_paginator.html.erb
228
+ - app/views/ish_manager/kaminari/_paginator.html.erb~
229
+ - app/views/ish_manager/kaminari/_prev_page.html.erb
230
+ - app/views/ish_manager/kaminari/_prev_page.html.erb~
214
231
  - app/views/ish_manager/newsitems/_form.haml
215
232
  - app/views/ish_manager/newsitems/_form.haml~
216
233
  - app/views/ish_manager/newsitems/_index.haml