rush_job 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/rush_job/rush_jobs_controller.rb +8 -0
- data/app/views/layouts/rush_job/application.html.erb +5 -0
- data/config/locales/en.yml +1 -0
- data/lib/rush_job/version.rb +1 -1
- data/vendor/stylesheets/rush_job/bootstrap.css +12273 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6a851e49e6f1885c14bb796537b7e508beab734f7997884a3a4ff586821c115
|
4
|
+
data.tar.gz: ad8614b76e4f5e1c88b3d34e9327f2780328bb3b8539e813cd2c3da0eedf0444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6462e003fe4e0726deebffde8c579da9b631539c18bc535365dee4d865a084d1dba2e71f7e728421ed909d26c6dfaa5c5e2208cc392f45d776c9e65b0144dd2
|
7
|
+
data.tar.gz: 96963d1457393cf3d63829d6232527f531a453d88be6d7d74c90451aeee8998b80a0a198d2cbb2ed4388f5750476824eaab5c3a722ba3e91f56dbbf6913d6d74
|
data/README.md
CHANGED
@@ -3,8 +3,16 @@ module RushJob
|
|
3
3
|
include SortHelper
|
4
4
|
include Pagy::Backend
|
5
5
|
|
6
|
+
rescue_from Pagy::OverflowError, with: :redirect_to_first_page
|
7
|
+
|
6
8
|
def index
|
7
9
|
@pagy, @rush_jobs = pagy(RushJob.order("#{sort_column} #{sort_direction}"))
|
8
10
|
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def redirect_to_first_page
|
15
|
+
redirect_to root_path, notice: t(:invalid_page_notice)
|
16
|
+
end
|
9
17
|
end
|
10
18
|
end
|
@@ -11,6 +11,11 @@
|
|
11
11
|
<%= stylesheet_link_tag "rush_job/application", media: "all" %>
|
12
12
|
</head>
|
13
13
|
<body class="background-color-<%= current_theme %>">
|
14
|
+
<% flash.each do |type, msg| %>
|
15
|
+
<div class="alert alert-<%= invert_theme %>" role="alert">
|
16
|
+
<%= msg %>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
14
19
|
|
15
20
|
<%= yield %>
|
16
21
|
|
data/config/locales/en.yml
CHANGED
data/lib/rush_job/version.rb
CHANGED