Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
dhp-venshop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hoang Phuc Do
dhp-venshop
Commits
d79c5987
Commit
d79c5987
authored
Jun 09, 2017
by
Hoang Phuc Do
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update paginator style
parent
2cd55b54
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
3 additions
and
3 deletions
+3
-3
app/admin/products.rb
+1
-1
app/models/user.rb
+1
-1
app/views/kaminari/bootstrap/_first_page.html.erb
+0
-0
app/views/kaminari/bootstrap/_gap.html.erb
+0
-0
app/views/kaminari/bootstrap/_last_page.html.erb
+0
-0
app/views/kaminari/bootstrap/_next_page.html.erb
+0
-0
app/views/kaminari/bootstrap/_page.html.erb
+0
-0
app/views/kaminari/bootstrap/_paginator.html.erb
+0
-0
app/views/kaminari/bootstrap/_prev_page.html.erb
+0
-0
app/views/static_pages/index.html.erb
+1
-1
No files found.
app/admin/products.rb
View file @
d79c5987
...
@@ -13,7 +13,7 @@ ActiveAdmin.register Product do
...
@@ -13,7 +13,7 @@ ActiveAdmin.register Product do
filter
:title
filter
:title
filter
:user
,
collection:
User
.
pluck
(
:email
,
:id
),
label:
'User email'
filter
:user
,
collection:
User
.
pluck
(
:email
,
:id
),
label:
'User email'
show
do
show
theme:
'hi'
do
attributes_table
do
attributes_table
do
row
:title
row
:title
row
:sku
row
:sku
...
...
app/models/user.rb
View file @
d79c5987
class
User
<
ApplicationRecord
class
User
<
ApplicationRecord
# Include default devise modules. Others available are:
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
# :confirmable, :lockable, :timeoutable and :omniauthable
devise
:database_authenticatable
,
devise
:database_authenticatable
,
:registerable
,
:recoverable
,
:rememberable
,
:trackable
,
:validatable
:recoverable
,
:rememberable
,
:trackable
,
:validatable
has_many
:products
,
dependent: :destroy
has_many
:products
,
dependent: :destroy
end
end
app/views/kaminari/_first_page.html.erb
→
app/views/kaminari/
bootstrap/
_first_page.html.erb
View file @
d79c5987
File moved
app/views/kaminari/_gap.html.erb
→
app/views/kaminari/
bootstrap/
_gap.html.erb
View file @
d79c5987
File moved
app/views/kaminari/_last_page.html.erb
→
app/views/kaminari/
bootstrap/
_last_page.html.erb
View file @
d79c5987
File moved
app/views/kaminari/_next_page.html.erb
→
app/views/kaminari/
bootstrap/
_next_page.html.erb
View file @
d79c5987
File moved
app/views/kaminari/_page.html.erb
→
app/views/kaminari/
bootstrap/
_page.html.erb
View file @
d79c5987
File moved
app/views/kaminari/_paginator.html.erb
→
app/views/kaminari/
bootstrap/
_paginator.html.erb
View file @
d79c5987
File moved
app/views/kaminari/_prev_page.html.erb
→
app/views/kaminari/
bootstrap/
_prev_page.html.erb
View file @
d79c5987
File moved
app/views/static_pages/index.html.erb
View file @
d79c5987
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<div
class=
"toolbar-bottom"
>
<div
class=
"toolbar-bottom"
>
<div
class=
"toolbar"
>
<div
class=
"toolbar"
>
<div
class=
"sorter"
>
<div
class=
"sorter"
>
<%=
paginate
@latest_products
%>
<%=
paginate
@latest_products
,
theme:
'bootstrap'
%>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment