panoptic 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/panoptic/jobs_controller.rb +3 -1
- data/app/helpers/panoptic/application_helper.rb +1 -0
- data/app/views/layouts/panoptic/application.html.erb +0 -1
- data/app/views/panoptic/jobs/index.html.erb +2 -4
- data/config/initializers/pagy.rb +1 -0
- data/lib/panoptic/engine.rb +4 -0
- data/lib/panoptic/version.rb +1 -1
- metadata +5 -11
- data/app/views/panoptic/kaminari/_first_page.html.erb +0 -3
- data/app/views/panoptic/kaminari/_gap.html.erb +0 -3
- data/app/views/panoptic/kaminari/_last_page.html.erb +0 -3
- data/app/views/panoptic/kaminari/_next_page.html.erb +0 -3
- data/app/views/panoptic/kaminari/_page.html.erb +0 -9
- data/app/views/panoptic/kaminari/_paginator.html.erb +0 -17
- data/app/views/panoptic/kaminari/_prev_page.html.erb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d310e17406ea0681469b5f4f4ff1d456b9d24ad4c89d4498adc87643f9ed8c
|
4
|
+
data.tar.gz: 9e2faccbac6daf2820c63202adc28292918934e596462443b046be5d4b874c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b596a1d4224631ffb6f1e619958bbed94c20c4bfcb6c64fd967045efd40d785be72d2393b1317dc239866be6ba35952eebbf3eeac22e02cc270626475f325328
|
7
|
+
data.tar.gz: b07d2227e30e712aedaeb5d1213991fba6cb5e467f67466795c3b1fd8d10a92e9fa5c9a98e86f6afc2a71bd2ac4de963c3a5de2a49a3f74494973c666227d4ba
|
@@ -5,7 +5,6 @@
|
|
5
5
|
<%= csrf_meta_tags %>
|
6
6
|
<%= csp_meta_tag %>
|
7
7
|
|
8
|
-
<%= stylesheet_link_tag "panoptic/application", media: "all" %>
|
9
8
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
10
9
|
</head>
|
11
10
|
<body>
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<h1>Jobs</h1>
|
2
2
|
|
3
3
|
<div class="d-flex justify-content-end">
|
4
|
-
|
5
|
-
<%= page_entries_info @jobs %>
|
6
|
-
</div>
|
4
|
+
<%== pagy_info(@pagy) %>
|
7
5
|
</div>
|
8
6
|
|
9
7
|
<table class="table">
|
@@ -24,5 +22,5 @@
|
|
24
22
|
</table>
|
25
23
|
|
26
24
|
<div class="d-flex justify-content-center">
|
27
|
-
|
25
|
+
<%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %>
|
28
26
|
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
require "pagy/extras/bootstrap"
|
data/lib/panoptic/engine.rb
CHANGED
data/lib/panoptic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panoptic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Rolea
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: pagy
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '6.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '6.2'
|
55
55
|
description: Web interface for the SoldiQueue queuing backend
|
56
56
|
email:
|
57
57
|
- 3525369+virolea@users.noreply.github.com
|
@@ -74,18 +74,12 @@ files:
|
|
74
74
|
- app/views/layouts/panoptic/application.html.erb
|
75
75
|
- app/views/panoptic/jobs/_job.html.erb
|
76
76
|
- app/views/panoptic/jobs/index.html.erb
|
77
|
-
- app/views/panoptic/kaminari/_first_page.html.erb
|
78
|
-
- app/views/panoptic/kaminari/_gap.html.erb
|
79
|
-
- app/views/panoptic/kaminari/_last_page.html.erb
|
80
|
-
- app/views/panoptic/kaminari/_next_page.html.erb
|
81
|
-
- app/views/panoptic/kaminari/_page.html.erb
|
82
|
-
- app/views/panoptic/kaminari/_paginator.html.erb
|
83
|
-
- app/views/panoptic/kaminari/_prev_page.html.erb
|
84
77
|
- app/views/panoptic/processes/_process.html.erb
|
85
78
|
- app/views/panoptic/processes/index.html.erb
|
86
79
|
- app/views/panoptic/queues/_queue.html.erb
|
87
80
|
- app/views/panoptic/queues/index.html.erb
|
88
81
|
- app/views/shared/_navbar.html.erb
|
82
|
+
- config/initializers/pagy.rb
|
89
83
|
- config/routes.rb
|
90
84
|
- lib/panoptic.rb
|
91
85
|
- lib/panoptic/engine.rb
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<% if page.current? %>
|
2
|
-
<li class="page-item active">
|
3
|
-
<%= content_tag :a, page, data: { remote: remote }, rel: page.rel, class: 'page-link' %>
|
4
|
-
</li>
|
5
|
-
<% else %>
|
6
|
-
<li class="page-item">
|
7
|
-
<%= link_to page, url, remote: remote, rel: page.rel, class: 'page-link' %>
|
8
|
-
</li>
|
9
|
-
<% end %>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<%= paginator.render do %>
|
2
|
-
<nav>
|
3
|
-
<ul class="pagination">
|
4
|
-
<%= first_page_tag unless current_page.first? %>
|
5
|
-
<%= prev_page_tag unless current_page.first? %>
|
6
|
-
<% each_page do |page| %>
|
7
|
-
<% if page.left_outer? || page.right_outer? || page.inside_window? %>
|
8
|
-
<%= page_tag page %>
|
9
|
-
<% elsif !page.was_truncated? -%>
|
10
|
-
<%= gap_tag %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
<%= next_page_tag unless current_page.last? %>
|
14
|
-
<%= last_page_tag unless current_page.last? %>
|
15
|
-
</ul>
|
16
|
-
</nav>
|
17
|
-
<% end %>
|